public interface Client
| Modifier and Type | Method and Description |
|---|---|
AuthenticationData |
authenticate(long executionId,
java.lang.String question)
Authentication method.
|
void |
components_available(ComponentInfo[] components)
Notify client about the change (availability) of the components currently in use by this client.
|
void |
components_unavailable(java.lang.String[] components)
Notify client that some of the components currently in use by client have become unavailable.
|
void |
disconnect()
Disconnect notification.
|
java.lang.String |
getRemoteLocation()
Get location string (host@port).
|
void |
message(MessageType type,
java.lang.String message)
The Manager and administrators use this method for sending textual messages to the client.
|
java.lang.String |
name()
Client name.
|
boolean |
ping()
Manager pings its clients (both GUI clients, as well as Containers) repeatedly to verify that they still exist.
|
void |
release()
Release remote resources of this object.
|
void |
taggedmessage(MessageType type,
short id,
java.lang.String message)
The Manager and administrators use this method for sending tagged textual messages to the client.
|
AuthenticationData authenticate(long executionId, java.lang.String question) throws RemoteException
question - The question posed by the Manager.RemoteExceptionvoid components_available(ComponentInfo[] components) throws RemoteException
cobs - A sequence of ComponentInfo structures identifying the affected components.
Regular clients receive the name, the type, the handle and the reference of the newly activated component.
Administrative clients also receive the handle of the container where the component was activated.RemoteExceptionvoid components_unavailable(java.lang.String[] components)
throws RemoteException
cobs - CURLs of the unavailable components.RemoteExceptionvoid disconnect()
throws RemoteException
RemoteExceptionvoid message(MessageType type, java.lang.String message) throws RemoteException
type - Type of the message, instance of MessageType.message - Contents of the message. The contents are human readable.RemoteExceptionvoid taggedmessage(MessageType type, short id, java.lang.String message) throws RemoteException
type - Type of the message, instance of MessageType.id - Tag of the message, integermessage - Contents of the message. The contents are human readable.RemoteExceptionjava.lang.String name()
throws RemoteException
RemoteExceptionboolean ping()
throws RemoteException
RemoteTransientException exception is thrown, the Manager should retry the ping several times,
and only then shall the client be assumed to be malfunctioning.
If another exception is thrown, the client may be immediately assumed to be malfunctioning.
Once the client is found to be malfunctioning, the Manager makes an implicit logout of the client.RemoteExceptionjava.lang.String getRemoteLocation()
throws RemoteException
RemoteExceptionvoid release()
RemoteException