public class AcsContainerRunner
extends java.lang.Object
main method of this class starts an AcsContainer.
Tasks performed are:
The implementation delegates many tasks to 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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTAINER_STARTTIME_DELAY_MILLIS_PROPERTYNAME |
protected AcsEmbeddedContainerRunner |
embeddedRunner |
protected int |
initialSleeptimeMillis |
protected AcsCorba |
m_acsCorba |
protected java.lang.String |
m_containerName |
protected int |
m_containerPort |
protected AcsLogger |
m_logger |
protected java.lang.String |
m_managerLoc |
protected java.lang.Boolean |
m_recoveryModeOverride
If non-null then this value should override any default or CDB values for component recovery upon container start.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AcsContainerRunner()
Empty constructor, only to be called from
AcsContainerRunner#main method. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkReadyToRun() |
protected void |
initAcsLogging(AcsManagerProxy managerProxy)
Asynchronously connects to the log service so that after some time the locally collected log records
will be sent over the wire.
|
static void |
main(java.lang.String[] args)
The one and only
main method to run a Java container. |
public static final java.lang.String CONTAINER_STARTTIME_DELAY_MILLIS_PROPERTYNAME
protected java.lang.String m_containerName
protected java.lang.String m_managerLoc
protected java.lang.Boolean m_recoveryModeOverride
protected AcsEmbeddedContainerRunner embeddedRunner
protected AcsLogger m_logger
protected AcsCorba m_acsCorba
protected int m_containerPort
protected int initialSleeptimeMillis
protected AcsContainerRunner()
AcsContainerRunner#main method.public static void main(java.lang.String[] args)
main method to run a Java container. Options:
-manager myManagerloccorbaloc::myhost:xxxx/Manager
(same as property ACS.manager, but with higher precedence);
if missing, it will be taken from property ACS.manager, or will default to localhost.-containerName myContainerNameACS.containerName).protected void initAcsLogging(AcsManagerProxy managerProxy)
protected void checkReadyToRun()
throws AcsJContainerEx
AcsJContainerEx