public class ArtemisEventProducer extends 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.
| Constructor and Description |
|---|
ArtemisEventProducer(YamcsConnectionProperties ycd) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection to the server; the producer is unusable after this is called
|
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.
|
void |
disconnected()
Called when the connection to the yamcs server is closed.
|
long |
getMissionTime() |
void |
log(String message)
Used to log messages.
|
void |
sendEvent(Yamcs.Event event) |
String |
toString() |
flushEventBuffer, newEvent, sendError, sendInfo, sendWarning, setRepeatedEventReduction, setSeqNo, setSourcepublic ArtemisEventProducer(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()
EventProducerclose in interface EventProducerpublic void sendEvent(Yamcs.Event event)
sendEvent in interface EventProducerpublic long getMissionTime()
getMissionTime in class AbstractEventProducerCopyright © 2017 Space Applications Services. All rights reserved.