public class CommandHistoryResource extends AbstractWebSocketResource implements CommandHistoryConsumer
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_NAME |
client, processor, wsHandler| Constructor and Description |
|---|
CommandHistoryResource(WebSocketProcessorClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
addedCommand(PreparedCommand pc)
Called when a new command matching the filters has been added to the history
|
Web.WebSocketServerMessage.WebSocketReplyData |
processRequest(WebSocketDecodeContext ctx,
WebSocketDecoder decoder)
Process a request and return a reply.
|
void |
quit()
called when the socket is closed
|
void |
switchProcessor(Processor oldProcessor,
Processor newProcessor) |
void |
updatedCommand(Commanding.CommandId cmdId,
long changeDate,
String key,
Value value)
Called when the history of a command matching the filters has been updated
|
getChannel, toAckReplypublic static final String RESOURCE_NAME
public CommandHistoryResource(WebSocketProcessorClient client)
public Web.WebSocketServerMessage.WebSocketReplyData processRequest(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException
AbstractWebSocketResourceprocessRequest in class AbstractWebSocketResourceWebSocketExceptionpublic void quit()
quit in class AbstractWebSocketResourcepublic void switchProcessor(Processor oldProcessor, Processor newProcessor) throws ProcessorException
switchProcessor in class AbstractWebSocketResourceProcessorExceptionpublic void addedCommand(PreparedCommand pc)
CommandHistoryConsumeraddedCommand in interface CommandHistoryConsumerpublic void updatedCommand(Commanding.CommandId cmdId, long changeDate, String key, Value value)
CommandHistoryConsumerupdatedCommand in interface CommandHistoryConsumerCopyright © 2018 Space Applications Services. All rights reserved.