Package org.yamcs.alarms
Class EventAlarmServer
java.lang.Object
com.google.common.util.concurrent.AbstractService
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
Handles alarms for events. These are generated whenever an event with a severity level different than INFO is
received.
The events having the same (source, type) are considered to be part of the same alarm.
In the future we could implement some additional options like configuring events that never throw alarms or adding the possibility to configure the minViolations for each event id (= event source+ type).
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Constructor Summary
ConstructorsConstructorDescriptionEventAlarmServer
(String yamcsInstance, ProcessorConfig procConfig, ScheduledThreadPoolExecutor timer) -
Method Summary
Methods inherited from class org.yamcs.alarms.AlarmServer
acknowledge, addAlarmListener, clear, clearAll, getActiveAlarm, getActiveAlarm, getActiveAlarms, moreSevere, moreSevere, moreSevere, removeAlarmListener, reset, shelve, unshelve, update, update
Methods inherited from class com.google.common.util.concurrent.AbstractService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
-
Constructor Details
-
EventAlarmServer
public EventAlarmServer(String yamcsInstance, ProcessorConfig procConfig, ScheduledThreadPoolExecutor timer)
-
-
Method Details
-
doStart
public void doStart()- Overrides:
doStart
in classAlarmServer<EventId,
Db.Event>
-
doStop
public void doStop()- Overrides:
doStop
in classAlarmServer<EventId,
Db.Event>
-