Inherited by alma.acs.commandcenter.engine.ExecuteContainer.CustomAcsEmbeddedContainerRunner.
Public Member Functions | |
AcsEmbeddedContainerRunner () | |
void | run (AcsCorba acsCorba, String containerName, String managerLoc) throws AcsJContainerEx |
AcsLogger | getContainerLogger () |
Protected Member Functions | |
void | createContainer () throws AcsJContainerEx |
void | initManagerProxy () throws AcsJContainerEx |
Protected Attributes | |
AcsLogger | m_logger |
AcsCorba | m_acsCorba |
AcsContainer | m_container |
boolean | isEmbedded |
boolean | useRecoveryMode |
String | m_containerName |
String | m_managerLoc |
AcsManagerProxy | m_managerProxy |
Package Functions | |
AcsEmbeddedContainerRunner (boolean isEmbedded, boolean useRecoveryMode) | |
void | run (AcsCorba acsCorba) throws AcsJContainerEx |
AcsContainer | getContainer () |
AcsManagerProxy | getManagerProxy () |
void | checkReadyToRun (String otherMsg) throws AcsJContainerEx |
void | setContainerName (String name) |
void | setManagerLoc (String loc) |
Runner for an embedded container, i.e. a container that gets started in the JVM of an ACS-aware application such as the Exec GUI.
See comments for run(AcsCorba, String, String), which is the only method that must be called, with the required external initializations.
alma.acs.container.AcsEmbeddedContainerRunner.AcsEmbeddedContainerRunner | ( | ) |
Constructor to be used by a separate application which needs to create an embedded container.
alma.acs.container.AcsEmbeddedContainerRunner.AcsEmbeddedContainerRunner | ( | boolean | isEmbedded, | |
boolean | useRecoveryMode | |||
) | [package] |
isEmbedded | false if this runner is not started by a separate application, but merely by some other runner. |
void alma.acs.container.AcsEmbeddedContainerRunner.checkReadyToRun | ( | String | otherMsg | ) | throws AcsJContainerEx [package] |
void alma.acs.container.AcsEmbeddedContainerRunner.createContainer | ( | ) | throws AcsJContainerEx [protected] |
References alma.acs.container.AcsEmbeddedContainerRunner.isEmbedded, alma.acs.container.AcsEmbeddedContainerRunner.m_acsCorba, alma.acs.container.AcsEmbeddedContainerRunner.m_container, alma.acs.container.AcsEmbeddedContainerRunner.m_containerName, alma.acs.container.AcsEmbeddedContainerRunner.m_logger, alma.acs.container.AcsEmbeddedContainerRunner.m_managerProxy, alma.acs.container.AcsContainer.setRecoveryMode(), and alma.acs.container.AcsEmbeddedContainerRunner.useRecoveryMode.
Referenced by alma.acs.container.AcsEmbeddedContainerRunner.run().
AcsContainer alma.acs.container.AcsEmbeddedContainerRunner.getContainer | ( | ) | [package] |
AcsLogger alma.acs.container.AcsEmbeddedContainerRunner.getContainerLogger | ( | ) |
Gets the logger used by the container. If necessary, creates and initializes the logger.
References alma.acs.container.AcsEmbeddedContainerRunner.m_containerName, and alma.acs.container.AcsEmbeddedContainerRunner.m_logger.
Referenced by alma.acs.container.AcsEmbeddedContainerRunner.run().
AcsManagerProxy alma.acs.container.AcsEmbeddedContainerRunner.getManagerProxy | ( | ) | [package] |
void alma.acs.container.AcsEmbeddedContainerRunner.initManagerProxy | ( | ) | throws AcsJContainerEx [protected] |
Creates the instance for m_managerProxy
and calls getManager
on it so that the connection to the manager will be established, without logging in to the manager yet.
AcsJContainerEx |
References alma.acs.container.AcsManagerProxy.getManager(), alma.acs.container.corba.AcsCorba.getORB(), alma.acs.container.AcsEmbeddedContainerRunner.m_acsCorba, alma.acs.container.AcsEmbeddedContainerRunner.m_logger, alma.acs.container.AcsEmbeddedContainerRunner.m_managerLoc, and alma.acs.container.AcsEmbeddedContainerRunner.m_managerProxy.
Referenced by alma.acs.container.AcsEmbeddedContainerRunner.run().
void alma.acs.container.AcsEmbeddedContainerRunner.run | ( | AcsCorba | acsCorba | ) | throws AcsJContainerEx [package] |
References alma.acs.container.AcsEmbeddedContainerRunner.checkReadyToRun(), alma.acs.container.AcsEmbeddedContainerRunner.createContainer(), alma.acs.container.AcsEmbeddedContainerRunner.getContainerLogger(), alma.acs.container.AcsContainer.initialize(), alma.acs.container.AcsEmbeddedContainerRunner.initManagerProxy(), alma.acs.container.AcsEmbeddedContainerRunner.m_acsCorba, and alma.acs.container.AcsEmbeddedContainerRunner.m_container.
void alma.acs.container.AcsEmbeddedContainerRunner.run | ( | AcsCorba | acsCorba, | |
String | containerName, | |||
String | managerLoc | |||
) | throws AcsJContainerEx |
Runs this container using the ORB provided in acsCorba
and returns w/o blocking on the ORB. It is assumed that acsCorba
is initialized, and that the singleton ClientLogManager
has been or will be initialized for remote logging outside of this method.
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.
acsCorba | the shared instance of AcsCorba | |
containerName | ||
managerLoc |
AcsJContainerServicesEx | at the slightest provocation... |
References alma.acs.container.AcsEmbeddedContainerRunner.setContainerName(), and alma.acs.container.AcsEmbeddedContainerRunner.setManagerLoc().
void alma.acs.container.AcsEmbeddedContainerRunner.setContainerName | ( | String | name | ) | [package] |
References alma.acs.container.AcsEmbeddedContainerRunner.m_containerName.
Referenced by alma.acs.container.AcsEmbeddedContainerRunner.run().
void alma.acs.container.AcsEmbeddedContainerRunner.setManagerLoc | ( | String | loc | ) | [package] |
References alma.acs.container.AcsEmbeddedContainerRunner.m_managerLoc.
Referenced by alma.acs.container.AcsEmbeddedContainerRunner.run().
boolean alma.acs.container.AcsEmbeddedContainerRunner.isEmbedded [protected] |
String alma.acs.container.AcsEmbeddedContainerRunner.m_containerName [protected] |
String alma.acs.container.AcsEmbeddedContainerRunner.m_managerLoc [protected] |
boolean alma.acs.container.AcsEmbeddedContainerRunner.useRecoveryMode [protected] |