Inherits java::util::concurrent::ConcurrentHashMap< String, AlarmQueue.AlarmToQueue >.
Classes | |
| class | AlarmToQueue |
Public Member Functions | |
| void | add (String faultFamily, String faultMember, int faultCode, Properties properties, boolean active) |
A queue of alarms.
The alarms are stored in a map because we want to storein the vector are ordered following their arrival time i.e. the oldest item is in the head.
The class is thread safe.
For the implementation a Set would have been enough but the ConcurrentHashMap is thread safe and there should not be big perfromance difference between this and a concrete Set.
| void alma.acs.alarmsystem.source.AlarmQueue.add | ( | String | faultFamily, | |
| String | faultMember, | |||
| int | faultCode, | |||
| Properties | properties, | |||
| boolean | active | |||
| ) |
| faultFamily | The fault family | |
| faultMember | The fault member | |
| faultCode | The fault code | |
| properties | The user properties | |
| active | The state active/terminate |
Referenced by alma.acs.alarmsystem.source.AlarmSourceImpl.clearAlarm(), and alma.acs.alarmsystem.source.AlarmSourceImpl.raiseAlarm().
1.7.0