Public Member Functions | |
ManagerProxyImpl (Manager manager, Logger logger) | |
boolean | ping () |
String | domain_name () |
ContainerInfo[] | get_container_info (int id, int[] h, String name_wc) throws NoPermissionEx |
ClientInfo[] | get_client_info (int id, int[] h, String name_wc) throws NoPermissionEx |
ComponentInfo[] | get_component_info (int id, int[] h, String name_wc, String type_wc, boolean active_only) throws NoPermissionEx |
Object | get_component (int id, String component_url, boolean activate) throws NoPermissionEx, CannotGetComponentEx, ComponentNotAlreadyActivatedEx, ComponentConfigurationNotFoundEx |
Object | get_component_non_sticky (int id, String component_url) throws NoPermissionEx, CannotGetComponentEx, ComponentNotAlreadyActivatedEx |
ClientInfo | login (Client reference) throws NoPermissionEx |
void | logout (int id) throws NoPermissionEx |
int | register_component (int id, String component_url, String type, Object component) throws NoPermissionEx, CannotRegisterComponentEx |
void | make_component_immortal (int id, String component_url, boolean immortal_state) throws NoPermissionEx, ComponentNotAlreadyActivatedEx |
int | release_component (int id, String component_url) |
int | force_release_component (int id, String component_url) throws NoPermissionEx |
void | shutdown (int id, int containers) |
void | unregister_component (int id, int h) throws NoPermissionEx |
ComponentInfo | get_default_component (int id, String type) throws NoPermissionEx, NoDefaultComponentEx, CannotGetComponentEx |
ComponentInfo | get_dynamic_component (int id, si.ijs.maci.ComponentSpec c, boolean mark_as_default) throws NoPermissionEx, IncompleteComponentSpecEx, InvalidComponentSpecEx, ComponentSpecIncompatibleWithActiveComponentEx, CannotGetComponentEx |
ComponentInfo | get_collocated_component (int id, si.ijs.maci.ComponentSpec c, boolean mark_as_default, String target_component) throws NoPermissionEx, IncompleteComponentSpecEx, InvalidComponentSpecEx, ComponentSpecIncompatibleWithActiveComponentEx, CannotGetComponentEx |
Object | get_service (int id, String service_url, boolean activate) throws NoPermissionEx, CannotGetComponentEx |
Object | restart_component (int id, String component_url) throws NoPermissionEx |
void | shutdown_container (int id, String container_name, int action) throws NoPermissionEx |
LogLevels | get_default_logLevels () |
void | set_default_logLevels (LogLevels levels) throws IllegalArgumentEx |
String[] | get_logger_names () |
LogLevels | get_logLevels (String logger_name) |
void | set_logLevels (String logger_name, LogLevels levels) throws IllegalArgumentEx |
void | refresh_logging_config () |
int | getNumberOfPendingRequests () |
String | toString () |
Static Public Member Functions | |
int | mapAccessRights (int accessRights) |
Private Member Functions | |
void | reportException (Throwable th) |
Private Attributes | |
Manager | manager |
Logger | logger |
AtomicInteger | pendingRequests = new AtomicInteger(0) |
This class implements the IDL interface of Manager and acts like a proxy, by delegating all requests to an implementation of the com.cosylab.acs.maci.Manager interface.
|
Construct a new Manager which will
|
|
Return the fully qualified name of the domain, e.g., "antenna1.alma.nrao".
|
|
Forcefully release a Component.
|
|
Get all the information that the Manager has about its known clients. To invoke this method, the caller must have INTROSPECT_MANAGER access rights, or it must be the object whose info it is requesting. Calling this function does not affect the internal state of the Manager.
|
|
Activation of an co-deployed component.
si.ijs.maci.COMPONENT_SPEC_ANY -> ComponentSpec.COMPSPEC_ANY |
|
Get a Component, activating it if necessary. The client represented by id (the handle) must have adequate access rights to access the Component. This is untrue of components: components always have unlimited access rights to other components.
|
|
Get all the information that the Manager has about components. To invoke this method, the caller must have INTROSPECT_MANAGER access rights, or it must have adequate privileges to access the Component (the same as with the get_component method). Information about all components is returned, unless the active_only parameter is set to true, in which case only information about those components that are currently registered with the Manager and activated is returned. Calling this function does not affect the internal state of the Manager.
|
|
Get a component, do not activate it and also do not do any reference counting. The client represented by id (the handle) must have adequate access rights to access the Component. This is untrue of components: components always have unlimited access rights to other components.
|
|
Get all the information that the Manager has about its known Containers. To invoke this method, the caller must have INTROSPECT_MANAGER access rights, or it must be the object whose info it is requesting. Calling this function does not affect the internal state of the Manager.
|
|
Returns the default component of specific type.
|
|
Gets the log levels of the default logging configuration. These levels are used by all loggers that have not been configured individually. |
|
Activation of an dynamic component.
|
|
Gets the names of all loggers, to allow configuring their levels individually. The names are those that appear in the log records in the field "SourceObject". This includes the container logger, ORB logger, component loggers, and (only C++) GlobalLogger. |
|
Gets log levels for a particular named logger. If the returned field LogLevels.useDefault is true, then the logger uses the default levels, see get_default_logLevels(); otherwise the returned local and remote levels apply. |
|
Get a service, activating it if necessary (components). The client represented by id (the handle) must have adequate access rights to access the service. NOTE: a component is also a service, i.e. a service activated by a container.
|
|
Returns number of pending requests.
|
|
Login to MACI. Containers, Clients and Administrative clients call this function first to identify themselves with the Manager. The Manager authenticates them (through the authenticate function), and assigns them access rights and a handle, through which they will identify themselves at subsequent calls to the Manager.
|
|
Logout from MACI.
|
|
Change mortality state of an component. Compnent must be already active, otherwise ComponentNotAlreadyActivatedEx exception will be thrown. The caller must be an owner of an component or have administator rights, otherwise NoPermissionEx exception will be thrown.
|
|
Map
|
|
Ping method so that clients can feel good about having an alive manager. |
|
Commands the container or manager to read in again the logging configuration from the CDB and to reconfigure the loggers accordingly. This allows for persistent changes in the logging configuration to become effective, and also for changes of more advanced parameters. |
|
Register a CORBA object as a Component, assigning it a CURL and making it accessible through the Manager. The Component is treated as an immortal Component.
|
|
Release a Component. In order for this operation to be possible, the caller represented by the id must have previously successfuly requested the Component via a call to get_component. Releasing a Component more times than requesting it should be avoided, but it produces no errors.
|
|
|
|
Restarts an component.
|
|
Sets the log levels of the default logging configuration. These levels are used by all loggers that have not been configured individually. |
|
Sets log levels for a particular named logger. If levels.useDefault is true, then the logger will be reset to using default levels; otherwise it will use the supplied local and remote levels. |
|
Shutdown the Manager. Warning: This call will also deactivate all components active in the system, including startup and immortal components.
|
|
Shutdown a container.
|
|
Returns a single-line rendition of this instance into text.
|
|
Unregister a Component from the Manager.
|
|
Logger. |
|
Implementation of the manager to which all requests are delegated. |
|
Identifier. |