Classes | Public Member Functions

alma.acs.alarmsystem.source.AlarmQueue Class Reference

Inherits java::util::concurrent::ConcurrentHashMap< String, AlarmQueue.AlarmToQueue >.

List of all members.

Classes

class  AlarmToQueue

Public Member Functions

void add (String faultFamily, String faultMember, int faultCode, Properties properties, boolean active)

Detailed Description

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.

Author:
acaproni

Member Function Documentation

void alma.acs.alarmsystem.source.AlarmQueue.add ( String  faultFamily,
String  faultMember,
int  faultCode,
Properties  properties,
boolean  active 
)
Parameters:
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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties