Package org.yamcs.events
Class MockupEventProducer
java.lang.Object
org.yamcs.events.AbstractEventProducer
org.yamcs.events.MockupEventProducer
- All Implemented Interfaces:
EventProducer
saves events into a queue (to be used by unit tests)
-
Field Summary
Fields inherited from class org.yamcs.events.AbstractEventProducer
logAllMessages
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the connection to the server; the producer is unusable after this is calledlong
void
Methods inherited from class org.yamcs.events.AbstractEventProducer
flushEventBuffer, newEvent, sendCritical, sendDistress, sendEvent, sendInfo, sendSevere, sendWarning, sendWatch, setRepeatedEventReduction, setSeqNo, setSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.yamcs.events.EventProducer
sendCritical, sendDistress, sendError, sendInfo, sendSevere, sendWarning, sendWatch
-
Constructor Details
-
MockupEventProducer
-
-
Method Details
-
sendEvent
-
close
public void close()Description copied from interface:EventProducer
Closes the connection to the server; the producer is unusable after this is called -
getMissionTime
public long getMissionTime()- Specified by:
getMissionTime
in classAbstractEventProducer
-