|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.alarm.Alarm
public class Alarm
A JavaBean implementation to hold information about a network alarm as defined by OpenNMS.
| Field Summary | |
|---|---|
protected Date |
acknowledgeTime
The time this alarm was acknowledged. |
protected String |
acknowledgeUser
The name of the user who acknowledged this alarm. |
protected int |
count
Reduction count for the alarm, cannot be null |
protected String |
description
Free-form textual description of the alarm |
protected String |
dpName
The dpName of the Dist Poller which received the alarm, cannot be null. |
protected Date |
firsteventtime
The first time an event was reduced by this alarm |
protected int |
id
Unique identifier for the alarm, cannot be null |
protected String |
ipAddr
IP Address of node's interface |
protected int |
lastEventID
The last event to be reduced by this alarm |
protected Date |
lasteventtime
The last time an event was reduced by this alarm |
protected String |
logMessage
Formatted display text to control how the alarm will appear in the browser. |
protected String |
mouseOverText
Mouse over text. |
protected Integer |
nodeID
Unique integer identifier for node, can be null |
protected String |
nodeLabel
The human-readable name of the node of this alarm. |
protected String |
operatorInstruction
Operator instruction for event. |
protected String |
parms
The <parms> element for this alarm. |
static int |
PROBLEM_TYPE
|
protected String |
reductionKey
Reduction key for this alarm, cannot be null |
static int |
RESOLUTION_TYPE
|
protected Integer |
serviceID
Unique integer identifier of service/poller package, can be null |
protected String |
serviceName
Human-readable name of the service |
protected OnmsSeverity |
severity
Severity the of alarm. |
protected Date |
suppressedTime
The time this alarm was suppressed. |
protected Date |
suppressedUntil
The time that suppression will end for this alarm. |
protected String |
suppressedUser
The name of the user who suppressed this alarm. |
protected String |
troubleTicket
Trouble ticket id. |
protected TroubleTicketState |
troubleTicketState
State of the trouble ticket. |
protected String |
uei
Universal Event Identifer (UEI) for this alarm, cannot be null |
| Constructor Summary | |
|---|---|
Alarm()
Empty constructor to create an empty Alarm instance. |
|
Alarm(int id,
String uei,
String dpName,
Date lasteventtime,
Date firsteventtime,
int count,
int severityId)
Create an alarm that represents a real network alarm with only the required parameters. |
|
Alarm(int id,
String uei,
String dpName,
Integer nodeID,
String ipAddr,
Integer serviceID,
String reductionKey,
int count,
int severity,
int lastEventID,
Date firsteventtime,
Date lasteventtime,
String description,
String logMessage,
String operatorInstruction,
String troubleTicket,
TroubleTicketState troubleTicketState,
String mouseOverText,
Date suppressedUntil,
String suppressedUser,
Date suppressedTime,
String acknowledgeUser,
Date acknowledgeTime,
String parms)
Create an alarm that represents a real network alarm with all the parameters. |
|
Alarm(int id,
String uei,
String dpName,
Integer nodeID,
String ipAddr,
Integer serviceID,
String reductionKey,
int count,
int severityId,
int lastEventID,
Date firsteventtime,
Date lasteventtime,
String description,
String logMessage,
String operatorInstruction,
String troubleTicket,
TroubleTicketState troubleTicketState,
String mouseOverText,
Date suppressedUntil,
String suppressedUser,
Date suppressedTime,
String acknowledgeUser,
Date acknowledgeTime,
String parms,
String nodeLabel,
String serviceName)
Create an alarm that represents a real network alarm with all the parameters. |
|
| Method Summary | |
|---|---|
Date |
getAcknowledgeTime()
|
String |
getAcknowledgeUser()
|
int |
getCount()
|
String |
getDescription()
|
String |
getDpName()
|
Date |
getFirstEventTime()
|
int |
getId()
|
String |
getIpAddress()
|
int |
getLastEventID()
|
Date |
getLastEventTime()
|
String |
getLogMessage()
|
String |
getMouseOverText()
|
int |
getNodeId()
|
String |
getNodeLabel()
|
String |
getOperatorInstruction()
|
String |
getParms()
|
String |
getReductionKey()
|
int |
getServiceId()
|
String |
getServiceName()
|
OnmsSeverity |
getSeverity()
|
Date |
getSuppressedTime()
|
Date |
getSuppressedUntil()
|
String |
getSuppressedUser()
|
String |
getTroubleTicket()
|
TroubleTicketState |
getTroubleTicketState()
|
String |
getUei()
|
boolean |
isAcknowledged()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PROBLEM_TYPE
public static final int RESOLUTION_TYPE
protected int id
protected String uei
protected String dpName
protected Integer nodeID
protected String ipAddr
protected Integer serviceID
protected String reductionKey
protected int count
protected OnmsSeverity severity
1 = Indeterminate 2 = Cleared (unimplemented at this time) 3 = Warning 4 = Minor 5 = Major 6 = Critical
protected int lastEventID
protected Date firsteventtime
protected Date lasteventtime
protected String description
protected String logMessage
protected String operatorInstruction
protected String troubleTicket
protected TroubleTicketState troubleTicketState
protected String mouseOverText
protected Date suppressedUntil
protected String suppressedUser
protected Date suppressedTime
protected String acknowledgeUser
protected Date acknowledgeTime
protected String parms
protected String serviceName
protected String nodeLabel
| Constructor Detail |
|---|
public Alarm()
Alarm instance. All
fields will hold the default values.
public Alarm(int id,
String uei,
String dpName,
Date lasteventtime,
Date firsteventtime,
int count,
int severityId)
public Alarm(int id,
String uei,
String dpName,
Integer nodeID,
String ipAddr,
Integer serviceID,
String reductionKey,
int count,
int severity,
int lastEventID,
Date firsteventtime,
Date lasteventtime,
String description,
String logMessage,
String operatorInstruction,
String troubleTicket,
TroubleTicketState troubleTicketState,
String mouseOverText,
Date suppressedUntil,
String suppressedUser,
Date suppressedTime,
String acknowledgeUser,
Date acknowledgeTime,
String parms)
public Alarm(int id,
String uei,
String dpName,
Integer nodeID,
String ipAddr,
Integer serviceID,
String reductionKey,
int count,
int severityId,
int lastEventID,
Date firsteventtime,
Date lasteventtime,
String description,
String logMessage,
String operatorInstruction,
String troubleTicket,
TroubleTicketState troubleTicketState,
String mouseOverText,
Date suppressedUntil,
String suppressedUser,
Date suppressedTime,
String acknowledgeUser,
Date acknowledgeTime,
String parms,
String nodeLabel,
String serviceName)
| Method Detail |
|---|
public int getId()
public String getUei()
public String getDpName()
public Date getLastEventTime()
public Date getFirstEventTime()
public int getCount()
public OnmsSeverity getSeverity()
public int getNodeId()
public String getIpAddress()
public int getServiceId()
public String getReductionKey()
public int getLastEventID()
public String getDescription()
public String getLogMessage()
public String getOperatorInstruction()
public String getTroubleTicket()
public TroubleTicketState getTroubleTicketState()
public String getMouseOverText()
public Date getSuppressedUntil()
public String getSuppressedUser()
public Date getSuppressedTime()
public String getAcknowledgeUser()
public Date getAcknowledgeTime()
public boolean isAcknowledged()
public String getParms()
public String getNodeLabel()
public String getServiceName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||