Package org.yamcs.alarms
Class EventAlarmServer
- java.lang.Object
-
- com.google.common.util.concurrent.AbstractService
-
- org.yamcs.alarms.AlarmServer<EventId,Db.Event>
-
- org.yamcs.alarms.EventAlarmServer
-
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
public class EventAlarmServer extends AlarmServer<EventId,Db.Event>
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).
-
-
Constructor Summary
Constructors Constructor Description EventAlarmServer(String yamcsInstance, ProcessorConfig procConfig, ScheduledThreadPoolExecutor timer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoStart()voiddoStop()-
Methods inherited from class org.yamcs.alarms.AlarmServer
acknowledge, addAlarmListener, clear, clearAll, getActiveAlarm, getActiveAlarm, getActiveAlarms, moreSevere, moreSevere, moreSevere, removeAlarmListener, reset, shelve, unshelve, update, update
-
-
-
-
Constructor Detail
-
EventAlarmServer
public EventAlarmServer(String yamcsInstance, ProcessorConfig procConfig, ScheduledThreadPoolExecutor timer)
-
-
Method Detail
-
doStart
public void doStart()
- Overrides:
doStartin classAlarmServer<EventId,Db.Event>
-
doStop
public void doStop()
- Overrides:
doStopin classAlarmServer<EventId,Db.Event>
-
-