public class ArtemisEventProducer extends org.yamcs.api.AbstractEventProducer implements ConnectionListener
By default, repeated message are detected and reduced, resulting in pseudo events with a message like 'last event repeated X times'. This behaviour can be turned off.
logAllMessages| Constructor and Description |
|---|
ArtemisEventProducer(org.yamcs.api.YamcsConnectionProperties ycd) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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. the maximum number of
retry attempts has exceeded.
|
void |
disconnected()
Called when the connection to the yamcs server is closed.
|
long |
getMissionTime() |
void |
log(String message)
Used to log messages.
|
void |
sendEvent(org.yamcs.protobuf.Yamcs.Event event) |
String |
toString() |
flushEventBuffer, newEvent, sendCritical, sendCritical, sendDistress, sendDistress, sendError, sendInfo, sendInfo, sendSevere, sendSevere, sendWarning, sendWarning, sendWatch, sendWatch, setRepeatedEventReduction, setSeqNo, setSourcepublic ArtemisEventProducer(org.yamcs.api.YamcsConnectionProperties ycd)
public void connecting(String url)
ConnectionListenerconnecting in interface ConnectionListenerurl - the url of the yamcs serverpublic 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 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 ConnectionListenerpublic void log(String message)
ConnectionListenerlog in interface ConnectionListenermessage - the messages to be loggedpublic void close()
close in interface org.yamcs.api.EventProducerpublic void sendEvent(org.yamcs.protobuf.Yamcs.Event event)
sendEvent in interface org.yamcs.api.EventProducerpublic long getMissionTime()
getMissionTime in class org.yamcs.api.AbstractEventProducerCopyright © 2019 Space Applications Services. All rights reserved.