public class CDBSender extends BaseAlarmsSender
CDBSender reads alarms reusing the classes in laser-core.
As the reading can be quite slow when there are a lot of alarms defined in the
TM/CDB, the reading is done by a dedicated thread and no other operation is
allowed before it terminates.
ACSAlarmDAOImpl is quite slow because it reads all the alarms definitions
but also the reduction rules then matches them with the alarms and so on.
This class does not need to know reduction rules and so on but has to wait until
the DAO finishes building its internal data structures.
If a FaultFamily supports default fault member, then the triplet is built with a '*' as FaultMember name.
BaseAlarmsSender.AlarmRead, BaseAlarmsSender.AlarmSenderThreadFactoryalarms, alarmsSender, alarmsSenderThread, contSvcs, defaultFMNamePrefix, listeners, maxDefaultFMSuffix, panel, threadFactory| Constructor and Description |
|---|
CDBSender(SenderPanel parent,
ContainerServices contSvcs,
ParallelAlarmSender sender)
Constructor.
|
addSlowTaskListener, close, dumpAlarms, notifyAlarmsRead, notifyStartTask, notifyStopTask, notifyTaskProgress, removeSlowTaskListener, sendAlarms, size, startSendingRandomly, stopThreadpublic CDBSender(SenderPanel parent, ContainerServices contSvcs, ParallelAlarmSender sender)
The constructor starts the thread that reads alarms from TM/CDB: as this task can be surprisingly slow, the thread is started as soon as possible in an attempt to hide this slowness to the user.
parent - the parent component of the dialogcontSvcs - The ContainerServicessender - The object to send alarms