public class YamcsConnector extends Object implements WebSocketClientCallback
| Modifier and Type | Field and Description |
|---|---|
protected YamcsConnectionProperties |
connectionParams |
protected RestClient |
restClient |
protected WebSocketClient |
wsClient |
| Constructor and Description |
|---|
YamcsConnector(boolean retry,
String aplicationName) |
YamcsConnector(String aplicationName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnecting, connectionFailedprotected WebSocketClient wsClient
protected RestClient restClient
protected YamcsConnectionProperties connectionParams
public YamcsConnector(String aplicationName)
aplicationName - - application name that is passed on via web socket (as UserAgent) to be displayed in the YamcsMonitorpublic YamcsConnector(boolean retry,
String aplicationName)
public void addConnectionListener(ConnectionListener connectionListener)
public Future<YamcsConnectionProperties> connect(YamcsConnectionProperties cp)
public void disconnected()
WebSocketClientCallbackdisconnected in interface WebSocketClientCallbackpublic void disconnect()
public String getUrl()
public boolean isConnected()
public boolean isConnecting()
public YamcsConnectionProperties getConnectionParams()
public ExecutorService getExecutor()
public void onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data)
onMessage in interface WebSocketClientCallbackpublic void connected()
WebSocketClientCallbackconnected in interface WebSocketClientCallbackpublic WebSocketClient getWebSocketClient()
public RestClient getRestClient()
public void performSubscription(WebSocketRequest wsr, WebSocketClientCallback client, WebSocketResponseHandler wsrh)
wsr - client - wsrh - - any error related to the request will be sent herepublic CompletableFuture<Web.WebSocketServerMessage.WebSocketReplyData> performSubscription(WebSocketRequest wsr, WebSocketClientCallback client)
Copyright © 2018 Space Applications Services. All rights reserved.