public class WebSocketProcessorClient extends Object implements ProcessorClient
| Constructor and Description |
|---|
WebSocketProcessorClient(String yamcsInstance,
WebSocketFrameHandler wsHandler,
String applicationName,
AuthenticationToken authToken) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName() |
AuthenticationToken |
getAuthToken() |
int |
getClientId() |
Processor |
getProcessor() |
String |
getUsername() |
WebSocketFrameHandler |
getWebSocketFrameHandler() |
void |
processorQuit()
called when the processor is closing down
|
void |
quit()
Called when the socket is closed.
|
void |
registerResource(String route,
AbstractWebSocketResource resource) |
void |
switchProcessor(Processor newProcessor,
AuthenticationToken authToken)
change the connection to another processor
|
public WebSocketProcessorClient(String yamcsInstance, WebSocketFrameHandler wsHandler, String applicationName, AuthenticationToken authToken)
public void switchProcessor(Processor newProcessor, AuthenticationToken authToken) throws ProcessorException
ProcessorClientswitchProcessor in interface ProcessorClientnewProcessor - - processorProcessorExceptionpublic Processor getProcessor()
public void registerResource(String route, AbstractWebSocketResource resource)
public int getClientId()
public AuthenticationToken getAuthToken()
public WebSocketFrameHandler getWebSocketFrameHandler()
public void processorQuit()
ProcessorClientprocessorQuit in interface ProcessorClientpublic String getUsername()
getUsername in interface ProcessorClientpublic String getApplicationName()
getApplicationName in interface ProcessorClientpublic void quit()
Copyright © 2017 Space Applications Services. All rights reserved.