Package org.opennms.netmgt.model.alarm
Class AlarmSummary
- java.lang.Object
-
- org.opennms.netmgt.model.alarm.AlarmSummary
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlarmSummary>
public class AlarmSummary extends java.lang.Object implements java.lang.Comparable<AlarmSummary>, java.io.Serializable
A data structure holding information on all alarms on a single node.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlarmSummary()
AlarmSummary(java.lang.Integer nodeId, java.lang.String nodeLabel, java.util.Date minLastEventDate, OnmsSeverity maxSeverity, java.lang.Long alarmCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AlarmSummary that)
long
getAlarmCount()
java.lang.String
getFuzzyTimeDown()
OnmsSeverity
getMaxSeverity()
java.util.Date
getMinLastEventDate()
int
getNodeId()
java.lang.String
getNodeLabel()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AlarmSummary
public AlarmSummary()
-
AlarmSummary
public AlarmSummary(java.lang.Integer nodeId, java.lang.String nodeLabel, java.util.Date minLastEventDate, OnmsSeverity maxSeverity, java.lang.Long alarmCount)
-
-
Method Detail
-
getNodeId
public int getNodeId()
-
getNodeLabel
public java.lang.String getNodeLabel()
-
getMinLastEventDate
public java.util.Date getMinLastEventDate()
-
getAlarmCount
public long getAlarmCount()
-
getMaxSeverity
public OnmsSeverity getMaxSeverity()
-
getFuzzyTimeDown
public java.lang.String getFuzzyTimeDown()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(AlarmSummary that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<AlarmSummary>
-
-