public class LinkControlClient extends Object implements ConnectionListener, WebSocketResponseHandler, WebSocketClientCallback
| Constructor and Description |
|---|
LinkControlClient(YamcsConnector yconnector,
LinkListener linkListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
connected(String url) |
void |
connecting(String url)
do nothing - we are only interested in connected in order to subscribe to link info information
|
void |
connectionFailed(String url,
YamcsException exception)
do nothing - we are only interested in connected in order to subscribe to link info information
|
void |
disable(YamcsManagement.LinkInfo li) |
void |
disconnected()
do nothing - we are only interested in connected in order to subscribe to link info information
|
void |
enable(YamcsManagement.LinkInfo li) |
void |
log(String message)
do nothing - we are only interested in connected in order to subscribe to link info information
|
void |
onException(Web.WebSocketServerMessage.WebSocketExceptionData e) |
void |
onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data) |
void |
receiveInitialConfig()
this is called at the initial connection and when the instance is changed in the Yamcs Monitor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonCompletionconnected, connecting, connectionFailedpublic LinkControlClient(YamcsConnector yconnector, LinkListener linkListener)
public void enable(YamcsManagement.LinkInfo li) throws YamcsApiException, YamcsException
YamcsApiExceptionYamcsExceptionpublic void disable(YamcsManagement.LinkInfo li) throws YamcsApiException, YamcsException
YamcsApiExceptionYamcsExceptionpublic void connected(String url)
connected in interface ConnectionListenerpublic void receiveInitialConfig()
public void connectionFailed(String url, YamcsException exception)
connectionFailed in interface ConnectionListenerpublic void disconnected()
disconnected in interface ConnectionListenerdisconnected in interface WebSocketClientCallbackpublic void connecting(String url)
connecting in interface ConnectionListenerpublic void log(String message)
log in interface ConnectionListenerpublic void onException(Web.WebSocketServerMessage.WebSocketExceptionData e)
onException in interface WebSocketResponseHandlerpublic void onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data)
onMessage in interface WebSocketClientCallbackCopyright © 2018 Space Applications Services. All rights reserved.