Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::test::corbareftest::AdministratorClient Class Reference

Collaboration diagram for alma::test::corbareftest::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 tag, 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 (AdministratorListener 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
AdministratorListener listener = null
volatile boolean interrupted
long startTime = System.currentTimeMillis()
long executionId = 0

Constructor & Destructor Documentation

alma::test::corbareftest::AdministratorClient::AdministratorClient ORB  theOrb,
Logger  theLogger
[inline]
 

Constructor

Parameters:
theOrb The ORB
theLogger The Logger


Member Function Documentation

void alma::test::corbareftest::AdministratorClient::addLogListener AdministratorListener  l  )  [inline]
 

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

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

AuthenticationData alma::test::corbareftest::AdministratorClient::authenticate long  executionId,
String  question
[inline]
 

void alma::test::corbareftest::AdministratorClient::client_logged_in ClientInfo  info,
long  timeStamp,
long  executionId
[inline]
 

void alma::test::corbareftest::AdministratorClient::client_logged_out int  h,
long  timeStamp
[inline]
 

void alma::test::corbareftest::AdministratorClient::component_activated ComponentInfo  info,
long  timeStamp,
long  executionId
[inline]
 

void alma::test::corbareftest::AdministratorClient::component_deactivated int  h,
long  timeStamp
[inline]
 

void alma::test::corbareftest::AdministratorClient::components_available ComponentInfo[]  components  )  [inline]
 

void alma::test::corbareftest::AdministratorClient::components_released int[]  clients,
int[]  components,
long  timeStamp
[inline]
 

void alma::test::corbareftest::AdministratorClient::components_requested int[]  clients,
int[]  components,
long  timeStamp
[inline]
 

void alma::test::corbareftest::AdministratorClient::components_unavailable String[]  component_names  )  [inline]
 

void alma::test::corbareftest::AdministratorClient::connectToManager  )  throws Exception [inline]
 

Connect to the manager

void alma::test::corbareftest::AdministratorClient::container_logged_in ContainerInfo  info,
long  timeStamp,
long  executionId
[inline]
 

void alma::test::corbareftest::AdministratorClient::container_logged_out int  h,
long  timeStamp
[inline]
 

void alma::test::corbareftest::AdministratorClient::disconnect  )  [inline]
 

ComponentInfo alma::test::corbareftest::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

ComponentInfo alma::test::corbareftest::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

String alma::test::corbareftest::AdministratorClient::getManagerLoc  )  [inline]
 

Getter method.

Returns:
The manager loc

Manager alma::test::corbareftest::AdministratorClient::getManagerRef  )  [inline]
 

Getter method

Returns:
The manager reference

void alma::test::corbareftest::AdministratorClient::interruptManagerBusy  )  [inline]
 

void alma::test::corbareftest::AdministratorClient::message short  type,
String  message
[inline]
 

String alma::test::corbareftest::AdministratorClient::name  )  [inline]
 

boolean alma::test::corbareftest::AdministratorClient::ping  )  [inline]
 

ClientInfo [] alma::test::corbareftest::AdministratorClient::retrieveClientInfo String  name_wildcard  )  throws Exception [inline]
 

Exceptions:
NoPermissionEx 
NotConnectedToManagerException 
SystemException 

ComponentInfo [] alma::test::corbareftest::AdministratorClient::retrieveComponentInfo String  name_wildcard  )  throws Exception [inline]
 

Exceptions:
NoPermissionEx 
NotConnectedToManagerException 
SystemException 

ContainerInfo [] alma::test::corbareftest::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 

void alma::test::corbareftest::AdministratorClient::taggedmessage short  type,
short  tag,
String  message
[inline]
 


Member Data Documentation

ClientInfo alma::test::corbareftest::AdministratorClient::administratorInfo [private]
 

long alma::test::corbareftest::AdministratorClient::executionId = 0 [private]
 

volatile boolean alma::test::corbareftest::AdministratorClient::interrupted [private]
 

AdministratorListener alma::test::corbareftest::AdministratorClient::listener = null [private]
 

Logger alma::test::corbareftest::AdministratorClient::logger = null [private]
 

String alma::test::corbareftest::AdministratorClient::managerLoc = null [private]
 

Manager alma::test::corbareftest::AdministratorClient::managerRef = null [private]
 

ORB alma::test::corbareftest::AdministratorClient::orb = null [private]
 

long alma::test::corbareftest::AdministratorClient::startTime = System.currentTimeMillis() [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:07:26 2009 for ACS Java API by doxygen 1.3.8