public class ManagerProxyImpl
extends ManagerPOA
| Constructor and Description |
|---|
ManagerProxyImpl(Manager manager,
java.util.logging.Logger logger)
Construct a new Manager which will
manager implementation. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
domain_name()
Return the fully qualified name of the domain, e.g., "antenna1.alma.nrao".
|
int |
force_release_component(int id,
java.lang.String component_url)
Forcefully release a Component.
|
ClientInfo[] |
get_client_info(int id,
int[] h,
java.lang.String name_wc)
Get all the information that the Manager has about its known clients.
|
ComponentInfo |
get_collocated_component(int id,
si.ijs.maci.ComponentSpec c,
boolean mark_as_default,
java.lang.String target_component)
Activation of an co-deployed component.
|
ComponentInfo[] |
get_component_info(int id,
int[] h,
java.lang.String name_wc,
java.lang.String type_wc,
boolean active_only)
Get all the information that the Manager has about components.
|
org.omg.CORBA.Object |
get_component_non_sticky(int id,
java.lang.String component_url)
Get a component, do not activate it and also do not do any reference counting.
|
org.omg.CORBA.Object |
get_component(int id,
java.lang.String component_url,
boolean activate)
Get a Component, activating it if necessary.
|
ContainerInfo[] |
get_container_info(int id,
int[] h,
java.lang.String name_wc)
Get all the information that the Manager has about its known Containers.
|
ComponentInfo |
get_default_component(int id,
java.lang.String type)
Returns the default component of specific type.
|
LogLevels |
get_default_logLevels()
Gets the log levels of the default logging configuration.
|
ComponentInfo |
get_dynamic_component(int id,
si.ijs.maci.ComponentSpec c,
boolean mark_as_default)
Activation of an dynamic component.
|
java.lang.String[] |
get_logger_names()
Gets the names of all loggers, to allow configuring their levels
individually.
|
LogLevels |
get_logLevels(java.lang.String logger_name)
Gets log levels for a particular named logger.
|
org.omg.CORBA.Object |
get_service(int id,
java.lang.String service_url,
boolean activate)
Get a service, activating it if necessary (components).
|
int |
getNumberOfPendingRequests()
Returns number of pending requests.
|
ClientInfo |
login(Client reference)
Login to MACI.
|
void |
logout(int id)
Logout from MACI.
|
void |
make_component_immortal(int id,
java.lang.String component_url,
boolean immortal_state)
Change mortality state of an component.
|
static int |
mapAccessRights(int accessRights)
Map
AccessRights status codes to CORBA specific. |
boolean |
ping()
Ping method so that clients can feel good about having an alive manager.
|
void |
refresh_logging_config()
Commands the container or manager to read in again the logging
configuration from the CDB and to reconfigure the loggers accordingly.
|
int |
register_component(int id,
java.lang.String component_url,
java.lang.String type,
org.omg.CORBA.Object component)
Register a CORBA object as a Component, assigning it a CURL and making it accessible through the Manager.
|
void |
release_component_async(int id,
java.lang.String component_url,
CBlong callback,
CBDescIn desc) |
int |
release_component(int id,
java.lang.String component_url)
Release a Component.
|
org.omg.CORBA.Object |
restart_component(int id,
java.lang.String component_url)
Restarts an component.
|
void |
set_default_logLevels(LogLevels levels)
Sets the log levels of the default logging configuration.
|
void |
set_logLevels(java.lang.String logger_name,
LogLevels levels)
Sets log levels for a particular named logger.
|
void |
set_state_persistence(int id,
boolean enable) |
void |
shutdown_container(int id,
java.lang.String container_name,
int action)
Shutdown a container.
|
void |
shutdown(int id,
int containers)
Shutdown the Manager.
|
java.lang.String |
toString()
Returns a single-line rendition of this instance into text.
|
void |
unregister_component(int id,
int h)
Unregister a Component from the Manager.
|
public ManagerProxyImpl(Manager manager, java.util.logging.Logger logger)
manager implementation.manager - implementation of the manager, non-null.logger - logger.public boolean ping()
si.ijs.maci.ManagerOperations#ping()public java.lang.String domain_name()
public ContainerInfo[] get_container_info(int id,
int[] h,
java.lang.String name_wc)
throws NoPermissionEx
id - Identification of the caller.h - 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.NoPermissionExpublic ClientInfo[] get_client_info(int id,
int[] h,
java.lang.String name_wc)
throws NoPermissionEx
id - Identification of the caller.h - 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.NoPermissionExpublic ComponentInfo[] get_component_info(int id,
int[] h,
java.lang.String name_wc,
java.lang.String type_wc,
boolean active_only)
throws NoPermissionEx
id - Identification of the caller.h - 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.active_only - NoPermissionExpublic org.omg.CORBA.Object get_component(int id,
java.lang.String component_url,
boolean activate)
throws NoPermissionEx,
CannotGetComponentEx,
ComponentNotAlreadyActivatedEx,
ComponentConfigurationNotFoundEx
id - Identification of the caller. If this is an invalid handle, or if the caller does not have enough access rights, a maciErrType::NoPermissionEx exception is raised.component_url - 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 does not exist, a nil reference is returned and status is set to COMPONENT_NOT_ACTIVATED.NoPermissionExCannotGetComponentExComponentNotAlreadyActivatedExComponentConfigurationNotFoundExpublic org.omg.CORBA.Object get_component_non_sticky(int id,
java.lang.String component_url)
throws NoPermissionEx,
CannotGetComponentEx,
ComponentNotAlreadyActivatedEx
id - Identification of the caller. If this is an invalid handle, or if the caller does not have enough access rights, a maciErrType::NoPermissionEx exception is raised.component_url - CURL of the Component whose reference is to be retrieved.NoPermissionExCannotGetComponentExComponentNotAlreadyActivatedExpublic ClientInfo login(Client reference)
throws NoPermissionEx
reference - A reference to the Client.NoPermissionExpublic void logout(int id)
throws NoPermissionEx
id - Handle of the Client that is logging outNoPermissionExpublic int register_component(int id,
java.lang.String component_url,
java.lang.String type,
org.omg.CORBA.Object component)
throws NoPermissionEx,
CannotRegisterComponentEx
id - Identification of the caller. The caller must have the REGISTER_component access right to perform this operation.component_url - 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 ComponentComponent - Reference to the CORBA object (Component).NoPermissionExCannotRegisterComponentExpublic void make_component_immortal(int id,
java.lang.String component_url,
boolean immortal_state)
throws NoPermissionEx,
ComponentNotAlreadyActivatedEx
id - Identification of the caller. The caller must be an owner of an component or have administator rights.component_url - The CURL of the component whose mortality to change.immortal_state - New mortality state.NoPermissionExComponentNotAlreadyActivatedExpublic void release_component_async(int id,
java.lang.String component_url,
CBlong callback,
CBDescIn desc)
throws NoPermissionEx
NoPermissionExpublic int release_component(int id,
java.lang.String component_url)
throws CannotDeactivateComponentEx,
ComponentDeactivationUncleanEx,
ComponentDeactivationFailedEx,
NoPermissionEx
id - Identification of the caller. The caller must have previously gotten the Component through get_component.component_url - The CURL of the Component to be released.CannotDeactivateComponentExComponentDeactivationUncleanExComponentDeactivationFailedExNoPermissionExpublic int force_release_component(int id,
java.lang.String component_url)
throws NoPermissionEx
id - Identification of the caller.component_url - The CURL of the Component to be released.NoPermissionExpublic void shutdown(int id,
int containers)
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.public void unregister_component(int id,
int h)
throws NoPermissionEx
id - Identification of the caller. The caller must have the REGISTER_COMPONENT access right to perform this operation.h - 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.NoPermissionExpublic ComponentInfo get_default_component(int id,
java.lang.String type)
throws NoPermissionEx,
NoDefaultComponentEx,
CannotGetComponentEx
id - identification of the caller.type - component type, IDL ID.ComponentInfo of requested component.NoPermissionExNoDefaultComponentExCannotGetComponentExpublic ComponentInfo get_dynamic_component(int id,
si.ijs.maci.ComponentSpec c,
boolean mark_as_default)
throws NoPermissionEx,
IncompleteComponentSpecEx,
InvalidComponentSpecEx,
ComponentSpecIncompatibleWithActiveComponentEx,
CannotGetComponentEx
id - identification of the caller.c - component to be obtained.mark_as_default - mark component as default component of its type.ComponentInfo of requested component.NoPermissionExIncompleteComponentSpecExInvalidComponentSpecExComponentSpecIncompatibleWithActiveComponentExCannotGetComponentExpublic ComponentInfo get_collocated_component(int id,
si.ijs.maci.ComponentSpec c,
boolean mark_as_default,
java.lang.String target_component)
throws NoPermissionEx,
IncompleteComponentSpecEx,
InvalidComponentSpecEx,
ComponentSpecIncompatibleWithActiveComponentEx,
CannotGetComponentEx
id - identification of the caller.c - component to be obtained.mark_as_default - mark component as default component of its type.target_component - target co-deployed component.ComponentInfo of requested co-deployed component.NoPermissionExIncompleteComponentSpecExInvalidComponentSpecExComponentSpecIncompatibleWithActiveComponentExCannotGetComponentExpublic org.omg.CORBA.Object get_service(int id,
java.lang.String service_url,
boolean activate)
throws NoPermissionEx,
CannotGetComponentEx
id - Identification of the caller. If this is an invalid handle, or if the caller does not have enough access rights, a maciErrType::NoPermissionEx exception is raised.service_url - CURL of the service 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 does not exist, a nil 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.NoPermissionExCannotGetComponentExget_component(int, java.lang.String, boolean)public org.omg.CORBA.Object restart_component(int id,
java.lang.String component_url)
throws NoPermissionEx
id - identification of the caller. Called has to be an owner of the component.component_url - CURL of the component to be restarted.null if it fails.NoPermissionExpublic void shutdown_container(int id,
java.lang.String container_name,
int action)
throws NoPermissionEx
id - identification of the caller. Called has to be an owner of the component.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.NoPermissionExpublic void set_state_persistence(int id,
boolean enable)
throws NoPermissionEx
NoPermissionExpublic LogLevels get_default_logLevels()
public void set_default_logLevels(LogLevels levels)
throws IllegalLogLevelsEx
IllegalLogLevelsExpublic java.lang.String[] get_logger_names()
public LogLevels get_logLevels(java.lang.String logger_name)
public void set_logLevels(java.lang.String logger_name,
LogLevels levels)
throws IllegalLogLevelsEx
IllegalLogLevelsExpublic void refresh_logging_config()
public static int mapAccessRights(int accessRights)
AccessRights status codes to CORBA specific.accessRights - access rights as defined in AccessRightspublic int getNumberOfPendingRequests()
public java.lang.String toString()