Package org.yamcs.http.websocket
Class ConnectedWebSocketClient
- java.lang.Object
-
- org.yamcs.ConnectedClient
-
- org.yamcs.http.websocket.ConnectedWebSocketClient
-
public class ConnectedWebSocketClient extends ConnectedClient
Runs on the server side and oversees the life cycle of a client web socket connection. Combines multiple types of subscriptions to keep them bundled as one client session.
-
-
Constructor Summary
Constructors Constructor Description ConnectedWebSocketClient(User user, String applicationName, String address, Processor processor, LegacyWebSocketFrameHandler wsHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessorQuit()Called when the processor is closing down<T extends com.google.protobuf.Message>
voidsendData(org.yamcs.protobuf.Yamcs.ProtoDataType dataType, T data)voidsendReply(WebSocketReply reply)voidsetProcessor(Processor newProcessor)Select or change the processor for this client.voidsocketClosed()-
Methods inherited from class org.yamcs.ConnectedClient
getAddress, getApplicationName, getId, getLoginTime, getProcessor, getUser, setClientId
-
-
-
-
Constructor Detail
-
ConnectedWebSocketClient
public ConnectedWebSocketClient(User user, String applicationName, String address, Processor processor, LegacyWebSocketFrameHandler wsHandler)
-
-
Method Detail
-
setProcessor
public void setProcessor(Processor newProcessor) throws ProcessorException
Description copied from class:ConnectedClientSelect or change the processor for this client.- Overrides:
setProcessorin classConnectedClient- Parameters:
newProcessor- the processor to select- Throws:
ProcessorException
-
sendReply
public void sendReply(WebSocketReply reply)
-
sendData
public <T extends com.google.protobuf.Message> void sendData(org.yamcs.protobuf.Yamcs.ProtoDataType dataType, T data)
-
processorQuit
public void processorQuit()
Description copied from class:ConnectedClientCalled when the processor is closing down- Overrides:
processorQuitin classConnectedClient
-
socketClosed
public void socketClosed()
-
-