Public Member Functions | |
void | setConnectsAutomatically (boolean b) |
synchronized void | start () throws NoPermissionEx, CannotRetrieveManagerException, CorbaTransientException, CorbaNotExistException, UnknownErrorException |
synchronized void | stop () |
synchronized void | dismissManager () |
boolean | isConnected () |
int | myMaciHandle () throws NotConnectedToManagerException |
String | getManagerLocation () |
MaciInfo | getMaciInfo () throws NoPermissionEx, NotConnectedToManagerException, CorbaTransientException, CorbaNotExistException, UnknownErrorException |
MaciInfo | getMaciInformation () |
void | refreshSoon () |
synchronized void | refreshNow () throws NoPermissionEx, NotConnectedToManagerException, SystemException, CorbaTransientException, CorbaNotExistException, UnknownErrorException |
Override String | toString () |
Protected Member Functions | |
MaciSupervisor (String clientName, String managerLoc, ORB orb, Logger log) | |
Manager | myManagerReference () throws NotConnectedToManagerException |
void | connectToManager () throws CannotRetrieveManagerException, NoPermissionEx, SystemException |
void | disconnectFromManager () |
ContainerInfo[] | retrieveContainerInfo (String name_wildcard) throws NotConnectedToManagerException, NoPermissionEx, SystemException |
ClientInfo[] | retrieveClientInfo (String name_wildcard) throws NotConnectedToManagerException, NoPermissionEx, SystemException |
ComponentInfo[] | retrieveComponentInfo (String name_wildcard) throws NotConnectedToManagerException, NoPermissionEx, SystemException |
void | refreshNowFailed (Exception exc) |
SortingTreeNode | createNode (Object info) |
SortingTreeNode | createNode (Object info, boolean allowInfoDetails) |
String | extractLocation (org.omg.CORBA.Object reference) |
Protected Attributes | |
String | name = null |
String | managerLoc = null |
ORB | orb = null |
Logger | log = null |
boolean | connectsAutomatically = true |
ManagerConnectionExceptionHandler | mcehandler |
final MaciInfo | maciInfo |
RefreshIfNeeded | refreshTask |
Timer | timer = new Timer("MaciSupervisor.Refresher", true) |
Manager | managerRef = null |
volatile boolean | infoShouldBeRefreshed |
ClientInfo | administratorClientInfo = null |
AdministratorImplementation | acImpl |
|
Creates a MaciSupervisor running on the given ORB, it will connect to the specified manager.
|
|
|
|
Factory method, the boolean parameter supresses auto-generated sub-nodes |
|
Factory method |
|
|
|
msc (2004-11-09): This was requested, suggested, and agreed upon as a workaround for the situation where a manager has gone down (and the application using this macisupervisor knows that the manager is down, e.g. because it made it go down) while this macisupervisor does not yet know that the manager is down. It will only realize that the next time it tries to access it. Doing so will provoke some no_permission error messages in the manager log. To enable the application to avoid these error messages this API method was added. Implements alma::acs::commandcenter::meta::IMaciSupervisor.
|
|
Helper for createNode()
|
|
Returns a TreeModel compiled from information from the Acs manager. The returned model will never become invalid during the lifetime of this MaciSupervisor, and it will be automatically updated. A call to this method will automatically trigger a refresh, possibly throwing an exception or blocking the current thread for a long time. Calling getMaciInformation() and refreshSoon() will shield you from these effects.
Implements alma::acs::commandcenter::meta::IMaciSupervisor.
|
|
Returns a TreeModel compiled from information from the Acs manager. The returned model will never become invalid during the lifetime of this MaciSupervisor, and it will be automatically updated. The returned model may be out-of-date. Call refreshSoon() to have it updated.
|
|
Some people are interested in the weirdest things.. Implements alma::acs::commandcenter::meta::IMaciSupervisor.
|
|
Whether this is connected Implements alma::acs::commandcenter::meta::IMaciSupervisor.
|
|
Implements alma::acs::commandcenter::meta::IMaciSupervisor.
|
|
|
|
Tries to refresh the component-section, container-section, and client-section of the info tree model. The treemodel will be updated when things go well and also when things fail. A call to this method will instantly perform a refresh, possibly throwing an exception or blocking the current thread for a long time. Calling getMaciInformation() and refreshSoon() will shield you from these effects.
|
|
Helper for refreshNow() - i like when the nodes disappear in case of error |
|
Request the MaciInfo be refreshed in the background. |
|
|
|
|
|
The containerHandles argument cannot be specified here. Reason: There's apparently a bug in Manager.get_activator_info() in ACS2.x (nothing known about ACS3.x): The containerHandles argument is not evaluated properly, instead empty (therefore useless) ContainerInfos are returned.
|
|
|
|
This start implementation is smart, it can be called repeatedly.
Implements alma::acs::commandcenter::meta::IMaciSupervisor.
|
|
Tear down this instance. Implements alma::acs::commandcenter::meta::IMaciSupervisor.
|
|
Overridden to provide pretty description. |
|
Instantiated in constructor. The retrieved descriptor will be stored in field administratorClientInfo. |
|
assigned in connectToManager(). unassigned in disconnectFromManager(). This means, this field indicates the "connected" status. |
|
|
|
The 'refresh needed' flag used by the lazy-refresh timer task. |
|
|
|
|
|
|
|
assigned in connectToManager() |
|
|
|
|
|
|
|
|
|
|