public abstract class AlarmHandler extends java.lang.Object implements BTHandlerI
| Modifier and Type | Method and Description |
|---|---|
void |
addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest)
Adds to the given
Set all classes that this handler must monitor for changes. |
void |
deactivateAlarmDueToErrors(Alarm alarm,
java.lang.Exception ex,
java.lang.String msg)
Sets the given alarm to "deactivated" and stores the given error info with it.
|
void |
deactivateAlarmDueToErrors(Alarm alarm,
java.lang.Exception ex,
java.lang.String msg,
org.apache.log4j.Logger logger) |
abstract java.lang.Class |
getAlarmClass()
Determines the specific subclass of
Alarm for which this
AlarmHandler is responsible. |
java.util.Map<java.lang.Long,Alarm> |
getAlarme()
Basically a simple data holder for the plethora of values that need to be passed around in the course of an alarm
triggering.
|
java.util.Iterator |
getAlarmeIterator() |
AlarmModule |
getAlarmModule() |
BTsHandler |
getBTsHandler() |
KernelDatabaseAccessorI |
getKernelDatabaseAccessor() |
KernelDatabaseSaverI |
getKernelDatabaseSaver() |
org.apache.log4j.Logger |
getLogger() |
SchemaI |
getSchema() |
java.util.Date |
getStartingDateForChecks() |
Benutzer |
getUser()
Returns the system user that this
AlarmHandler is supposed to use/represent. |
boolean |
handleBT(BT bt) |
boolean |
isHandleSyncEvents() |
static void |
markTXAsToBeIgnored(Transaction tx)
Marks the given transaction (and via this the
BT created from it) as to be ignored by the alarm system to avoid otherwise possible endless loops. |
abstract void |
retrigger(AlarmAusloesung aa,
ErrorCollector ec)
Performs the triggering actions defined by the given
AlarmAusloesung again, as if the respective
Alarm had just been triggered in the regular way. |
void |
setAlarme(java.util.Map<java.lang.Long,Alarm> $47) |
void |
setAlarmModule(AlarmModule $49) |
void |
setBTsHandler(BTsHandler $50) |
void |
setHandleSyncEvents(boolean $48) |
public org.apache.log4j.Logger getLogger()
getLogger in interface BTHandlerIpublic KernelDatabaseAccessorI getKernelDatabaseAccessor()
public KernelDatabaseSaverI getKernelDatabaseSaver()
public java.util.Date getStartingDateForChecks()
getStartingDateForChecks in interface BTHandlerIpublic abstract java.lang.Class getAlarmClass()
Alarm for which this
AlarmHandler is responsible.Alarm that this handler is
responsible for.public void deactivateAlarmDueToErrors(Alarm alarm, java.lang.Exception ex, java.lang.String msg)
alarm - the Alarm to deactivateex - the Exception that occurredmsg - the message to set as "last error" on the alarmlogger - FIXME if given logs messagepublic void deactivateAlarmDueToErrors(Alarm alarm, java.lang.Exception ex, java.lang.String msg, org.apache.log4j.Logger logger)
public static void markTXAsToBeIgnored(Transaction tx)
BT created from it) as to be ignored by the alarm system to avoid otherwise possible endless loops.public java.util.Iterator getAlarmeIterator()
public boolean handleBT(BT bt) throws java.lang.InterruptedException
handleBT in interface BTHandlerIjava.lang.InterruptedExceptionpublic void addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest)
Set all classes that this handler must monitor for changes.
Such classes include the Alarm subclass this handler is responsible for, other associated classes that are
relevant for the functionality of those Alarms and in some cases BO classes this handler monitors
as part of the alarm subtypes actual functionality.addClassesOfInterest in interface BTHandlerIset - the Set the relevant classes should be added topublic abstract void retrigger(AlarmAusloesung aa, ErrorCollector ec)
AlarmAusloesung again, as if the respective
Alarm had just been triggered in the regular way.
Intended for manual maintenance/repair for cases where some problem occurred in the original triggering.public Benutzer getUser()
AlarmHandler is supposed to use/represent.public SchemaI getSchema()
public java.util.Map<java.lang.Long,Alarm> getAlarme()
public void setAlarme(java.util.Map<java.lang.Long,Alarm> $47)
public boolean isHandleSyncEvents()
public void setHandleSyncEvents(boolean $48)
public AlarmModule getAlarmModule()
public void setAlarmModule(AlarmModule $49)
public BTsHandler getBTsHandler()
public void setBTsHandler(BTsHandler $50)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.