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.
-
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
-
Field Summary
Fields inherited from class org.yamcs.alarms.AlarmServer
activeAlarms
-
Constructor Summary
ConstructorDescriptionEventAlarmServer
(String yamcsInstance, ProcessorConfig procConfig, ScheduledThreadPoolExecutor timer) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addActiveAlarmFromTuple
(Mdb mdb, Tuple tuple) protected String
void
doStart()
void
doStop()
protected String
protected EventId
getSubject
(Db.Event ev) 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>
-
alarmTableName
- Specified by:
alarmTableName
in classAlarmServer<EventId,
Db.Event>
-
getSubject
- Specified by:
getSubject
in classAlarmServer<EventId,
Db.Event>
-
addActiveAlarmFromTuple
- Specified by:
addActiveAlarmFromTuple
in classAlarmServer<EventId,
Db.Event>
-
getColNameLastEvent
- Specified by:
getColNameLastEvent
in classAlarmServer<EventId,
Db.Event>
-