Package org.ow2.clif.supervisor.lib
Class AlarmObservation
- java.lang.Object
-
- org.ow2.clif.supervisor.lib.AlarmObservation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AlarmObservation>
public class AlarmObservation extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<AlarmObservation>
Class for alarm objects dedicated to the Observer interface, encapsulating an AlarmEvent instance with the originating blade id.- Author:
- Bruno Dillenseger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMPARE_IDstatic intCOMPARE_MESSAGEstatic intCOMPARE_SEVERITYstatic intCOMPARE_TIME
-
Constructor Summary
Constructors Constructor Description AlarmObservation(java.lang.String bladeId, AlarmEvent alarm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompareBy(int comparator)intcompareTo(AlarmObservation o)AlarmEventgetAlarm()java.lang.StringgetBladeId()longgetDate()java.lang.StringgetMessage()intgetSeverity()java.lang.StringtoString()
-
-
-
Field Detail
-
COMPARE_TIME
public static final int COMPARE_TIME
- See Also:
- Constant Field Values
-
COMPARE_ID
public static final int COMPARE_ID
- See Also:
- Constant Field Values
-
COMPARE_SEVERITY
public static final int COMPARE_SEVERITY
- See Also:
- Constant Field Values
-
COMPARE_MESSAGE
public static final int COMPARE_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlarmObservation
public AlarmObservation(java.lang.String bladeId, AlarmEvent alarm)
-
-
Method Detail
-
getBladeId
public java.lang.String getBladeId()
-
getAlarm
public AlarmEvent getAlarm()
-
getDate
public long getDate()
-
getSeverity
public int getSeverity()
-
getMessage
public java.lang.String getMessage()
-
compareBy
public void compareBy(int comparator)
-
compareTo
public int compareTo(AlarmObservation o)
- Specified by:
compareToin interfacejava.lang.Comparable<AlarmObservation>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-