Public Member Functions | |
ACSAlarmDAOImpl (Logger log) | |
List< FaultFamily > | loadAlarms () throws Exception |
Alarm | findAlarm (String alarmId) |
Alarm | getAlarm (String alarmId) |
String[] | findAlarmIdsByPriority (Integer priority) |
String | findLaserSurveillanceAlarmId () |
void | deleteAlarm (Alarm alarm) |
void | saveMemberAlarms (String member) |
void | saveAlarm (Alarm alarm) |
void | updateAlarm (Alarm alarm) |
void | updateStatus (Status status) |
Collection | search (String select_sql) |
Collection | archiveSearch (String select_sql) |
Building | findBuilding (String building) |
void | setConfAccessor (ConfigurationAccessor conf) |
void | setSurveillanceAlarmId (String surveillanceAlarmId) |
void | setResponsiblePersonDAO (ResponsiblePersonDAO responsiblePersonDAO) |
String[] | getAllAlarmIDs () |
HashMap< String, Source > | getSources () |
Package Functions | |
Building | loadBuilding (String buildingID) |
Static Package Functions | |
AlarmRefMatcher | toMatcher (AlarmDefinition def) |
String | memberFromAlarmID (String alarmId) |
String | encodeToXML (Alarm alarm) |
String | encodeToXML (StringBuffer result, Alarm alarm) |
Package Attributes | |
Logger | logger |
ConfigurationAccessor | conf |
String | surveillanceAlarmId |
ResponsiblePersonDAO | responsiblePersonDAO |
Static Package Attributes | |
final HardcodedBuilding | theBuilding = HardcodedBuilding.instance |
final HardcodedLocation | theLocation = HardcodedLocation.instance |
Private Member Functions | |
void | generateAlarmsMap (Vector< FaultFamily > families) |
void | loadReductionRules () |
void | saveAllIDs () |
Private Attributes | |
HashMap< String, Alarm > | alarmDefs = new HashMap<StringAlarm>() |
HashMap< String, Source > | srcDefs = new HashMap<String Source>() |
Static Private Attributes | |
final String | ALARM_DEFINITION_PATH = "/Alarms/AlarmDefinitions" |
final String | REDUCTION_DEFINITION_PATH = "/Alarms/Administrative/ReductionDefinitions" |
final String | XML_DOCUMENT_TYPE = "AlarmDefinitions" |
final String | DEFAULT_FM = "*" |
CDB contains one file per each possible FF and one entry per each FC and FM. It is possible to specify a default member to be used when the administrator did not specify the member.
The alarms are stored in an HashMap having the triplet as key. The default member has a triplet with a "*" replacing its name.
The sources are defined together with an alarm definition so they are read here and requested by the ACSSourceDAOImpl at startup (instead of being read again from CDB).
The initialization of the alarms is not completely done by loadAlarms because not all the info are available at this time. In fact the categories are assigned to alarms by ACSCategoryDAOImpl
|
Constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Generate the alarms from the definition of the fault families. The alarms will be added into the HashMap with their triplet as key. The default item has FM="*". The sources read from the families are also added to the HashMap of the sources
|
|
Get an alarm from the cache. Get an alarm from the cache. If the alarm with the given triplet is not in the cache then it looks for a default alarm before returning null. If a default alarm is found, then a new alarm is created by cloning the default alarm. The triplet of this new alarm is set to be equal to the passed alarm ID.
|
|
|
|
Getter method
|
|
Load alarms from CDB. Read the alarms by the alarm definitions file of the CDB. The initialization of the alarms is not complete at this stage. In fact the categories are assigned to alarms when reading the categories from the CDB by ACSCategoryDAOImpl
|
|
|
|
Load the reduction rules from the CDB. Read the reduction rules from the CDB and set up the alarms accordingly |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The alarms read out the CDB The CDB contains fault families. The alarms are generated from the fault families. |
|
|
|
|
|
|
|
|
|
|
|
Source are defined together with alarms This HashMap contains all the sources read from CDB |
|
|
|
|
|
|
|
|