public abstract class AbstractEventProducer extends Object implements EventProducer
| Constructor and Description |
|---|
AbstractEventProducer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushEventBuffer(boolean startNewSequence) |
abstract long |
getMissionTime() |
Yamcs.Event.Builder |
newEvent()
Creates a default Event Builder with these fields pre-filled: source,
seqNo, receptionTime, generationTime
|
void |
sendCritical(String type,
String msg) |
void |
sendDistress(String type,
String msg) |
void |
sendError(String type,
String msg) |
void |
sendInfo(String type,
String msg) |
void |
sendSevere(String type,
String msg) |
void |
sendWarning(String type,
String msg) |
void |
sendWatch(String type,
String msg) |
void |
setRepeatedEventReduction(boolean repeatedEventReduction,
long repeatedEventTimeoutMillisec)
By default event repetitions are checked for possible reduction.
|
void |
setSeqNo(int sn) |
void |
setSource(String source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, sendEventpublic void setSource(String source)
setSource in interface EventProducerpublic void setSeqNo(int sn)
setSeqNo in interface EventProducerpublic void sendError(String type, String msg)
sendError in interface EventProducerpublic void sendWarning(String type, String msg)
sendWarning in interface EventProducerpublic void sendInfo(String type, String msg)
sendInfo in interface EventProducerpublic void sendWatch(String type, String msg)
sendWatch in interface EventProducerpublic void sendDistress(String type, String msg)
sendDistress in interface EventProducerpublic void sendCritical(String type, String msg)
sendCritical in interface EventProducerpublic void sendSevere(String type, String msg)
sendSevere in interface EventProducerpublic void setRepeatedEventReduction(boolean repeatedEventReduction,
long repeatedEventTimeoutMillisec)
setRepeatedEventReduction in interface EventProducerrepeatedEventReduction - if true - enable the reduction of events.repeatedEventTimeoutMillisec - - how long to keep quiet in case of equal events being sentprotected void flushEventBuffer(boolean startNewSequence)
public Yamcs.Event.Builder newEvent()
EventProducernewEvent in interface EventProducerpublic abstract long getMissionTime()
Copyright © 2018 Space Applications Services. All rights reserved.