Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::container::AcsEmbeddedContainerRunner Class Reference

Collaboration diagram for alma::acs::container::AcsEmbeddedContainerRunner:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AcsEmbeddedContainerRunner ()
void run (AcsCorba acsCorba, String containerName, String managerLoc) throws AcsJContainerEx
Logger getContainerLogger ()

Protected Member Functions

void createContainer () throws AcsJContainerEx
void initManagerProxy () throws AcsJContainerEx

Protected Attributes

Logger 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)

Detailed Description

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.

Author:
hsommer created Apr 25, 2005 5:55:27 PM


Constructor & Destructor Documentation

alma::acs::container::AcsEmbeddedContainerRunner::AcsEmbeddedContainerRunner  )  [inline]
 

Constructor to be used by a separate application which needs to create an embedded container.

alma::acs::container::AcsEmbeddedContainerRunner::AcsEmbeddedContainerRunner boolean  isEmbedded,
boolean  useRecoveryMode
[inline, package]
 

Parameters:
isEmbedded false if this runner is not started by a separate application, but merely by some other runner.


Member Function Documentation

void alma::acs::container::AcsEmbeddedContainerRunner::checkReadyToRun String  otherMsg  )  throws AcsJContainerEx [inline, package]
 

void alma::acs::container::AcsEmbeddedContainerRunner::createContainer  )  throws AcsJContainerEx [inline, protected]
 

AcsContainer alma::acs::container::AcsEmbeddedContainerRunner::getContainer  )  [inline, package]
 

Logger alma::acs::container::AcsEmbeddedContainerRunner::getContainerLogger  )  [inline]
 

Gets the logger used by the container. If necessary, creates and initializes the logger.

Returns:
container logger

AcsManagerProxy alma::acs::container::AcsEmbeddedContainerRunner::getManagerProxy  )  [inline, package]
 

void alma::acs::container::AcsEmbeddedContainerRunner::initManagerProxy  )  throws AcsJContainerEx [inline, 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.

Exceptions:
AcsJContainerEx 

void alma::acs::container::AcsEmbeddedContainerRunner::run AcsCorba  acsCorba  )  throws AcsJContainerEx [inline, package]
 

void alma::acs::container::AcsEmbeddedContainerRunner::run AcsCorba  acsCorba,
String  containerName,
String  managerLoc
throws AcsJContainerEx [inline]
 

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.

Parameters:
acsCorba the shared instance of AcsCorba
containerName 
managerLoc 
Exceptions:
AcsJContainerServicesEx at the slightest provocation...

void alma::acs::container::AcsEmbeddedContainerRunner::setContainerName String  name  )  [inline, package]
 

void alma::acs::container::AcsEmbeddedContainerRunner::setManagerLoc String  loc  )  [inline, package]
 


Member Data Documentation

boolean alma::acs::container::AcsEmbeddedContainerRunner::isEmbedded [protected]
 

AcsCorba alma::acs::container::AcsEmbeddedContainerRunner::m_acsCorba [protected]
 

AcsContainer alma::acs::container::AcsEmbeddedContainerRunner::m_container [protected]
 

String alma::acs::container::AcsEmbeddedContainerRunner::m_containerName [protected]
 

Logger alma::acs::container::AcsEmbeddedContainerRunner::m_logger [protected]
 

String alma::acs::container::AcsEmbeddedContainerRunner::m_managerLoc [protected]
 

AcsManagerProxy alma::acs::container::AcsEmbeddedContainerRunner::m_managerProxy [protected]
 

boolean alma::acs::container::AcsEmbeddedContainerRunner::useRecoveryMode [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:24 2009 for ACS Java API by doxygen 1.3.8