Public Member Functions | |
AlarmView (String id, String pri, String timestamp, String desc, String cause, String act, String hostName) | |
Override boolean | equals (Object obj) |
Override String | toString () |
String | getTimestamp () |
Public Attributes | |
String | alarmID = null |
Integer | priority = null |
Date | sourceTimestamp = null |
String | description = null |
String | cause = null |
Boolean | active = null |
String | hostName |
Private Attributes | |
final String | TIME_FORMAT = "yyyy'-'MM'-'dd'T'HH':'mm':'ss" |
final SimpleDateFormat | dateFormat = new SimpleDateFormat(TIME_FORMAT) |
|
Constructor
|
|
Override the Object.equals because we know that 2 alarms are equals if they have the same ID This method is used to check if a given alarm is already in the vector of the alarms in the table. The same alarm is shown only once but its color must change depending of its stata (active/inactive)
|
|
Return the formatted timestamp
|
|
Dump the alarm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|