public class ManagementResource extends AbstractWebSocketResource implements ManagementListener
| Modifier and Type | Field and Description |
|---|---|
static String |
OP_getClientInfo |
static String |
OP_getProcessorInfo |
static String |
OP_subscribe |
static String |
RESOURCE_NAME |
client, processor, wsHandler| Constructor and Description |
|---|
ManagementResource(WebSocketProcessorClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
clientInfoChanged(YamcsManagement.ClientInfo ci) |
void |
clientRegistered(YamcsManagement.ClientInfo ci) |
void |
clientUnregistered(YamcsManagement.ClientInfo ci) |
void |
processorAdded(YamcsManagement.ProcessorInfo processorInfo) |
void |
processorClosed(YamcsManagement.ProcessorInfo processorInfo) |
void |
processorStateChanged(YamcsManagement.ProcessorInfo processorInfo) |
WebSocketReply |
processRequest(WebSocketDecodeContext ctx,
WebSocketDecoder decoder)
Process a request and return a reply.
|
void |
quit()
Called when the web socket is closed
|
void |
statisticsUpdated(Processor processor,
YamcsManagement.Statistics stats)
Called by the
ManagementService when the statistics for the given processor were updated. |
getChannel, switchProcessorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclientInfoChanged, instanceStateChanged, serviceRegistered, serviceUnregisteredpublic static final String RESOURCE_NAME
public static final String OP_getProcessorInfo
public static final String OP_getClientInfo
public static final String OP_subscribe
public ManagementResource(WebSocketProcessorClient client)
public WebSocketReply processRequest(WebSocketDecodeContext ctx, WebSocketDecoder decoder) throws WebSocketException
AbstractWebSocketResourceprocessRequest in class AbstractWebSocketResourceWebSocketExceptionpublic void quit()
AbstractWebSocketResourcequit in class AbstractWebSocketResourcepublic void processorAdded(YamcsManagement.ProcessorInfo processorInfo)
processorAdded in interface ManagementListenerpublic void processorStateChanged(YamcsManagement.ProcessorInfo processorInfo)
processorStateChanged in interface ManagementListenerpublic void processorClosed(YamcsManagement.ProcessorInfo processorInfo)
processorClosed in interface ManagementListenerpublic void clientRegistered(YamcsManagement.ClientInfo ci)
clientRegistered in interface ManagementListenerpublic void clientInfoChanged(YamcsManagement.ClientInfo ci)
clientInfoChanged in interface ManagementListenerpublic void clientUnregistered(YamcsManagement.ClientInfo ci)
clientUnregistered in interface ManagementListenerpublic void statisticsUpdated(Processor processor, YamcsManagement.Statistics stats)
ManagementListenerManagementService when the statistics for the given processor were updated.
This usually happens at about 1Hz.statisticsUpdated in interface ManagementListenerCopyright © 2018 Space Applications Services. All rights reserved.