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() |
YProcessor |
getProcessor() |
String |
getUsername() |
WebSocketFrameHandler |
getWebSocketFrameHandler() |
void |
quit()
Called when the socket is closed.
|
void |
registerResource(String route,
AbstractWebSocketResource resource) |
void |
switchProcessor(YProcessor newProcessor,
AuthenticationToken authToken)
change the connection to another processor
|
void |
yProcessorQuit()
called when the processor is closing down
|
public WebSocketProcessorClient(String yamcsInstance, WebSocketFrameHandler wsHandler, String applicationName, AuthenticationToken authToken)
public void switchProcessor(YProcessor newProcessor, AuthenticationToken authToken) throws ProcessorException
ProcessorClientswitchProcessor in interface ProcessorClientnewProcessor - - processorProcessorExceptionpublic YProcessor getProcessor()
public void registerResource(String route, AbstractWebSocketResource resource)
public int getClientId()
public AuthenticationToken getAuthToken()
public WebSocketFrameHandler getWebSocketFrameHandler()
public void yProcessorQuit()
ProcessorClientyProcessorQuit 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.