public class AdvancedContainerServicesImpl extends java.lang.Object implements AdvancedContainerServices
ContainerServices into a separate interface.ContainerServicesImpl| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<AdministratorOperations,AcsManagerProxy> |
adminClientsToManagerProxy |
protected ContainerServicesImpl |
containerServicesImpl |
protected java.util.logging.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
void |
connectManagerAdmin(AdministratorOperations adminOp,
boolean retryConnectOnFailure)
Allows to connect a manager admin object to the manager, to receive notifications etc.
|
org.omg.CORBA.Object |
corbaObjectFromString(java.lang.String strObjRef)
Encapsulates
ORB.string_to_object(String). |
java.lang.String |
corbaObjectToString(org.omg.CORBA.Object objRef)
Encapsulates
ORB.object_to_string(org.omg.CORBA.Object). |
void |
disconnectManagerAdmin(AdministratorOperations adminOp)
Releases a previously connected manager admin object.
|
org.omg.CORBA.Any |
getAny()
Returns a reference to a new CORBA Any.
|
org.omg.CORBA.ORB |
getORB()
Provides explicit access to the normally invisible ORB, for components that fulfill infrastructural tasks.
|
protected ContainerServicesImpl containerServicesImpl
protected java.util.logging.Logger logger
protected final java.util.Map<AdministratorOperations,AcsManagerProxy> adminClientsToManagerProxy
public java.lang.String corbaObjectToString(org.omg.CORBA.Object objRef)
AdvancedContainerServicesORB.object_to_string(org.omg.CORBA.Object).corbaObjectToString in interface AdvancedContainerServicesobjRef - the corba stubobjRef.public org.omg.CORBA.Object corbaObjectFromString(java.lang.String strObjRef)
AdvancedContainerServicesORB.string_to_object(String).corbaObjectFromString in interface AdvancedContainerServicespublic org.omg.CORBA.ORB getORB()
AdvancedContainerServicesNormal subsystem components must not use this method! If they feel they should get access to the ORB, either ACS is missing a feature which should be reported, or there is a misunderstanding in how to develop software for Alma.
getORB in interface AdvancedContainerServicesjava.lang.IllegalStateException - if the ORB reference is null or has not been initialized before.public org.omg.CORBA.Any getAny()
getAny in interface AdvancedContainerServicesjava.lang.NullPointerException - if the Any object could not be created.public void connectManagerAdmin(AdministratorOperations adminOp,
boolean retryConnectOnFailure)
throws AcsJContainerEx
This method accepts and distinguishes AdministratorOperations objects and the subtyped
SynchronousAdministratorOperations objects.
TODO: (1) container could implement a single proxy/interceptor admin client so that we only have at most one such
login on the manager, even if many components register their admin clients.
(2) Discuss if the retryConnectOnFailure flag makes sense, or if such a specialized component that uses this method
should implement its own retry strategy and should rather be notified quickly if there are problems.
connectManagerAdmin in interface AdvancedContainerServicesadminOp - admin object for manager callbacks.retryConnectOnFailure - retry if the manager is not available or the connection failed.AcsJContainerExjava.lang.IllegalArgumentException - if adminOp == null.public void disconnectManagerAdmin(AdministratorOperations adminOp)
AdvancedContainerServicesdisconnectManagerAdmin in interface AdvancedContainerServices