public class ManagerProxy extends CORBAReferenceSerializator implements Manager, java.io.Serializable
Manager.LongCompletionCallback| Modifier and Type | Field and Description |
|---|---|
protected si.ijs.maci.Manager |
manager
CORBA reference.
|
RELEASE_IMMEDIATELY, RELEASE_NEVER, RELEASE_TIME_UNDEFINED| Constructor and Description |
|---|
ManagerProxy(si.ijs.maci.Manager manager)
Constructor for ManagerProxy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(org.omg.CORBA.Object obj) |
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.
|
Component[] |
getComponents(int id,
java.net.URI[] curls,
boolean activate,
StatusSeqHolder statuses)
Deprecated.
|
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.
|
ComponentInfo[] |
getDynamicComponents(int id,
ComponentSpec[] components)
Deprecated.
|
si.ijs.maci.Manager |
getManager()
Returns the manager.
|
Component |
getService(int id,
java.net.URI curl,
boolean activate,
StatusHolder status)
Get a service.
|
Component[] |
getServices(int id,
java.net.URI[] curls,
boolean activate,
StatusSeqHolder statuses)
Deprecated.
|
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) |
void |
releaseComponents(int id,
java.net.URI[] curls)
Deprecated.
|
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.
|
java.lang.String |
toString()
Returns a single-line rendition of this instance into text.
|
void |
unregisterComponent(int id,
int handle)
Unregister a component from the Manager.
|
deserialize, getOrb, serialize, setOrbpublic ManagerProxy(si.ijs.maci.Manager manager)
manager - CORBA reference, non-null.public ClientInfo[] getClientInfo(int id, int[] handles, java.lang.String name_wc) throws AcsJNoPermissionEx
ManagergetClientInfo in interface Managerid - 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.AcsJNoPermissionExManager.getClientInfo(int, int[], java.lang.String)public Component getComponent(int id, java.net.URI curl, boolean activate, StatusHolder status) throws AcsJNoPermissionEx
ManagergetComponent in interface Managerid - 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.AcsJNoPermissionExManager.getComponent(int, java.net.URI, boolean, com.cosylab.acs.maci.StatusHolder)public ComponentInfo[] getComponentInfo(int id, int[] handles, java.lang.String name_wc, java.lang.String type_wc, boolean activeOnly) throws AcsJNoPermissionEx
ManagergetComponentInfo in interface Managerid - 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.AcsJNoPermissionExManager.getComponentInfo(int, int[], java.lang.String, java.lang.String, boolean)public Component[] getComponents(int id, java.net.URI[] curls, boolean activate, StatusSeqHolder statuses) throws AcsJNoPermissionEx
AcsJNoPermissionExcom.cosylab.acs.maci.Manager#getComponents(int, java.net.URI[], boolean, com.cosylab.acs.maci.StatusSeqHolder)public ContainerInfo[] getContainerInfo(int id, int[] handles, java.lang.String name_wc) throws AcsJNoPermissionEx
ManagergetContainerInfo in interface Managerid - 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.AcsJNoPermissionExManager.getContainerInfo(int, int[], java.lang.String)public ComponentInfo getDefaultComponent(int id, java.lang.String type) throws AcsJNoPermissionEx, NoDefaultComponentException
ManagergetDefaultComponent in interface Managerid - 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.AcsJNoPermissionExNoDefaultComponentExceptionManager.getDefaultComponent(int, java.lang.String)public java.lang.String getDomain()
ManagergetDomain in interface ManagerManager.getDomain()public ComponentInfo getDynamicComponent(int id, ComponentSpec componentSpec, boolean markAsDefault) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx
ManagergetDynamicComponent in interface Managerid - 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.AcsJCannotGetComponentExAcsJNoPermissionExAcsJIncompleteComponentSpecExAcsJInvalidComponentSpecExAcsJComponentSpecIncompatibleWithActiveComponentExManager.getDynamicComponent(int, com.cosylab.acs.maci.ComponentSpec, boolean)public ComponentInfo[] getDynamicComponents(int id, ComponentSpec[] components) throws AcsJNoPermissionEx
AcsJNoPermissionExcom.cosylab.acs.maci.Manager#getDynamicComponents(int, com.cosylab.acs.maci.ComponentSpec[])public ComponentInfo getCollocatedComponent(int id, ComponentSpec componentSpec, boolean markAsDefault, java.net.URI targetComponentURI) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx
ManagergetCollocatedComponent in interface Managerid - 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.AcsJCannotGetComponentExAcsJNoPermissionExAcsJIncompleteComponentSpecExAcsJInvalidComponentSpecExAcsJComponentSpecIncompatibleWithActiveComponentExManager.getCollocatedComponent(int, com.cosylab.acs.maci.ComponentSpec, boolean, URI)public Component getComponentNonSticky(int id, java.net.URI curl) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx
ManagergetComponentNonSticky in interface Managerid - 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.AcsJCannotGetComponentExAcsJNoPermissionExManager.getComponentNonSticky(int, java.net.URI)public Component getService(int id, java.net.URI curl, boolean activate, StatusHolder status) throws AcsJNoPermissionEx
ManagergetService in interface ManagerAcsJNoPermissionExManager.getService(int, java.net.URI, boolean, com.cosylab.acs.maci.StatusHolder)public Component[] getServices(int id, java.net.URI[] curls, boolean activate, StatusSeqHolder statuses) throws AcsJNoPermissionEx
AcsJNoPermissionExcom.cosylab.acs.maci.Manager#getServices(int, java.net.URI[], boolean, com.cosylab.acs.maci.StatusSeqHolder)public ClientInfo login(Client reference) throws AcsJNoPermissionEx
Managerlogin in interface Managerreference - A reference to the Client.AcsJNoPermissionExManager.login(com.cosylab.acs.maci.Client)public void logout(int id)
throws AcsJNoPermissionEx
Managerlogout in interface Managerid - Handle of the Client that is logging outAcsJNoPermissionExManager.logout(int)public int registerComponent(int id,
java.net.URI curl,
java.lang.String type,
Component cob)
throws AcsJNoPermissionEx
ManagerregisterComponent in interface Managerid - 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.AcsJNoPermissionExManager.registerComponent(int, java.net.URI, java.lang.String, com.cosylab.acs.maci.Component)public int releaseComponent(int id,
java.net.URI curl)
throws AcsJNoPermissionEx
ManagerreleaseComponent in interface Managerid - Identification of the caller. The caller must have previously got the Component through get_component.curl - The CURL of the Component to be released.AcsJNoPermissionExManager.releaseComponent(int, java.net.URI)public void releaseComponents(int id,
java.net.URI[] curls)
throws AcsJNoPermissionEx
AcsJNoPermissionExcom.cosylab.acs.maci.Manager#releaseComponents(int, java.net.URI[])public int forceReleaseComponent(int id,
java.net.URI curl)
throws AcsJNoPermissionEx
ManagerforceReleaseComponent in interface Managerid - Identification of the caller.curl - The CURL of the Component to be released.AcsJNoPermissionExManager.forceReleaseComponent(int, java.net.URI)public Component restartComponent(int id, java.net.URI curl) throws AcsJNoPermissionEx
ManagerrestartComponent in interface Managerid - 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.AcsJNoPermissionExManager.restartComponent(int, java.net.URI)public void shutdown(int id,
int containers)
throws AcsJNoPermissionEx
Managershutdown in interface Managerid - 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.AcsJNoPermissionExManager.shutdown(int, int)public void unregisterComponent(int id,
int handle)
throws AcsJNoPermissionEx
ManagerunregisterComponent in interface Managerid - 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.AcsJNoPermissionExManager.unregisterComponent(int, int)public void shutdownContainer(int id,
java.lang.String containerName,
int action)
throws AcsJNoPermissionEx
ManagershutdownContainer in interface Managerid - Identification of the caller. The caller must have the SHUTDOWN_SYSTEM access right.action - The code to send to shutdown method of the container. If 0, the Container's disconnect methods is called instead.AcsJNoPermissionExManager.shutdownContainer(int, java.lang.String, int)public void makeComponentImmortal(int id,
java.net.URI curl,
boolean immortalState)
throws AcsJNoPermissionEx
ManagerNoResourcesException exception will be thrown.
The caller must be an owner of an component or have administator rights,
otherwise AcsJNoPermissionEx exception will be thrown.makeComponentImmortal in interface Managerid - 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.AcsJNoPermissionExManager.makeComponentImmortal(int, java.net.URI, boolean)public void setStatePersistence(int id,
boolean enable)
throws AcsJNoPermissionEx
ManagersetStatePersistence in interface Managerid - Identification of the caller.enable - enable/disable switch.AcsJNoPermissionExManager.setStatePersistence(int, boolean)public si.ijs.maci.Manager getManager()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(org.omg.CORBA.Object obj)
Object.equals(Object)public void releaseComponentAsync(int id,
java.net.URI curl,
Manager.LongCompletionCallback callback)
throws AcsJNoPermissionEx,
AcsJBadParameterEx
releaseComponentAsync in interface ManagerAcsJNoPermissionExAcsJBadParameterEx