Package org.yamcs
Class ConnectedClient
java.lang.Object
org.yamcs.ConnectedClient
- Direct Known Subclasses:
ConnectedWebSocketClient
A client connected to Yamcs
Clients may optionally be connected with a processor.
-
Constructor Summary
ConstructorDescriptionConnectedClient
(User user, String applicationName, String address) ConnectedClient
(User user, String applicationName, String address, Processor processor) -
Method Summary
Modifier and TypeMethodDescriptionDescriptive application name of the connected clientint
getId()
long
The time at which the client connected to YamcsgetUser()
The user associated with the connected clientvoid
Called when the processor is closing downvoid
setClientId
(int clientId) void
setProcessor
(Processor processor) Select or change the processor for this client.
-
Constructor Details
-
ConnectedClient
-
ConnectedClient
-
-
Method Details
-
getId
public int getId() -
setClientId
public void setClientId(int clientId) -
getUser
The user associated with the connected client -
getApplicationName
Descriptive application name of the connected client -
getAddress
-
getLoginTime
public long getLoginTime()The time at which the client connected to Yamcs -
setProcessor
Select or change the processor for this client.- Parameters:
processor
- the processor to select- Throws:
ProcessorException
-
processorQuit
public void processorQuit()Called when the processor is closing down -
getProcessor
- Returns:
- the current processor the client is connected to (if any).
-