Classes | |
| class | ClientMessageTask |
| class | ComponentInfoCompletionCallbackImpl |
| class | DeactivateComponentTask |
| class | DefaultGroupedRunnable |
| class | GroupedNotifyTask |
| interface | GroupedRunnable |
| class | HandleMonitorEntry |
| class | ReferenceCountingLock |
| class | ReleaseComponentResult |
| class | ReleaseComponentTask |
| class | RequestComponentTask |
| class | ServiceComponent |
| class | ShutdownContainerTask |
Public Types | |
| enum | WhyUnloadedReason { REMOVED, TIMEOUT, DISAPPEARED, REPLACED } |
Public Member Functions | |
| void | setThreadUsage (int precentage) |
| void | initialize (Prevayler prevayler, CDBAccess cdbAccess, Context context, Logger logger, ManagerContainerServices managerContainerServices) |
| void | initializationDone () |
| int | getHandle () |
| void | setDomain (String domain) |
| String | getDomain () |
| ContainerInfo[] | getContainerInfo (int id, int[] handles, String name_wc) throws AcsJNoPermissionEx |
| ClientInfo[] | getClientInfo (int id, int[] handles, String name_wc) throws AcsJNoPermissionEx |
| ComponentInfo[] | getComponentInfo (int id, int[] handles, String name_wc, String type_wc, boolean activeOnly) throws AcsJNoPermissionEx |
| Component | getService (int id, URI curl, boolean activate, StatusHolder status) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx |
| Component | getComponent (int id, URI curl, boolean activate, StatusHolder status) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx |
| Component | getComponentNonSticky (int id, URI curl) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx |
| void | makeComponentImmortal (int id, URI curl, boolean immortalState) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJBadParameterEx |
| ClientInfo | login (Client reference) throws AcsJNoPermissionEx |
| void | logout (int id) throws AcsJNoPermissionEx |
| void | logout (int id, boolean pingFailed) throws AcsJNoPermissionEx |
| int | registerComponent (int id, URI curl, String type, Component component) throws AcsJNoPermissionEx, AcsJBadParameterEx |
| void | unregisterComponent (int id, int h) throws AcsJNoPermissionEx, AcsJBadParameterEx |
| Component | restartComponent (int id, URI curl) throws AcsJNoPermissionEx, AcsJBadParameterEx |
| int | releaseComponent (int id, URI curl) throws AcsJNoPermissionEx, AcsJBadParameterEx |
| void | releaseComponentAsync (int id, URI curl, LongCompletionCallback callback) throws AcsJNoPermissionEx, AcsJBadParameterEx |
| int | forceReleaseComponent (int id, URI curl) throws AcsJNoPermissionEx, AcsJBadParameterEx |
| void | releaseComponents (int id, URI[] curls) throws AcsJNoPermissionEx |
| void | shutdownContainer (int id, String containerName, int action) throws AcsJNoPermissionEx |
| void | shutdown (int id, int containers) throws AcsJNoPermissionEx |
| ClientInfo | getClientInfo (int id) |
| ComponentInfo | getComponentInfo (int id) |
| ComponentInfo | getDefaultComponent (int id, String type) throws AcsJNoPermissionEx, NoDefaultComponentException |
| ComponentInfo | getDynamicComponent (int id, ComponentSpec componentSpec, boolean markAsDefault) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx |
| ComponentInfo[] | getDynamicComponents (int id, ComponentSpec[] components) throws AcsJNoPermissionEx |
| ComponentInfo | getCollocatedComponent (int id, ComponentSpec componentSpec, boolean markAsDefault, URI targetComponentURI) throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx |
| boolean | isServiceComponent (String name) |
| void | initializeFederation (Hashtable federationDirectoryProperties) throws CoreException |
| String | toString () |
| void | reportPrevaylerState (final boolean raise, Throwable alarmEx) |
| HandleDataStore | getContainers () |
| HandleDataStore | getAdministrators () |
| HandleDataStore | getClients () |
| HandleDataStore | getComponents () |
| void | logHandleRelease (int handle, WhyUnloadedReason reason) |
| HandleMonitorEntry | getHandleReleaseLog (int handle) |
| Map | getUnavailableComponents () |
| Map | getDefaultComponents () |
| Context | getRemoteDirectory () |
| void | setTransport (Transport transport) |
| void | setRemoteDirectory (Context remoteDirectory) |
| Object | getManagerComponentReference () |
| Object | getRemoteDirectoryComponentReference () |
| void | setManagerComponentReference (Object managerComponentReference) |
| void | setRemoteDirectoryComponentReference (Object remoteDirectoryComponentReference) |
| boolean | isShuttingDown () |
| ManagerShutdown | getShutdownImplementation () |
| void | setShutdownImplementation (ManagerShutdown shutdownImplementation) |
| long | getLockTimeout () |
| void | setLockTimeout (long l) |
| void | setCDBAccess (CDBAccess cdbAccess) |
| HashSet | getActiveAlarms () |
| boolean | hasActiveAlarm (String faultMember) |
| void | alarmRaised (String faultMember) |
| void | alarmCleared (String faultMember) |
Protected Member Functions | |
| void | registerGroupedNotifyTaks (Object key, GroupedRunnable runnable) |
| synchronized long | generateExecutionId () |
Protected Attributes | |
| transient Map< Client, LinkedList< ClientMessageTask > > | clientMessageQueue |
Static Protected Attributes | |
| static final String | FAULT_FAMILY = "Manager" |
| static final String | FAULT_MEMBER = "Prevayler" |
| static final int | FAULT_CODE = 2 |
This class is an implementation of MACI com.cosylab.acs.maci.Manager. It provides the actual internal implementation of the Manager functionality in a way independent from the ACS maci Manager IDL interface.
| void com.cosylab.acs.maci.manager.ManagerImpl.alarmCleared | ( | String | faultMember | ) |
Remember that alarms has been cleared.
Referenced by com.cosylab.acs.maci.manager.PingTimerTask.send_alarm().
| void com.cosylab.acs.maci.manager.ManagerImpl.alarmRaised | ( | String | faultMember | ) |
Remember that alarms has been raised.
Referenced by com.cosylab.acs.maci.manager.PingTimerTask.send_alarm().
| int com.cosylab.acs.maci.manager.ManagerImpl.forceReleaseComponent | ( | int | id, | |
| URI | curl | |||
| ) | throws AcsJNoPermissionEx, AcsJBadParameterEx |
| synchronized long com.cosylab.acs.maci.manager.ManagerImpl.generateExecutionId | ( | ) | [protected] |
| HashSet com.cosylab.acs.maci.manager.ManagerImpl.getActiveAlarms | ( | ) |
| HandleDataStore com.cosylab.acs.maci.manager.ManagerImpl.getAdministrators | ( | ) |
Returns the administrators.
| ClientInfo [] com.cosylab.acs.maci.manager.ManagerImpl.getClientInfo | ( | int | id, | |
| int[] | handles, | |||
| String | name_wc | |||
| ) | throws AcsJNoPermissionEx |
References com.cosylab.acs.maci.ClientInfo.getName().
| ClientInfo com.cosylab.acs.maci.manager.ManagerImpl.getClientInfo | ( | int | id | ) |
Get client info. for specified id of Client or Administrator.
| id | handle of the client whose info. should be returned | |
| returns | requested info, null if client with requested handle does not exits |
| HandleDataStore com.cosylab.acs.maci.manager.ManagerImpl.getClients | ( | ) |
Returns the clients.
| ComponentInfo com.cosylab.acs.maci.manager.ManagerImpl.getCollocatedComponent | ( | int | id, | |
| ComponentSpec | componentSpec, | |||
| boolean | markAsDefault, | |||
| URI | targetComponentURI | |||
| ) | throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx |
References com.cosylab.acs.maci.ComponentInfo.getContainerName(), com.cosylab.acs.maci.ComponentInfo.getName(), and com.cosylab.acs.maci.ComponentInfo.getType().
| Component com.cosylab.acs.maci.manager.ManagerImpl.getComponent | ( | int | id, | |
| URI | curl, | |||
| boolean | activate, | |||
| StatusHolder | status | |||
| ) | throws AcsJCannotGetComponentEx, AcsJNoPermissionEx |
| ComponentInfo [] com.cosylab.acs.maci.manager.ManagerImpl.getComponentInfo | ( | int | id, | |
| int[] | handles, | |||
| String | name_wc, | |||
| String | type_wc, | |||
| boolean | activeOnly | |||
| ) | throws AcsJNoPermissionEx |
here to check if CDB is available
name.equals(ComponentSpec.COMPSPEC_ANY) &&
References com.cosylab.cdb.client.DAOProxy.get_field_data(), com.cosylab.acs.maci.ComponentInfo.getComponent(), com.cosylab.acs.maci.Manager.getComponentInfo(), com.cosylab.acs.maci.ComponentInfo.getContainerName(), com.cosylab.acs.maci.ComponentInfo.getName(), com.cosylab.acs.maci.ComponentInfo.getType(), com.cosylab.acs.maci.ComponentInfo.setContainerName(), and com.cosylab.acs.maci.ComponentInfo.setName().
| ComponentInfo com.cosylab.acs.maci.manager.ManagerImpl.getComponentInfo | ( | int | id | ) |
Get component info. for specified id of Component.
| id | handle of the component whose info. should be returned | |
| returns | requested info, null if component with requested handle does not exits |
| Component com.cosylab.acs.maci.manager.ManagerImpl.getComponentNonSticky | ( | int | id, | |
| URI | curl | |||
| ) | throws AcsJCannotGetComponentEx, AcsJNoPermissionEx |
| HandleDataStore com.cosylab.acs.maci.manager.ManagerImpl.getComponents | ( | ) |
Returns the components.
| ContainerInfo [] com.cosylab.acs.maci.manager.ManagerImpl.getContainerInfo | ( | int | id, | |
| int[] | handles, | |||
| String | name_wc | |||
| ) | throws AcsJNoPermissionEx |
References com.cosylab.acs.maci.ContainerInfo.getName().
| HandleDataStore com.cosylab.acs.maci.manager.ManagerImpl.getContainers | ( | ) |
Returns the containers.
| ComponentInfo com.cosylab.acs.maci.manager.ManagerImpl.getDefaultComponent | ( | int | id, | |
| String | type | |||
| ) | throws AcsJNoPermissionEx, NoDefaultComponentException |
| Map com.cosylab.acs.maci.manager.ManagerImpl.getDefaultComponents | ( | ) |
Returns the defaultComponents.
| String com.cosylab.acs.maci.manager.ManagerImpl.getDomain | ( | ) |
| ComponentInfo com.cosylab.acs.maci.manager.ManagerImpl.getDynamicComponent | ( | int | id, | |
| ComponentSpec | componentSpec, | |||
| boolean | markAsDefault | |||
| ) | throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJIncompleteComponentSpecEx, AcsJInvalidComponentSpecEx, AcsJComponentSpecIncompatibleWithActiveComponentEx |
References com.cosylab.acs.maci.ComponentInfo.getName(), and com.cosylab.acs.maci.ComponentInfo.getType().
| ComponentInfo [] com.cosylab.acs.maci.manager.ManagerImpl.getDynamicComponents | ( | int | id, | |
| ComponentSpec[] | components | |||
| ) | throws AcsJNoPermissionEx |
| int com.cosylab.acs.maci.manager.ManagerImpl.getHandle | ( | ) |
| HandleMonitorEntry com.cosylab.acs.maci.manager.ManagerImpl.getHandleReleaseLog | ( | int | handle | ) |
Get handle release log.
| handle |
null if it does not exist. | long com.cosylab.acs.maci.manager.ManagerImpl.getLockTimeout | ( | ) |
Returns lock timeout (deadlock detection time) in ms.
| Object com.cosylab.acs.maci.manager.ManagerImpl.getManagerComponentReference | ( | ) |
Returns the managerComponentReference.
| Context com.cosylab.acs.maci.manager.ManagerImpl.getRemoteDirectory | ( | ) |
Returns the remoteDirectory.
| Object com.cosylab.acs.maci.manager.ManagerImpl.getRemoteDirectoryComponentReference | ( | ) |
Returns the remoteDirectoryComponentReference.
| Component com.cosylab.acs.maci.manager.ManagerImpl.getService | ( | int | id, | |
| URI | curl, | |||
| boolean | activate, | |||
| StatusHolder | status | |||
| ) | throws AcsJCannotGetComponentEx, AcsJNoPermissionEx |
| ManagerShutdown com.cosylab.acs.maci.manager.ManagerImpl.getShutdownImplementation | ( | ) |
Returns the shutdownImplementation.
| Map com.cosylab.acs.maci.manager.ManagerImpl.getUnavailableComponents | ( | ) |
Returns the unavailableComponents.
| boolean com.cosylab.acs.maci.manager.ManagerImpl.hasActiveAlarm | ( | String | faultMember | ) |
Flag if alarm is active.
Referenced by com.cosylab.acs.maci.manager.PingTimerTask.clear_alarm(), and com.cosylab.acs.maci.manager.PingTimerTask.raise_alarm().
| void com.cosylab.acs.maci.manager.ManagerImpl.initializationDone | ( | ) |
Called from client code after all manager inicialization is done.
| void com.cosylab.acs.maci.manager.ManagerImpl.initialize | ( | Prevayler | prevayler, | |
| CDBAccess | cdbAccess, | |||
| Context | context, | |||
| Logger | logger, | |||
| ManagerContainerServices | managerContainerServices | |||
| ) |
Initializes Manager.
| prevayler | implementation of prevayler system | |
| context | remote directory implementation |
| void com.cosylab.acs.maci.manager.ManagerImpl.initializeFederation | ( | Hashtable | federationDirectoryProperties | ) | throws CoreException |
Initialize manager federation.
| boolean com.cosylab.acs.maci.manager.ManagerImpl.isServiceComponent | ( | String | name | ) |
Checks if component name is a service component name, list of names is defined in the CDB.
| name | name to be checked, non-null |
true if component name is service component name, false otherwise References com.cosylab.cdb.client.DAOProxy.get_string_seq().
| boolean com.cosylab.acs.maci.manager.ManagerImpl.isShuttingDown | ( | ) |
| void com.cosylab.acs.maci.manager.ManagerImpl.logHandleRelease | ( | int | handle, | |
| WhyUnloadedReason | reason | |||
| ) |
Log handle release.
| handle | ||
| reason |
| ClientInfo com.cosylab.acs.maci.manager.ManagerImpl.login | ( | Client | reference | ) | throws AcsJNoPermissionEx |
| void com.cosylab.acs.maci.manager.ManagerImpl.logout | ( | int | id, | |
| boolean | pingFailed | |||
| ) | throws AcsJNoPermissionEx |
Logout client.
| id | client handle. | |
| pingFailed | flag indicating that ping has failed (i.e. reason for logout). |
| void com.cosylab.acs.maci.manager.ManagerImpl.logout | ( | int | id | ) | throws AcsJNoPermissionEx |
| void com.cosylab.acs.maci.manager.ManagerImpl.makeComponentImmortal | ( | int | id, | |
| URI | curl, | |||
| boolean | immortalState | |||
| ) | throws AcsJCannotGetComponentEx, AcsJNoPermissionEx, AcsJBadParameterEx |
References com.cosylab.acs.maci.IntArray.contains(), com.cosylab.acs.maci.ComponentInfo.getClients(), com.cosylab.acs.maci.ComponentInfo.getHandle(), and com.cosylab.acs.maci.ComponentInfo.getName().
| int com.cosylab.acs.maci.manager.ManagerImpl.registerComponent | ( | int | id, | |
| URI | curl, | |||
| String | type, | |||
| Component | component | |||
| ) | throws AcsJNoPermissionEx, AcsJBadParameterEx |
References com.cosylab.acs.maci.IntArray.add(), com.cosylab.acs.maci.IntArray.contains(), com.cosylab.acs.maci.ComponentInfo.getClients(), com.cosylab.acs.maci.ComponentInfo.getHandle(), com.cosylab.acs.maci.ComponentInfo.getName(), com.cosylab.acs.maci.ComponentInfo.getType(), com.cosylab.acs.maci.ComponentInfo.setAccessRights(), com.cosylab.acs.maci.ComponentInfo.setContainer(), com.cosylab.acs.maci.ComponentInfo.setContainerName(), and com.cosylab.acs.maci.ComponentInfo.setInterfaces().
| void com.cosylab.acs.maci.manager.ManagerImpl.registerGroupedNotifyTaks | ( | Object | key, | |
| GroupedRunnable | runnable | |||
| ) | [protected] |
| int com.cosylab.acs.maci.manager.ManagerImpl.releaseComponent | ( | int | id, | |
| URI | curl | |||
| ) | throws AcsJNoPermissionEx, AcsJBadParameterEx |
| void com.cosylab.acs.maci.manager.ManagerImpl.releaseComponentAsync | ( | int | id, | |
| URI | curl, | |||
| LongCompletionCallback | callback | |||
| ) | throws AcsJNoPermissionEx, AcsJBadParameterEx |
| void com.cosylab.acs.maci.manager.ManagerImpl.releaseComponents | ( | int | id, | |
| URI[] | curls | |||
| ) | throws AcsJNoPermissionEx |
| void com.cosylab.acs.maci.manager.ManagerImpl.reportPrevaylerState | ( | final boolean | raise, | |
| Throwable | alarmEx | |||
| ) |
Convenience method for send_alarm with given state.
| faultMember | ||
| state |
References alma.alarmsystem.source.ACSFaultState.setDescriptor(), and alma.alarmsystem.source.ACSFaultState.setUserTimestamp().
| Component com.cosylab.acs.maci.manager.ManagerImpl.restartComponent | ( | int | id, | |
| URI | curl | |||
| ) | throws AcsJNoPermissionEx, AcsJBadParameterEx |
| void com.cosylab.acs.maci.manager.ManagerImpl.setCDBAccess | ( | CDBAccess | cdbAccess | ) |
Sets CDB access.
| cdbAccess | cdbAccess to set. |
References com.cosylab.cdb.client.CDBAccess.destroy().
| void com.cosylab.acs.maci.manager.ManagerImpl.setDomain | ( | String | domain | ) |
Set name of the domain, which this manager will handle.
| domain | name of the domain, which this manager will handle, non-null |
| void com.cosylab.acs.maci.manager.ManagerImpl.setLockTimeout | ( | long | l | ) |
Sets lock timeout (deadlock detection time) in ms.
| l | lock timeout (deadlock detection time) in ms |
| void com.cosylab.acs.maci.manager.ManagerImpl.setManagerComponentReference | ( | Object | managerComponentReference | ) |
Sets the managerComponentReference.
| managerComponentReference | The managerComponentReference to set |
| void com.cosylab.acs.maci.manager.ManagerImpl.setRemoteDirectory | ( | Context | remoteDirectory | ) |
Sets the remoteDirectory.
| remoteDirectory | The remoteDirectory to set |
| void com.cosylab.acs.maci.manager.ManagerImpl.setRemoteDirectoryComponentReference | ( | Object | remoteDirectoryComponentReference | ) |
Sets the remoteDirectoryComponentReference.
| remoteDirectoryComponentReference | The remoteDirectoryComponentReference to set |
| void com.cosylab.acs.maci.manager.ManagerImpl.setShutdownImplementation | ( | ManagerShutdown | shutdownImplementation | ) |
Sets the shutdownImplementation.
| shutdownImplementation | The shutdownImplementation to set |
| void com.cosylab.acs.maci.manager.ManagerImpl.setThreadUsage | ( | int | precentage | ) |
| void com.cosylab.acs.maci.manager.ManagerImpl.setTransport | ( | Transport | transport | ) |
Set the transport.
| transport |
| void com.cosylab.acs.maci.manager.ManagerImpl.shutdown | ( | int | id, | |
| int | containers | |||
| ) | throws AcsJNoPermissionEx |
| void com.cosylab.acs.maci.manager.ManagerImpl.shutdownContainer | ( | int | id, | |
| String | containerName, | |||
| int | action | |||
| ) | throws AcsJNoPermissionEx |
References com.cosylab.acs.maci.Client.disconnect(), com.cosylab.acs.maci.ContainerInfo.getContainer(), com.cosylab.acs.maci.ContainerInfo.getName(), and com.cosylab.acs.maci.Container.shutdown().
| String com.cosylab.acs.maci.manager.ManagerImpl.toString | ( | ) |
Returns a single-line rendition of this instance into text.
| void com.cosylab.acs.maci.manager.ManagerImpl.unregisterComponent | ( | int | id, | |
| int | h | |||
| ) | throws AcsJNoPermissionEx, AcsJBadParameterEx |
transient Map<Client, LinkedList<ClientMessageTask> > com.cosylab.acs.maci.manager.ManagerImpl.clientMessageQueue [protected] |
Queue (per client) for its messages.
final int com.cosylab.acs.maci.manager.ManagerImpl.FAULT_CODE = 2 [static, protected] |
final String com.cosylab.acs.maci.manager.ManagerImpl.FAULT_FAMILY = "Manager" [static, protected] |
final String com.cosylab.acs.maci.manager.ManagerImpl.FAULT_MEMBER = "Prevayler" [static, protected] |
1.7.0