public class ProcessorControlClient extends Object implements ConnectionListener, WebSocketClientCallback, WebSocketResponseHandler
| Constructor and Description |
|---|
ProcessorControlClient(YamcsConnector yconnector) |
| Modifier and Type | Method and Description |
|---|---|
void |
connected(String url)
Called after a successful connection to the yamcs server has been established.
|
void |
connecting(String url)
Called right before the initial connection to yamcs is being made.
|
void |
connectionFailed(String url,
YamcsException exception)
Called when the initial connection to the yamcs server has failed, e.g.
|
CompletableFuture<Void> |
connectToProcessor(String instance,
String processorName,
int[] clients) |
CompletableFuture<byte[]> |
createProcessor(String instance,
String name,
String type,
Yamcs.ReplayRequest spec,
boolean persistent,
int[] clients) |
void |
destroyProcessor(String name) |
void |
disconnected()
Called when the connection to the yamcs server is closed.
|
void |
log(String message)
Used to log messages.
|
void |
onException(Web.WebSocketServerMessage.WebSocketExceptionData e)
Called when there was an error executing a request
|
void |
onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data) |
void |
pauseArchiveReplay(String instance,
String name) |
void |
receiveInitialConfig() |
void |
resumeArchiveReplay(String instance,
String name) |
void |
seekArchiveReplay(String instance,
String name,
long newPosition) |
void |
setProcessorListener(ProcessorListener yamcsMonitor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnected, connecting, connectionFailedonCompletionpublic ProcessorControlClient(YamcsConnector yconnector)
public void setProcessorListener(ProcessorListener yamcsMonitor)
public void destroyProcessor(String name) throws YamcsApiException
YamcsApiExceptionpublic CompletableFuture<byte[]> createProcessor(String instance, String name, String type, Yamcs.ReplayRequest spec, boolean persistent, int[] clients) throws YamcsException, YamcsApiException
YamcsExceptionYamcsApiExceptionpublic CompletableFuture<Void> connectToProcessor(String instance, String processorName, int[] clients) throws YamcsException, YamcsApiException
YamcsExceptionYamcsApiExceptionpublic void pauseArchiveReplay(String instance, String name) throws YamcsException, YamcsApiException
YamcsExceptionYamcsApiExceptionpublic void resumeArchiveReplay(String instance, String name) throws YamcsApiException, YamcsException
YamcsApiExceptionYamcsExceptionpublic void seekArchiveReplay(String instance, String name, long newPosition) throws YamcsApiException, YamcsException
YamcsApiExceptionYamcsExceptionpublic void connecting(String url)
ConnectionListenerconnecting in interface ConnectionListenerurl - the url of the yamcs serverpublic void receiveInitialConfig()
public void connected(String url)
ConnectionListenerNote: when using a re-connecting YamcsConnector, this method is also called after a successful re-connection attempt.
connected in interface ConnectionListenerurl - the url of the yamcs serverpublic void onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data)
onMessage in interface WebSocketClientCallbackpublic void connectionFailed(String url, YamcsException exception)
ConnectionListenerconnectionFailed in interface ConnectionListenerurl - the url of the yamcs serverexception - Optional cause of the connection failure, may be null.public void disconnected()
ConnectionListenerdisconnected in interface ConnectionListenerdisconnected in interface WebSocketClientCallbackpublic void log(String message)
ConnectionListenerlog in interface ConnectionListenermessage - the messages to be loggedpublic void onException(Web.WebSocketServerMessage.WebSocketExceptionData e)
WebSocketResponseHandleronException in interface WebSocketResponseHandlerCopyright © 2018 Space Applications Services. All rights reserved.