public interface Manager extends ManagerConstants
throws RemoteException in the signature of the methods.si.ijs.acs.maci.plug.ManagerProxyImpl, si.ijs.acs.maci.plug.ManagerProxy, acs.maci.manager.ManagerImpl| Modifier and Type | Interface and Description |
|---|---|
static interface |
Manager.LongCompletionCallback |
RELEASE_IMMEDIATELY, RELEASE_NEVER, RELEASE_TIME_UNDEFINED| Modifier and Type | Method and Description |
|---|---|
int |
forceReleaseComponent(int id,
java.net.URI curl)
Forcefully release a component.
|
ClientInfo[] |
getClientInfo(int id,
int[] handles,
java.lang.String name_wc)
Get all the information that the Manager has about its known clients.
|
ComponentInfo |
getCollocatedComponent(int id,
ComponentSpec componentSpec,
boolean markAsDefault,
java.net.URI targetComponentURI)
Activation of an co-deployed component.
|
Component |
getComponent(int id,
java.net.URI curl,
boolean activate,
StatusHolder status)
Get a component, activating it if necessary.
|
ComponentInfo[] |
getComponentInfo(int id,
int[] handles,
java.lang.String name_wc,
java.lang.String type_wc,
boolean activeOnly)
Get all the information that the Manager has about components.
|
Component |
getComponentNonSticky(int id,
java.net.URI curl)
Get a component, do not activate it and also do not do any reference counting.
|
ContainerInfo[] |
getContainerInfo(int id,
int[] handles,
java.lang.String name_wc)
Get all the information that the Manager has about its known containers.
|
ComponentInfo |
getDefaultComponent(int id,
java.lang.String type)
Get default component of given type.
|
java.lang.String |
getDomain()
Return the fully qualified name of the domain, e.g., "antenna1.alma.nrao".
|
ComponentInfo |
getDynamicComponent(int id,
ComponentSpec componentSpec,
boolean markAsDefault)
Activation of an dynamic component.
|
Component |
getService(int id,
java.net.URI curl,
boolean activate,
StatusHolder status)
Get a service.
|
ClientInfo |
login(Client reference)
Login to MACI.
|
void |
logout(int id)
Logout from MACI.
|
void |
makeComponentImmortal(int id,
java.net.URI curl,
boolean immortalState)
Change mortality state of an component.
|
int |
registerComponent(int id,
java.net.URI curl,
java.lang.String type,
Component cob)
Register a CORBA object as a component, assigning it a CURL and making it accessible through the Manager.
|
int |
releaseComponent(int id,
java.net.URI curl)
Release a component.
|
void |
releaseComponentAsync(int id,
java.net.URI curl,
Manager.LongCompletionCallback callback) |
Component |
restartComponent(int id,
java.net.URI curl)
Restart a component.
|
void |
setStatePersistence(int id,
boolean enable)
Enable/disable state persistence subsystem.
|
void |
shutdown(int id,
int containers)
Shutdown the Manager.
|
void |
shutdownContainer(int id,
java.lang.String containerName,
int action)
Shutdown a container.
|
void |
unregisterComponent(int id,
int handle)
Unregister a component from the Manager.
|
java.lang.String getDomain()
ContainerInfo[] getContainerInfo(int id, int[] handles, java.lang.String name_wc) throws AcsJNoPermissionEx
id - Identification of the caller.handles - Handles of the containers whose information is requested. If this is an empty sequence, the name_wc parameter is used.name_wc - Wildcard that the container's name must match in order for its information to be returned.AcsJNoPermissionExClientInfo[] getClientInfo(int id, int[] handles, java.lang.String name_wc) throws AcsJNoPermissionEx
id - Identification of the caller.handles - Handles of the clients whose information is requested. If this is an empty sequence, the name_wc parameter is used.name_wc - Wildcard that the clients's name must match in order for its information to be returned.AcsJNoPermissionExComponentInfo[] getComponentInfo(int id, int[] handles, java.lang.String name_wc, java.lang.String type_wc, boolean activeOnly) throws AcsJNoPermissionEx
id - Identification of the caller.handles - Handles of the components whose information is requested. If this is an empty sequence, the name_wc and type_wc parameters are used.name_wc - Wildcard that the Component's name must match in order for its information to be returned.type_wc - Wildcard that the Component's type must match in order for its information to be returned.activeOnly - If true returns information only about components that are activated.AcsJNoPermissionExComponent getComponent(int id, java.net.URI curl, boolean activate, StatusHolder status) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx
id - Identification of the caller. If this is an invalid handle,
or if the caller does not have enough access rights,
a AcsJNoPermissionEx exception is raised.curl - CURL of the component whose reference is to be retrieved.activate - true if the Component is to be activated in case it does not exist.
If set to false, and the Component exist,
a null reference is returned and status is set to COMPONENT_NOT_ACTIVATED.status - Status of the request. One of COMPONENT_ACTIVATED, COMPONENT_DOES_NO_EXIST and COMPONENT_NOT_ACTIVATED.AcsJCannotGetComponentExAcsJNoPermissionExComponent restartComponent(int id, java.net.URI curl) throws AcsJNoPermissionEx, AcsJBadParameterEx
id - Identification of the caller. If this is an invalid handle,
or if the caller does not have enough access rights,
a AcsJNoPermissionEx exception is raised.curl - CURL of the component whose reference is to be restarted.AcsJNoPermissionExAcsJBadParameterExvoid makeComponentImmortal(int id,
java.net.URI curl,
boolean immortalState)
throws AcsJCannotGetComponentEx,
AcsJNoPermissionEx,
AcsJBadParameterEx
NoResourcesException exception will be thrown.
The caller must be an owner of an component or have administator rights,
otherwise AcsJNoPermissionEx exception will be thrown.id - Identification of the caller. The caller must be an owner of an component or have administator rights.curl - The CURL of the component whose mortality to change.immortalState - New mortality state.AcsJCannotGetComponentExAcsJNoPermissionExAcsJBadParameterExComponent getService(int id, java.net.URI curl, boolean activate, StatusHolder status) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx
AcsJCannotGetComponentExAcsJNoPermissionEx#get_componentClientInfo login(Client reference) throws AcsJNoPermissionEx
reference - A reference to the Client.AcsJNoPermissionExvoid logout(int id)
throws AcsJNoPermissionEx
id - Handle of the Client that is logging outAcsJNoPermissionExint registerComponent(int id,
java.net.URI curl,
java.lang.String type,
Component cob)
throws AcsJNoPermissionEx,
AcsJBadParameterEx
id - Identification of the caller.
The caller must have the REGISTER_COMPONENT access right to perform this operation.curl - CURL that will be assigned to the object. The CURL must be in the Manager's domain, otherwise a fundamental property of domains that one computer belongs to only one domain would be too easy to violate.type - Type of the componentcob - Object to be registered as component.AcsJNoPermissionExAcsJBadParameterExint releaseComponent(int id,
java.net.URI curl)
throws AcsJNoPermissionEx,
AcsJBadParameterEx
id - Identification of the caller. The caller must have previously got the Component through get_component.curl - The CURL of the Component to be released.AcsJNoPermissionExAcsJBadParameterExvoid releaseComponentAsync(int id,
java.net.URI curl,
Manager.LongCompletionCallback callback)
throws AcsJNoPermissionEx,
AcsJBadParameterEx
AcsJNoPermissionExAcsJBadParameterExint forceReleaseComponent(int id,
java.net.URI curl)
throws AcsJNoPermissionEx,
AcsJBadParameterEx
id - Identification of the caller.curl - The CURL of the Component to be released.AcsJNoPermissionExAcsJBadParameterExvoid shutdown(int id,
int containers)
throws AcsJNoPermissionEx
id - Identification of the caller. The caller must have the SHUTDOWN_SYSTEM access right.containers - The code to send to shutdown methods of all containers.
If 0, the Container's shutdown methods are not called.AcsJNoPermissionExvoid shutdownContainer(int id,
java.lang.String containerName,
int action)
throws AcsJNoPermissionEx
id - Identification of the caller. The caller must have the SHUTDOWN_SYSTEM access right.container_name - name of the container to shutdown.action - The code to send to shutdown method of the container. If 0, the Container's disconnect methods is called instead.AcsJNoPermissionExvoid unregisterComponent(int id,
int handle)
throws AcsJNoPermissionEx,
AcsJBadParameterEx
id - Identification of the caller.
The caller must have the REGISTER_COMPONENT access right to perform this operation.handle - Component's handle.
The component must have been previously registered through the call to register_component.
If there are clients still using this component, a components_unavailable notification is
issued to all of them, and the component is unregistered.AcsJNoPermissionExAcsJBadParameterExComponentInfo getDefaultComponent(int id, java.lang.String type) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, NoDefaultComponentException
id - Identification of the caller. If this is an invalid handle,
or if the caller does not have enough access rights,
a AcsJNoPermissionEx exception is raised.type - type of the component whose reference is to be restarted.ComponentInfo of the component. If no defualt component is found
NoDefaultComponentException exception is thrown.AcsJCannotGetComponentExAcsJNoPermissionExNoDefaultComponentExceptionComponentInfo getDynamicComponent(int id, ComponentSpec componentSpec, boolean markAsDefault) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx
id - Identification of the caller.componentSpec - Component to be obtained.markAsDefault - Mark component as default component of its type.ComponentInfo of requested component.
If componentSpec if found to be incomplete IncompleteComponentSpecException exception is thrown.
If requested component collides with already activated component with the same name ComponentSpecIncompatibleWithActiveComponentException exception is thrown.AcsJCannotGetComponentExAcsJNoPermissionExAcsJIncompleteComponentSpecExAcsJInvalidComponentSpecExAcsJComponentSpecIncompatibleWithActiveComponentExComponentInfo getCollocatedComponent(int id, ComponentSpec componentSpec, boolean markAsDefault, java.net.URI targetComponentURI) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx
id - Identification of the caller.componentSpec - Component to be obtained.markAsDefault - Mark component as default component of its type.targetComponentURI - target co-deployed component.ComponentInfo of requested component.
If componentSpec if found to be incomplete IncompleteComponentSpecException exception is thrown.
If requested component collides with already activated component with the same name ComponentSpecIncompatibleWithActiveComponentException exception is thrown.AcsJCannotGetComponentExAcsJNoPermissionExAcsJIncompleteComponentSpecExAcsJInvalidComponentSpecExAcsJComponentSpecIncompatibleWithActiveComponentExComponent getComponentNonSticky(int id, java.net.URI curl) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx
id - Identification of the caller. If this is an invalid handle, or if the caller does not have enough access rights, a AcsJNoPermissionEx exception is raised.component_url - CURL of the Component whose reference is to be retrieved.AcsJCannotGetComponentExAcsJNoPermissionExvoid setStatePersistence(int id,
boolean enable)
throws AcsJNoPermissionEx
id - Identification of the caller.enable - enable/disable switch.AcsJNoPermissionEx