Static Public Member Functions | |
void | main (String[] args) |
Static Public Attributes | |
final String | CONTAINER_STARTTIME_DELAY_MILLIS_PROPERTYNAME = "acs.container.starttimeDelayMillis" |
Protected Member Functions | |
AcsContainerRunner () | |
void | initAcsLogging (final AcsManagerProxy managerProxy) |
void | checkReadyToRun () throws AcsJContainerEx |
Protected Attributes | |
String | m_containerName |
String | m_managerLoc |
boolean | m_useRecoveryMode |
AcsEmbeddedContainerRunner | embeddedRunner |
Logger | m_logger |
AcsCorba | m_acsCorba |
int | m_containerPort = -1 |
int | initialSleeptimeMillis = 0 |
Package Functions | |
void | setOptions (String[] args) throws AcsJContainerEx |
Private Member Functions | |
void | run (String[] args) throws AcsJContainerEx |
Private Attributes | |
ShutdownHook | m_shutdownHook |
Static Private Attributes | |
final String | CONTAINER_NAME_PROPERTYNAME = "ACS.containerName" |
final String | MANAGER_PROPERTYNAME = "ACS.manager" |
main
method of this class starts an AcsContainer. Tasks performed are:
The implementation delegates many tasks to alma.acs.container.AcsEmbeddedContainerRunner, so that other applications which have to run a container inside can be written similarly to this class.
The functionality is comparable to that of maciActivate.cpp
and maciContainerImpl.cpp/ContainerImpl/init(argc, argv)
on the C++ side.
|
Empty constructor, only to be called from |
|
|
|
Asynchronously connects to the log service so that after some time the locally collected log records will be sent over the wire. |
|
The one and only
|
|
Startup choreography: performs the various tasks in the correct order. Note on the implementation: the steps involved are grouped as private methods that access the instance variables. The intent was to make the sequence clearer.
|
|
Parses commandline and property options.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|