Package org.yamcs.http.websocket
Class CommandQueueResource
- java.lang.Object
-
- org.yamcs.http.websocket.CommandQueueResource
-
- All Implemented Interfaces:
CommandQueueListener,WebSocketResource
public class CommandQueueResource extends Object implements WebSocketResource, CommandQueueListener
Provides realtime command queue subscription via web.
-
-
Constructor Summary
Constructors Constructor Description CommandQueueResource(ConnectedWebSocketClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommandAdded(CommandQueue q, PreparedCommand pc)voidcommandRejected(CommandQueue q, PreparedCommand pc)voidcommandSent(CommandQueue q, PreparedCommand pc)voidcommandUpdated(CommandQueue q, PreparedCommand pc)StringgetName()voidselectProcessor(Processor processor)voidsocketClosed()Called when the web socket is closedWebSocketReplysubscribe(WebSocketDecodeContext ctx, WebSocketDecoder decoder)voidunselectProcessor()WebSocketReplyunsubscribe(WebSocketDecodeContext ctx, WebSocketDecoder decoder)voidupdateQueue(CommandQueue q)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.yamcs.commanding.CommandQueueListener
commandQueueRegistered, commandQueueUnregistered, commandUnhandled
-
Methods inherited from interface org.yamcs.http.websocket.WebSocketResource
processRequest, subscribe, subscribeAll, unsubscribeAll
-
-
-
-
Constructor Detail
-
CommandQueueResource
public CommandQueueResource(ConnectedWebSocketClient client)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceWebSocketResource
-
subscribe
public WebSocketReply subscribe(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException
- Specified by:
subscribein interfaceWebSocketResource- Throws:
WebSocketException
-
unsubscribe
public WebSocketReply unsubscribe(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException
- Specified by:
unsubscribein interfaceWebSocketResource- Throws:
WebSocketException
-
unselectProcessor
public void unselectProcessor()
- Specified by:
unselectProcessorin interfaceWebSocketResource
-
selectProcessor
public void selectProcessor(Processor processor) throws ProcessorException
- Specified by:
selectProcessorin interfaceWebSocketResource- Throws:
ProcessorException
-
updateQueue
public void updateQueue(CommandQueue q)
- Specified by:
updateQueuein interfaceCommandQueueListener
-
commandAdded
public void commandAdded(CommandQueue q, PreparedCommand pc)
- Specified by:
commandAddedin interfaceCommandQueueListener
-
commandUpdated
public void commandUpdated(CommandQueue q, PreparedCommand pc)
- Specified by:
commandUpdatedin interfaceCommandQueueListener
-
commandRejected
public void commandRejected(CommandQueue q, PreparedCommand pc)
- Specified by:
commandRejectedin interfaceCommandQueueListener
-
commandSent
public void commandSent(CommandQueue q, PreparedCommand pc)
- Specified by:
commandSentin interfaceCommandQueueListener
-
socketClosed
public void socketClosed()
Description copied from interface:WebSocketResourceCalled when the web socket is closed- Specified by:
socketClosedin interfaceWebSocketResource
-
-