| Constructor and Description |
|---|
ClientImpl(java.lang.String name)
Implementation of
Client. |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationData |
authenticate(long executionId,
java.lang.String question)
Authentication method.
|
void |
components_available(ComponentInfo[] cobs)
Notify client about the change (availability) of the components currently in use by this client.
|
void |
components_unavailable(java.lang.String[] cobs)
Notify client that some of the components currently in use by client have become unavailable.
|
void |
disconnect()
Disconnect notification.
|
int |
getHandle()
Returns the handle.
|
java.lang.String |
getName()
Returns the name.
|
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 |
setHandle(int handle)
Sets the handle.
|
void |
setName(java.lang.String name)
Sets the name.
|
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.
|
java.lang.String |
toString()
Returns a single-line rendition of this instance into text.
|
public ClientImpl(java.lang.String name)
Client.name - name of the clientpublic AuthenticationData authenticate(long executionId, java.lang.String question) throws RemoteException
Clientauthenticate in interface Clientquestion - The question posed by the Manager.RemoteExceptionClient.authenticate(long, String)public void components_available(ComponentInfo[] cobs) throws RemoteException
Clientcomponents_available in interface ClientRemoteExceptionClient.components_available(ComponentInfo[])public void components_unavailable(java.lang.String[] cobs)
throws RemoteException
Clientcomponents_unavailable in interface ClientRemoteExceptionClient.components_unavailable(String[])public void disconnect()
throws RemoteException
Clientdisconnect in interface ClientRemoteExceptionClient.disconnect()public void message(MessageType type, java.lang.String message) throws RemoteException
Clientmessage in interface Clienttype - Type of the message, instance of MessageType.message - Contents of the message. The contents are human readable.RemoteExceptionClient.message(MessageType, String)public void taggedmessage(MessageType type, short id, java.lang.String message) throws RemoteException
Clienttaggedmessage in interface Clienttype - Type of the message, instance of MessageType.id - Tag of the message, integermessage - Contents of the message. The contents are human readable.RemoteExceptioncom.cosylab.acs.maci.Client#message(MessageType, int, String)public java.lang.String name()
throws RemoteException
Clientname in interface ClientRemoteExceptionClient.name()public boolean ping()
throws RemoteException
ClientRemoteTransientException 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.ping in interface ClientRemoteExceptionClient.ping()public int getHandle()
public java.lang.String getName()
public void setHandle(int handle)
handle - The handle to setpublic void setName(java.lang.String name)
name - The name to setpublic java.lang.String getRemoteLocation()
throws RemoteException
ClientgetRemoteLocation in interface ClientRemoteExceptionpublic void release()
Clientpublic java.lang.String toString()
toString in class java.lang.Object