public class CommandQueueControlClient extends Object implements ConnectionListener, WebSocketClientCallback, WebSocketResponseHandler
| Constructor and Description |
|---|
CommandQueueControlClient(YamcsConnector yconnector) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommandQueueListener(CommandQueueListener cmdQueueListener) |
void |
connected(String url) |
void |
connecting(String url) |
void |
connectionFailed(String url,
YamcsException exception) |
void |
disconnected() |
void |
log(String message) |
void |
onException(Web.WebSocketServerMessage.WebSocketExceptionData e) |
void |
onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data) |
void |
rejectCommand(Commanding.CommandQueueEntry cqe)
Send a message to the server to reject the command
|
void |
releaseCommand(Commanding.CommandQueueEntry cqe,
boolean rebuild)
Send a message to the server to release the command
|
void |
setQueueState(Commanding.CommandQueueInfo cqi,
boolean rebuild)
Send a message to the server to change the queue state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnected, connectionFailed, onInvalidIdentificationonCompletionpublic CommandQueueControlClient(YamcsConnector yconnector)
public void addCommandQueueListener(CommandQueueListener cmdQueueListener)
public void connected(String url)
connected in interface ConnectionListenerpublic void setQueueState(Commanding.CommandQueueInfo cqi, boolean rebuild)
cqi - command queue inforebuild - The rebuild flag indicates that the command shall be rebuild (new timestamp, new pvt checks, etc) if the queue enabling results in commands being sent TODOpublic void releaseCommand(Commanding.CommandQueueEntry cqe, boolean rebuild) throws YamcsApiException, YamcsException
cqe - - reference to the command to be releasedrebuild - - indicate that the binary shall be rebuilt (new timestamp, new pvt checks, etc)YamcsExceptionYamcsApiExceptionpublic void rejectCommand(Commanding.CommandQueueEntry cqe)
cqe - public void connecting(String url)
connecting in interface ConnectionListenerpublic void connectionFailed(String url, YamcsException exception)
connectionFailed in interface ConnectionListenerpublic void disconnected()
disconnected in interface ConnectionListenerdisconnected in interface WebSocketClientCallbackpublic void log(String message)
log in interface ConnectionListenerpublic void onMessage(Web.WebSocketServerMessage.WebSocketSubscriptionData data)
onMessage in interface WebSocketClientCallbackpublic void onException(Web.WebSocketServerMessage.WebSocketExceptionData e)
onException in interface WebSocketResponseHandlerCopyright © 2018 Space Applications Services. All rights reserved.