Package org.yamcs.http.websocket
Class ParameterResource
java.lang.Object
org.yamcs.http.websocket.ParameterResource
- All Implemented Interfaces:
WebSocketResource
,ParameterWithIdConsumer
Provides realtime parameter subscription via web.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
selectProcessor
(Processor processor) void
Called when the web socket is closedsubscribe
(WebSocketDecodeContext ctx, WebSocketDecoder decoder) subscribeAll
(WebSocketDecodeContext ctx, WebSocketDecoder decoder) void
unsubscribe
(WebSocketDecodeContext ctx, WebSocketDecoder decoder) unsubscribeAll
(WebSocketDecodeContext ctx, WebSocketDecoder decoder) void
update
(int subscriptionId, List<ParameterValueWithId> paramList) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.http.websocket.WebSocketResource
processRequest, subscribe
-
Constructor Details
-
ParameterResource
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceWebSocketResource
-
subscribe
public WebSocketReply subscribe(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException - Specified by:
subscribe
in interfaceWebSocketResource
- Throws:
WebSocketException
-
unsubscribe
public WebSocketReply unsubscribe(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException - Specified by:
unsubscribe
in interfaceWebSocketResource
- Throws:
WebSocketException
-
subscribeAll
public WebSocketReply subscribeAll(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException - Specified by:
subscribeAll
in interfaceWebSocketResource
- Throws:
WebSocketException
-
unsubscribeAll
public WebSocketReply unsubscribeAll(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException - Specified by:
unsubscribeAll
in interfaceWebSocketResource
- Throws:
WebSocketException
-
update
- Specified by:
update
in interfaceParameterWithIdConsumer
-
unselectProcessor
public void unselectProcessor()- Specified by:
unselectProcessor
in interfaceWebSocketResource
-
selectProcessor
- Specified by:
selectProcessor
in interfaceWebSocketResource
- Throws:
ProcessorException
-
socketClosed
public void socketClosed()Description copied from interface:WebSocketResource
Called when the web socket is closed- Specified by:
socketClosed
in interfaceWebSocketResource
-