public class ContainerProxy extends ClientProxy implements Container
Container.ComponentInfoCompletionCallback| Modifier and Type | Field and Description |
|---|---|
protected si.ijs.maci.Container |
container
CORBA reference.
|
protected static java.util.logging.Logger |
logger |
client, ior| Constructor and Description |
|---|
ContainerProxy(si.ijs.maci.Container container)
Constructor for ContainerProxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate_component_async(int handle,
long executionId,
java.lang.String name,
java.lang.String exe,
java.lang.String type,
Container.ComponentInfoCompletionCallback callback)
Asynchronous version of activate_component.
|
ComponentInfo |
activate_component(int handle,
long executionId,
java.lang.String name,
java.lang.String exe,
java.lang.String type)
Activate a Component whose type (class) and name (instance) are given.
|
void |
deactivate_component(int handle)
Deactivate a component whose handles is given.
|
boolean |
equals(java.lang.Object obj) |
ComponentInfo[] |
get_component_info(int[] handles)
Returns information about a subset of components that are currently hosted by the Container.
|
int |
get_handle()
Get the Container handle give by the Managert at login.
|
si.ijs.maci.Client |
getClient()
Returns the client.
|
static int |
inverseMapAccessRights(int accessRights)
Map CORBA specific codes to
AccessRights status codes. |
Component |
restart_component(int handle)
Restarts a component.
|
void |
set_component_shutdown_order(int[] handles)
Set component shutdown order.
|
void |
shutdown(int action)
Shutdown the Container.
|
java.lang.String |
toString()
Returns a single-line rendition of this instance into text.
|
authenticate, components_available, components_unavailable, disconnect, equals, getRemoteLocation, message, name, ping, release, taggedmessage, toClientType, toImplLang, wrapForRoundtripTimeoutdeserialize, getOrb, serialize, setOrbclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitauthenticate, components_available, components_unavailable, disconnect, getRemoteLocation, message, name, ping, release, taggedmessageprotected si.ijs.maci.Container container
protected static final java.util.logging.Logger logger
public ContainerProxy(si.ijs.maci.Container container)
container - CORBA reference, non-null.public int get_handle()
Containerget_handle in interface Containerpublic ComponentInfo activate_component(int handle, long executionId, java.lang.String name, java.lang.String exe, java.lang.String type) throws AcsJCannotActivateComponentEx
Containeractivate_component in interface Containerhandle - Handle of the Component that is being activated.
This handle is used by the Component when it will present itself to the Manager.
The Component is expected to remember this handle for its entire life-time.executionId - Execution ID.name - Name of the Component to instantiate.exe - Path to the executable file (a DLL or a shared library) in which the Component's code resides.
The path is relative to the root directory in which all executable code is stored.
The path must not contain dots, and uses slashes (not backslashes) to separate components of the path.
The path must not include the extension, or any prefixes, so that it is platform independent.type - The type of the Component to instantiate. The interpretation of this field depends on the executable.
Type should uniquely identify the code-base which the Component will be executing.
Note: Type name is a CORBA repository ID.AcsJCannotActivateComponentExContainer.activate_component(int, long, String, String, String)public void activate_component_async(int handle,
long executionId,
java.lang.String name,
java.lang.String exe,
java.lang.String type,
Container.ComponentInfoCompletionCallback callback)
Containeractivate_component_async in interface ContainerContainer.activate_component(int, long, String, String, String)public void deactivate_component(int handle)
throws AcsJCannotDeactivateComponentEx,
AcsJComponentDeactivationUncleanEx,
AcsJComponentDeactivationFailedEx
Containerdeactivate_component in interface Containerhandle - A handle identifying a component to be released.AcsJCannotDeactivateComponentExAcsJComponentDeactivationUncleanExAcsJComponentDeactivationFailedExContainer.deactivate_component(int)public ComponentInfo[] get_component_info(int[] handles) throws RemoteException
Containerget_component_info in interface Containerhandles - Handles of the components whose information should be retrieved.RemoteExceptionContainer.get_component_info(int[])public Component restart_component(int handle) throws RemoteException
Containerrestart_component in interface ContainerRemoteExceptionContainer.restart_component(int)public void shutdown(int action)
throws RemoteException
Containershutdown in interface ContainerRemoteExceptionContainer.shutdown(int)public void set_component_shutdown_order(int[] handles)
throws RemoteException
Containerset_component_shutdown_order in interface Containerhandles - ordered list of components handles.RemoteExceptioncom.cosylab.acs.maci.Container#deactivate_components(int[])public si.ijs.maci.Client getClient()
getClient in class ClientProxypublic static int inverseMapAccessRights(int accessRights)
AccessRights status codes.accessRights - CORBA specific codesAccessRights status codespublic java.lang.String toString()
toString in class ClientProxypublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(Object)