public class YamcsEventReceiver extends Object implements org.yamcs.api.ws.ConnectionListener, EventReceiver, org.yamcs.api.ws.WebSocketClientCallback, org.yamcs.api.ws.WebSocketResponseHandler
| Constructor and Description |
|---|
YamcsEventReceiver(org.yamcs.api.YamcsConnector yconnector) |
| Modifier and Type | Method and Description |
|---|---|
void |
connected(String url) |
void |
connecting(String url) |
void |
connectionFailed(String url,
YamcsException exception) |
void |
disconnected() |
void |
log(String message) |
void |
onException(org.yamcs.protobuf.Web.WebSocketServerMessage.WebSocketExceptionData e) |
void |
onMessage(org.yamcs.protobuf.Web.WebSocketServerMessage.WebSocketSubscriptionData data) |
void |
retrievePastEvents() |
void |
setEventViewer(EventViewer ev) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnected, connecting, connectionFailedonCompletionpublic YamcsEventReceiver(org.yamcs.api.YamcsConnector yconnector)
public void setEventViewer(EventViewer ev)
setEventViewer in interface EventReceiverpublic void onMessage(org.yamcs.protobuf.Web.WebSocketServerMessage.WebSocketSubscriptionData data)
onMessage in interface org.yamcs.api.ws.WebSocketClientCallbackpublic void connected(String url)
connected in interface org.yamcs.api.ws.ConnectionListenerpublic void retrievePastEvents()
retrievePastEvents in interface EventReceiverpublic void connecting(String url)
connecting in interface org.yamcs.api.ws.ConnectionListenerpublic void connectionFailed(String url, YamcsException exception)
connectionFailed in interface org.yamcs.api.ws.ConnectionListenerpublic void disconnected()
disconnected in interface org.yamcs.api.ws.ConnectionListenerdisconnected in interface org.yamcs.api.ws.WebSocketClientCallbackpublic void log(String message)
log in interface org.yamcs.api.ws.ConnectionListenerpublic void onException(org.yamcs.protobuf.Web.WebSocketServerMessage.WebSocketExceptionData e)
onException in interface org.yamcs.api.ws.WebSocketResponseHandlerCopyright © 2018 Space Applications Services. All rights reserved.