Static Public Member Functions | |
static void | main (String[] args) |
Static Public Attributes | |
static 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 |
AcsLogger | m_logger |
AcsCorba | m_acsCorba |
int | m_containerPort = -1 |
int | initialSleeptimeMillis = 0 |
Package Functions | |
void | setOptions (String[] args) throws AcsJContainerEx |
The 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.
alma.acs.container.AcsContainerRunner.AcsContainerRunner | ( | ) | [protected] |
Empty constructor, only to be called from AcsContainerRunner.main
method.
Referenced by alma.acs.container.AcsContainerRunner.main().
void alma.acs.container.AcsContainerRunner.checkReadyToRun | ( | ) | throws AcsJContainerEx [protected] |
void alma.acs.container.AcsContainerRunner.initAcsLogging | ( | final AcsManagerProxy | managerProxy | ) | [protected] |
Asynchronously connects to the log service so that after some time the locally collected log records will be sent over the wire.
References alma.acs.container.AcsManagerProxy.getManager(), alma.acs.container.AcsManagerProxy.getManagerHandle(), alma.acs.container.corba.AcsCorba.getORB(), alma.acs.logging.AcsLogger.log(), alma.acs.container.AcsContainerRunner.m_acsCorba, and alma.acs.container.AcsContainerRunner.m_logger.
static void alma.acs.container.AcsContainerRunner.main | ( | String[] | args | ) | [static] |
The one and only main
method to run a Java container. Options:
-manager myManagerloc
corbaloc.myhost:xxxx/Manager
(same as property ACS.manager
, but with higher precedence); if missing, it will be taken from CDB, or will default to localhost. -containerName myContainerName
ACS.containerName
). References alma.acs.container.AcsContainerRunner.AcsContainerRunner(), alma.acs.container.corba.AcsCorba.doneCorba(), alma.acs.container.AcsContainerRunner.m_acsCorba, and alma.acs.container.AcsContainerRunner.m_logger.
void alma.acs.container.AcsContainerRunner.setOptions | ( | String[] | args | ) | throws AcsJContainerEx [package] |
Parses commandline and property options.
args | as received by main() |
References alma.acs.container.AcsContainerRunner.CONTAINER_STARTTIME_DELAY_MILLIS_PROPERTYNAME, alma.acs.util.CmdLineArgs.getValues(), alma.acs.container.AcsContainerRunner.initialSleeptimeMillis, alma.acs.util.CmdLineArgs.isSpecified(), alma.acs.container.AcsContainerRunner.m_containerName, alma.acs.container.AcsContainerRunner.m_containerPort, alma.acs.container.AcsContainerRunner.m_logger, alma.acs.container.AcsContainerRunner.m_managerLoc, alma.acs.container.AcsContainerRunner.m_useRecoveryMode, alma.acs.util.CmdLineArgs.parseArgs(), and alma.acs.util.CmdLineArgs.registerOption().
final String alma.acs.container.AcsContainerRunner.CONTAINER_STARTTIME_DELAY_MILLIS_PROPERTYNAME = "acs.container.starttimeDelayMillis" [static] |
Referenced by alma.acs.container.AcsContainerRunner.setOptions().
Referenced by alma.acs.container.AcsContainerRunner.checkReadyToRun().
int alma.acs.container.AcsContainerRunner.initialSleeptimeMillis = 0 [protected] |
Referenced by alma.acs.container.AcsContainerRunner.setOptions().
String alma.acs.container.AcsContainerRunner.m_containerName [protected] |
Referenced by alma.acs.container.AcsContainerRunner.setOptions().
int alma.acs.container.AcsContainerRunner.m_containerPort = -1 [protected] |
String alma.acs.container.AcsContainerRunner.m_managerLoc [protected] |
Referenced by alma.acs.container.AcsContainerRunner.setOptions().
boolean alma.acs.container.AcsContainerRunner.m_useRecoveryMode [protected] |
Referenced by alma.acs.container.AcsContainerRunner.setOptions().