public abstract class BedingterAlarmHandler extends BOAssociatedAlarmHandler
Alarm instances that need to react to specific events, namely Hinweis and
Wiedervorlage.
It listens to DBManBOChangeEvents (ok, the AlarmModule does this actually) that occur for objects
of classes that the existing (and active) alarm instances are monitoring.
If such an event occurs the handler checks if, in the case of HinweisHandler, some Hinweis gets
triggered by that event or, in the case of WiedervorlageHandler, some Wiedervorlage gets postponed by
it.
The event handling is done in its own thread by AlarmModule.EventHandlingRunnable#handleEvent() which in turn
calls handleBTFully() here.
Should an error occur during handling of the event the possible effects of that event are "lost" and the event will
not be handled again (ok, except in one very special case, see comment in handleEvent()).
The last error that occurred when checking or triggering/postponing an alarm is always stored on the alarm instance
for debugging and can be viewed in the GUI.
If some alarm causes too many (currently always 25 errors/h, see Alarm#storeLastError()) errors in a given
timespan it automatically gets deactivated and must be manually activated again, hopefully after the cause of the
error(s) has been resolved.| Modifier and Type | Method and Description |
|---|---|
void |
addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest)
!
|
java.util.Date |
getStartingDateForChecks() |
retriggerdeactivateAlarmDueToErrors, deactivateAlarmDueToErrors, getAlarmClass, getAlarme, getAlarmeIterator, getAlarmModule, getBTsHandler, getKernelDatabaseAccessor, getKernelDatabaseSaver, getLogger, getSchema, getUser, handleBT, isHandleSyncEvents, markTXAsToBeIgnored, setAlarme, setAlarmModule, setBTsHandler, setHandleSyncEventspublic java.util.Date getStartingDateForChecks()
getStartingDateForChecks in interface BTHandlerIgetStartingDateForChecks in class AlarmHandlerpublic void addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest)
addClassesOfInterest in interface BTHandlerIaddClassesOfInterest in class AlarmHandlerCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.