Package org.yamcs
Class ConnectedClient
- java.lang.Object
-
- org.yamcs.ConnectedClient
-
- Direct Known Subclasses:
ConnectedWebSocketClient
public class ConnectedClient extends Object
A client connected to Yamcs Clients may optionally be connected with a processor.
-
-
Constructor Summary
Constructors Constructor Description ConnectedClient(User user, String applicationName, String address)ConnectedClient(User user, String applicationName, String address, Processor processor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddress()StringgetApplicationName()Descriptive application name of the connected clientintgetId()longgetLoginTime()The time at which the client connected to YamcsProcessorgetProcessor()UsergetUser()The user associated with the connected clientvoidprocessorQuit()Called when the processor is closing downvoidsetClientId(int clientId)voidsetProcessor(Processor processor)Select or change the processor for this client.
-
-
-
Method Detail
-
getId
public int getId()
-
setClientId
public void setClientId(int clientId)
-
getUser
public User getUser()
The user associated with the connected client
-
getApplicationName
public String getApplicationName()
Descriptive application name of the connected client
-
getAddress
public String getAddress()
-
getLoginTime
public long getLoginTime()
The time at which the client connected to Yamcs
-
setProcessor
public void setProcessor(Processor processor) throws ProcessorException
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
public Processor getProcessor()
- Returns:
- the current processor the client is connected to (if any).
-
-