alma::acs::gui::loglevel::tree::AdministratorClient Class Reference

Inheritance diagram for alma::acs::gui::loglevel::tree::AdministratorClient:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::gui::loglevel::tree::AdministratorClient:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AdministratorClient (ORB theOrb, Logger theLogger)
void client_logged_in (ClientInfo info, long timeStamp, long executionId)
void client_logged_out (int h, long timeStamp)
void component_activated (ComponentInfo info, long timeStamp, long executionId)
void component_deactivated (int h, long timeStamp)
void components_released (int[] clients, int[] components, long timeStamp)
void components_requested (int[] clients, int[] components, long timeStamp)
void container_logged_in (ContainerInfo info, long timeStamp, long executionId)
void container_logged_out (int h, long timeStamp)
AuthenticationData authenticate (long executionId, String question)
void components_available (ComponentInfo[] components)
void components_unavailable (String[] component_names)
void disconnect ()
void message (short type, String message)
void taggedmessage (short type, short messageID, String message)
String name ()
boolean ping ()
void connectToManager () throws Exception
String getManagerLoc ()
ContainerInfo[] retrieveContainerInfo (String name_wildcard) throws Exception
ClientInfo[] retrieveClientInfo (String name_wildcard) throws Exception
ComponentInfo[] retrieveComponentInfo (String name_wildcard) throws Exception
void addLogListener (LogLevelListener l)
Manager getManagerRef ()
void interruptManagerBusy ()

Private Member Functions

ComponentInfo getComponentInfo (String name) throws Exception
ComponentInfo getComponentInfo (int handle) throws Exception

Private Attributes

Manager managerRef = null
String managerLoc = null
ORB orb = null
Logger logger = null
ClientInfo administratorInfo
LogLevelListener listener = null
volatile boolean interrupted
ManagerBusyDlg busyDlg = null
long startTime = System.currentTimeMillis()
long executionId = 0

Constructor & Destructor Documentation

alma::acs::gui::loglevel::tree::AdministratorClient::AdministratorClient ( ORB  theOrb,
Logger  theLogger 
) [inline]

Constructor

Parameters:
theOrb The ORB
theLogger The Logger

References logger, and orb.


Member Function Documentation

void alma::acs::gui::loglevel::tree::AdministratorClient::addLogListener ( LogLevelListener  l  )  [inline]

Set the listener for login/logout events generated by componets/containers/clients

Parameters:
l The listener (can be null)
See also:
LogLevelListener

References listener.

Referenced by alma::acs::gui::loglevel::tree::LogLvlTreeModel::start(), and alma::acs::gui::loglevel::tree::LogLvlTreeModel::stop().

AuthenticationData alma::acs::gui::loglevel::tree::AdministratorClient::authenticate ( long  executionId,
String  question 
) [inline]

References startTime.

void alma::acs::gui::loglevel::tree::AdministratorClient::client_logged_in ( ClientInfo  info,
long  timeStamp,
long  executionId 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::client_logged_out ( int  h,
long  timeStamp 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::component_activated ( ComponentInfo  info,
long  timeStamp,
long  executionId 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::component_deactivated ( int  h,
long  timeStamp 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::components_available ( ComponentInfo[]  components  )  [inline]

References listener.

void alma::acs::gui::loglevel::tree::AdministratorClient::components_released ( int[]  clients,
int[]  components,
long  timeStamp 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::components_requested ( int[]  clients,
int[]  components,
long  timeStamp 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::components_unavailable ( String[]  component_names  )  [inline]

References listener.

void alma::acs::gui::loglevel::tree::AdministratorClient::connectToManager (  )  throws Exception [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::container_logged_in ( ContainerInfo  info,
long  timeStamp,
long  executionId 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::container_logged_out ( int  h,
long  timeStamp 
) [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::disconnect (  )  [inline]
ComponentInfo alma::acs::gui::loglevel::tree::AdministratorClient::getComponentInfo ( int  handle  )  throws Exception [inline, private]

Get the ComponentInfo of the component with the given handle

Parameters:
handle The handle of the component
Returns:
The info for the component with the given handle null if the component with the given name does not exist

References retrieveComponentInfo().

ComponentInfo alma::acs::gui::loglevel::tree::AdministratorClient::getComponentInfo ( String  name  )  throws Exception [inline, private]

Get the ComponentInfo of the component with the given name

Parameters:
name The name of the component
Returns:
The info for the component with the given name null if the component with the given name does not exist

References name(), and retrieveComponentInfo().

Referenced by components_released(), and components_requested().

String alma::acs::gui::loglevel::tree::AdministratorClient::getManagerLoc (  )  [inline]
Manager alma::acs::gui::loglevel::tree::AdministratorClient::getManagerRef (  )  [inline]

Getter method

Returns:
The manager reference

References managerRef.

Referenced by alma::acs::gui::loglevel::tree::LogLvlTreeModel::getManagerRef().

void alma::acs::gui::loglevel::tree::AdministratorClient::interruptManagerBusy (  )  [inline]
void alma::acs::gui::loglevel::tree::AdministratorClient::message ( short  type,
String  message 
) [inline]
String alma::acs::gui::loglevel::tree::AdministratorClient::name (  )  [inline]
boolean alma::acs::gui::loglevel::tree::AdministratorClient::ping (  )  [inline]
ClientInfo [] alma::acs::gui::loglevel::tree::AdministratorClient::retrieveClientInfo ( String  name_wildcard  )  throws Exception [inline]
ComponentInfo [] alma::acs::gui::loglevel::tree::AdministratorClient::retrieveComponentInfo ( String  name_wildcard  )  throws Exception [inline]
ContainerInfo [] alma::acs::gui::loglevel::tree::AdministratorClient::retrieveContainerInfo ( String  name_wildcard  )  throws Exception [inline]

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.

Parameters:
name_wildcard not verified to work as expected, recommended to use '*'.
Returns:
Exceptions:
NoPermissionEx 
NotConnectedToManagerException 
SystemException 

References administratorInfo, si::ijs::maci::ManagerOperations::get_container_info(), si::ijs::maci::ClientInfo::h, and managerRef.

Referenced by alma::acs::gui::loglevel::tree::LogLvlTreeModel::buildContainersNode().

void alma::acs::gui::loglevel::tree::AdministratorClient::taggedmessage ( short  type,
short  messageID,
String  message 
) [inline]

Member Data Documentation

Referenced by disconnect(), and retrieveClientInfo().

long alma::acs::gui::loglevel::tree::AdministratorClient::startTime = System.currentTimeMillis() [private]

Referenced by authenticate().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2