| java.lang.Object org.objectweb.alarm.beans.Profil
Profil | public class Profil (Code) | | Helper class Profil Profils are managed by AlarmManager and used by View
session beans We do not use an Entity because we need neither persistence nor
remote accesses. We cannot use a Session bean because it's accessed from
several clients, and from the AlarmManager.
|
Profil | public Profil(String device, String sev, AlarmRecordHome arh)(Code) | | constructor
Parameters: device - the device name Parameters: sev - the severity level Parameters: arh - the home of the eban |
getAlarms | public synchronized Collection getAlarms(boolean all)(Code) | | get Alarms for this Profil.
Parameters: all - true if get all alarms, false if get only new alarms Alarms for this Profil. |
getCurrentLevel | public synchronized int getCurrentLevel()(Code) | | Gets current Alarm level
current Alarm level |
getSeverity | public String getSeverity()(Code) | | the severity watched |
interestedBy | public boolean interestedBy(AlarmData ad)(Code) | | Parameters: ad - alarm data object true if this Profil is interested by this AlarmRecord. |
noticeAlarm | public synchronized void noticeAlarm(AlarmRecord arec)(Code) | | add an Alarm Record to this Profil.
Parameters: arec - the record |
|
|