Package org.yamcs.alarms
Class AbstractAlarmMirrorServer<S,T>
java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.alarms.AbstractAlarmServer<S,T>
org.yamcs.alarms.AbstractAlarmMirrorServer<S,T>
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
-
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.AbstractAlarmServer
activeAlarms, alarmListeners, log, timeService, yamcsInstance -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ActiveAlarm<T>createNewAlarm(S subject, Tuple tuple) protected voiddoStart()protected voiddoStop()protected abstract Stringprotected abstract Stringprotected voidprocessSeverityIncrease(S subject, ActiveAlarm<T> activeAlarm, Tuple tuple) protected voidprocessValueUpdate(S subject, ActiveAlarm<T> activeAlarm, Tuple tuple) Methods inherited from class org.yamcs.alarms.AbstractAlarmServer
addActiveAlarmFromTuple, addAlarmListener, alarmTableName, getActiveAlarms, getLock, getSubject, loadAlarmsFromDb, removeAlarmListenerMethods 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
-
Method Details
-
processValueUpdate
-
processSeverityIncrease
-
doStart
protected void doStart()- Specified by:
doStartin classcom.google.common.util.concurrent.AbstractService
-
doStop
protected void doStop()- Specified by:
doStopin classcom.google.common.util.concurrent.AbstractService
-
createNewAlarm
-
getColNameLastEvent
- Specified by:
getColNameLastEventin classAbstractAlarmServer<S,T>
-
getColNameSeverityIncreased
- Specified by:
getColNameSeverityIncreasedin classAbstractAlarmServer<S,T>
-