Package org.opennms.web.outage
Class Outage
- java.lang.Object
-
- org.opennms.web.outage.Outage
-
public class Outage extends Object
A JavaBean for holding information about a single outage.- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- Lawrence Karnowski
-
-
Field Summary
Fields Modifier and Type Field Description protected String
building
protected String
eventLocation
protected String
hostname
protected String
ipAddress
protected String
location
protected Integer
lostServiceEventId
protected String
lostServiceNotificationAcknowledgedBy
protected Integer
lostServiceNotificationId
protected Date
lostServiceTime
protected int
nodeId
protected String
nodeLabel
protected int
outageId
protected String
perspectiveLocation
protected Integer
regainedServiceEventId
protected Date
regainedServiceTime
protected int
serviceId
protected String
serviceName
protected String
suppressedBy
protected Date
suppressTime
-
Constructor Summary
Constructors Modifier Constructor Description protected
Outage()
Constructor for Outage.protected
Outage(int outageId, int nodeId, String nodeLabel, String ipAddress, String hostname, int serviceId, String serviceName, Date lostServiceTime, Date regainedServiceTime, Integer lostServiceEventId, Integer regainedServiceEventId, Integer lostServiceNotificationId, String lostServiceNotificationAcknowledgedBy, Date suppressTime, String suppressedBy)
Constructor for Outage.protected
Outage(int outageId, int nodeId, String nodeLabel, String ipAddress, String hostname, int serviceId, String serviceName, Date lostServiceTime, Date regainedServiceTime, Integer lostServiceEventId, Integer regainedServiceEventId, Integer lostServiceNotificationId, String lostServiceNotificationAcknowledgedBy, Date suppressTime, String suppressedBy, String building)
Constructor for Outage.
-
Method Summary
-
-
-
Field Detail
-
outageId
protected int outageId
-
nodeId
protected int nodeId
-
ipAddress
protected String ipAddress
-
hostname
protected String hostname
-
nodeLabel
protected String nodeLabel
-
serviceId
protected int serviceId
-
serviceName
protected String serviceName
-
lostServiceTime
protected Date lostServiceTime
-
regainedServiceTime
protected Date regainedServiceTime
-
lostServiceEventId
protected Integer lostServiceEventId
-
regainedServiceEventId
protected Integer regainedServiceEventId
-
lostServiceNotificationId
protected Integer lostServiceNotificationId
-
lostServiceNotificationAcknowledgedBy
protected String lostServiceNotificationAcknowledgedBy
-
suppressTime
protected Date suppressTime
-
suppressedBy
protected String suppressedBy
-
building
protected String building
-
location
protected String location
-
eventLocation
protected String eventLocation
-
perspectiveLocation
protected String perspectiveLocation
-
-
Constructor Detail
-
Outage
protected Outage()
Constructor for Outage.
-
Outage
protected Outage(int outageId, int nodeId, String nodeLabel, String ipAddress, String hostname, int serviceId, String serviceName, Date lostServiceTime, Date regainedServiceTime, Integer lostServiceEventId, Integer regainedServiceEventId, Integer lostServiceNotificationId, String lostServiceNotificationAcknowledgedBy, Date suppressTime, String suppressedBy)
Constructor for Outage.
- Parameters:
outageId
- a int.nodeId
- a int.nodeLabel
- aString
object.ipAddress
- aString
object.hostname
- aString
object.serviceId
- a int.serviceName
- aString
object.lostServiceTime
- aDate
object.regainedServiceTime
- aDate
object.lostServiceEventId
- aInteger
object.regainedServiceEventId
- aInteger
object.lostServiceNotificationId
- aInteger
object.lostServiceNotificationAcknowledgedBy
- aString
object.suppressTime
- aDate
object.suppressedBy
- aString
object.
-
Outage
protected Outage(int outageId, int nodeId, String nodeLabel, String ipAddress, String hostname, int serviceId, String serviceName, Date lostServiceTime, Date regainedServiceTime, Integer lostServiceEventId, Integer regainedServiceEventId, Integer lostServiceNotificationId, String lostServiceNotificationAcknowledgedBy, Date suppressTime, String suppressedBy, String building)
Constructor for Outage.
- Parameters:
outageId
- a int.nodeId
- a int.nodeLabel
- aString
object.ipAddress
- aString
object.hostname
- aString
object.serviceId
- a int.serviceName
- aString
object.lostServiceTime
- aDate
object.regainedServiceTime
- aDate
object.lostServiceEventId
- aInteger
object.regainedServiceEventId
- aInteger
object.lostServiceNotificationId
- aInteger
object.lostServiceNotificationAcknowledgedBy
- aString
object.suppressTime
- aDate
object.suppressedBy
- aString
object.building
- aString
object.
-
-
Method Detail
-
getId
public int getId()
getId
- Returns:
- a int.
-
getNodeId
public int getNodeId()
Getter for the field
nodeId
.- Returns:
- a int.
-
getServiceId
public int getServiceId()
Getter for the field
serviceId
.- Returns:
- a int.
-
getLostServiceTime
public Date getLostServiceTime()
Getter for the field
lostServiceTime
.- Returns:
- a
Date
object.
-
getRegainedServiceEventId
public Integer getRegainedServiceEventId()
can be null- Returns:
- a
Integer
object.
-
getLostServiceNotificationId
public Integer getLostServiceNotificationId()
can be null- Returns:
- a
Integer
object.
-
getLostServiceNotificationAcknowledgedBy
public String getLostServiceNotificationAcknowledgedBy()
can be null- Returns:
- a
String
object.
-
getSuppressTime
public Date getSuppressTime()
Getter for the field
suppressTime
.- Returns:
- a
Date
object.
-
getSuppressedBy
public String getSuppressedBy()
Getter for the field
suppressedBy
.- Returns:
- a
String
object.
-
getTimeDown
public Date getTimeDown()
Deprecated.Please usegetLostServiceTime
instead.getTimeDown
- Returns:
- a
Date
object.
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
-
getEventLocation
public String getEventLocation()
-
setEventLocation
public void setEventLocation(String eventLocation)
-
getPerspectiveLocation
public String getPerspectiveLocation()
-
setPerspectiveLocation
public void setPerspectiveLocation(String perspectiveLocation)
-
-