public abstract class AbstractEventProducer extends Object implements EventProducer
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
logAllMessages |
| 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 msg)
send an critical event with the type automatically filled in as the caller class name
|
void |
sendCritical(String type,
String msg) |
void |
sendDistress(String msg)
send an distress event with the type automatically filled in as the caller class name
|
void |
sendDistress(String type,
String msg) |
void |
sendError(String type,
String msg) |
void |
sendInfo(String msg)
send an info event with the type automatically filled in as the caller class name
|
void |
sendInfo(String type,
String msg) |
void |
sendSevere(String msg)
send an severe event with the type automatically filled in as the caller class name
|
void |
sendSevere(String type,
String msg) |
void |
sendWarning(String msg)
send an warning event with the type automatically filled in as the caller class name
|
void |
sendWarning(String type,
String msg)
Send a warning event with the given type
|
void |
sendWatch(String msg)
send an watch event with the type automatically filled in as the caller class name
|
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)
EventProducersendWarning 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 sendInfo(String msg)
EventProducersendInfo in interface EventProducermsg - - event messagepublic void sendWatch(String msg)
EventProducersendWatch in interface EventProducermsg - - event messagepublic void sendWarning(String msg)
EventProducersendWarning in interface EventProducermsg - - event messagepublic void sendCritical(String msg)
EventProducersendCritical in interface EventProducermsg - - event messagepublic void sendDistress(String msg)
EventProducersendDistress in interface EventProducermsg - - event messagepublic void sendSevere(String msg)
EventProducersendSevere in interface EventProducermsg - - event messagepublic 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 © 2020 Space Applications Services. All rights reserved.