public class CommandQueueResource extends AbstractWebSocketResource implements CommandQueueListener
| Modifier and Type | Field and Description |
|---|---|
static String |
OP_subscribe |
static String |
OP_unsubscribe |
static String |
RESOURCE_NAME |
client, processor, wsHandler| Constructor and Description |
|---|
CommandQueueResource(WebSocketProcessorClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
commandAdded(CommandQueue q,
PreparedCommand pc) |
void |
commandRejected(CommandQueue q,
PreparedCommand pc) |
void |
commandSent(CommandQueue q,
PreparedCommand pc) |
Web.WebSocketServerMessage.WebSocketReplyData |
processRequest(WebSocketDecodeContext ctx,
WebSocketDecoder decoder)
Process a request and return a reply.
|
void |
quit()
Called when the web socket is closed
|
void |
switchProcessor(Processor oldProcessor,
Processor newProcessor) |
void |
updateQueue(CommandQueue q) |
getChannel, toAckReplyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcommandQueueRegistered, commandQueueUnregisteredpublic static final String RESOURCE_NAME
public static final String OP_subscribe
public static final String OP_unsubscribe
public CommandQueueResource(WebSocketProcessorClient client)
public Web.WebSocketServerMessage.WebSocketReplyData processRequest(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException
AbstractWebSocketResourceprocessRequest in class AbstractWebSocketResourceWebSocketExceptionpublic void quit()
AbstractWebSocketResourcequit in class AbstractWebSocketResourcepublic void switchProcessor(Processor oldProcessor, Processor newProcessor) throws ProcessorException
switchProcessor in class AbstractWebSocketResourceProcessorExceptionpublic void updateQueue(CommandQueue q)
updateQueue in interface CommandQueueListenerpublic void commandAdded(CommandQueue q, PreparedCommand pc)
commandAdded in interface CommandQueueListenerpublic void commandRejected(CommandQueue q, PreparedCommand pc)
commandRejected in interface CommandQueueListenerpublic void commandSent(CommandQueue q, PreparedCommand pc)
commandSent in interface CommandQueueListenerCopyright © 2018 Space Applications Services. All rights reserved.