Package org.opennms.web.outage
Class Outage
- java.lang.Object
-
- org.opennms.web.outage.Outage
-
public class Outage extends java.lang.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 java.lang.String
building
protected java.lang.String
eventLocation
protected java.lang.String
hostname
protected java.lang.String
ipAddress
protected java.lang.String
location
protected java.lang.Integer
lostServiceEventId
protected java.lang.String
lostServiceNotificationAcknowledgedBy
protected java.lang.Integer
lostServiceNotificationId
protected java.util.Date
lostServiceTime
protected int
nodeId
protected java.lang.String
nodeLabel
protected int
outageId
protected java.lang.String
perspectiveLocation
protected java.lang.Integer
regainedServiceEventId
protected java.util.Date
regainedServiceTime
protected int
serviceId
protected java.lang.String
serviceName
protected java.lang.String
suppressedBy
protected java.util.Date
suppressTime
-
Constructor Summary
Constructors Modifier Constructor Description protected
Outage()
Constructor for Outage.protected
Outage(int outageId, int nodeId, java.lang.String nodeLabel, java.lang.String ipAddress, java.lang.String hostname, int serviceId, java.lang.String serviceName, java.util.Date lostServiceTime, java.util.Date regainedServiceTime, java.lang.Integer lostServiceEventId, java.lang.Integer regainedServiceEventId, java.lang.Integer lostServiceNotificationId, java.lang.String lostServiceNotificationAcknowledgedBy, java.util.Date suppressTime, java.lang.String suppressedBy)
Constructor for Outage.protected
Outage(int outageId, int nodeId, java.lang.String nodeLabel, java.lang.String ipAddress, java.lang.String hostname, int serviceId, java.lang.String serviceName, java.util.Date lostServiceTime, java.util.Date regainedServiceTime, java.lang.Integer lostServiceEventId, java.lang.Integer regainedServiceEventId, java.lang.Integer lostServiceNotificationId, java.lang.String lostServiceNotificationAcknowledgedBy, java.util.Date suppressTime, java.lang.String suppressedBy, java.lang.String building)
Constructor for Outage.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getBuilding()
can be nulljava.lang.String
getEventLocation()
java.lang.String
getHostname()
can be nullint
getId()
getIdjava.lang.String
getIpAddress()
Getter for the fieldipAddress
.java.lang.String
getLocation()
java.lang.Integer
getLostServiceEventId()
can be nulljava.lang.String
getLostServiceNotificationAcknowledgedBy()
can be nulljava.lang.Integer
getLostServiceNotificationId()
can be nulljava.util.Date
getLostServiceTime()
Getter for the fieldlostServiceTime
.int
getNodeId()
Getter for the fieldnodeId
.java.lang.String
getNodeLabel()
can be nulljava.lang.String
getPerspectiveLocation()
java.lang.Integer
getRegainedServiceEventId()
can be nulljava.util.Date
getRegainedServiceTime()
can be nullint
getServiceId()
Getter for the fieldserviceId
.java.lang.String
getServiceName()
can be nulljava.lang.String
getSuppressedBy()
Getter for the fieldsuppressedBy
.java.util.Date
getSuppressTime()
Getter for the fieldsuppressTime
.java.util.Date
getTimeDown()
Deprecated.Please usegetLostServiceTime
instead.void
setEventLocation(java.lang.String eventLocation)
void
setLocation(java.lang.String location)
void
setPerspectiveLocation(java.lang.String perspectiveLocation)
java.lang.String
toString()
toString
-
-
-
Field Detail
-
outageId
protected int outageId
-
nodeId
protected int nodeId
-
ipAddress
protected java.lang.String ipAddress
-
hostname
protected java.lang.String hostname
-
nodeLabel
protected java.lang.String nodeLabel
-
serviceId
protected int serviceId
-
serviceName
protected java.lang.String serviceName
-
lostServiceTime
protected java.util.Date lostServiceTime
-
regainedServiceTime
protected java.util.Date regainedServiceTime
-
lostServiceEventId
protected java.lang.Integer lostServiceEventId
-
regainedServiceEventId
protected java.lang.Integer regainedServiceEventId
-
lostServiceNotificationId
protected java.lang.Integer lostServiceNotificationId
-
lostServiceNotificationAcknowledgedBy
protected java.lang.String lostServiceNotificationAcknowledgedBy
-
suppressTime
protected java.util.Date suppressTime
-
suppressedBy
protected java.lang.String suppressedBy
-
building
protected java.lang.String building
-
location
protected java.lang.String location
-
eventLocation
protected java.lang.String eventLocation
-
perspectiveLocation
protected java.lang.String perspectiveLocation
-
-
Constructor Detail
-
Outage
protected Outage()
Constructor for Outage.
-
Outage
protected Outage(int outageId, int nodeId, java.lang.String nodeLabel, java.lang.String ipAddress, java.lang.String hostname, int serviceId, java.lang.String serviceName, java.util.Date lostServiceTime, java.util.Date regainedServiceTime, java.lang.Integer lostServiceEventId, java.lang.Integer regainedServiceEventId, java.lang.Integer lostServiceNotificationId, java.lang.String lostServiceNotificationAcknowledgedBy, java.util.Date suppressTime, java.lang.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, java.lang.String nodeLabel, java.lang.String ipAddress, java.lang.String hostname, int serviceId, java.lang.String serviceName, java.util.Date lostServiceTime, java.util.Date regainedServiceTime, java.lang.Integer lostServiceEventId, java.lang.Integer regainedServiceEventId, java.lang.Integer lostServiceNotificationId, java.lang.String lostServiceNotificationAcknowledgedBy, java.util.Date suppressTime, java.lang.String suppressedBy, java.lang.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.
-
getIpAddress
public java.lang.String getIpAddress()
Getter for the field
ipAddress
.- Returns:
- a
String
object.
-
getHostname
public java.lang.String getHostname()
can be null- Returns:
- a
String
object.
-
getNodeLabel
public java.lang.String getNodeLabel()
can be null- Returns:
- a
String
object.
-
getServiceId
public int getServiceId()
Getter for the field
serviceId
.- Returns:
- a int.
-
getServiceName
public java.lang.String getServiceName()
can be null- Returns:
- a
String
object.
-
getLostServiceTime
public java.util.Date getLostServiceTime()
Getter for the field
lostServiceTime
.- Returns:
- a
Date
object.
-
getRegainedServiceTime
public java.util.Date getRegainedServiceTime()
can be null- Returns:
- a
Date
object.
-
getLostServiceEventId
public java.lang.Integer getLostServiceEventId()
can be null- Returns:
- a
Integer
object.
-
getRegainedServiceEventId
public java.lang.Integer getRegainedServiceEventId()
can be null- Returns:
- a
Integer
object.
-
getLostServiceNotificationId
public java.lang.Integer getLostServiceNotificationId()
can be null- Returns:
- a
Integer
object.
-
getLostServiceNotificationAcknowledgedBy
public java.lang.String getLostServiceNotificationAcknowledgedBy()
can be null- Returns:
- a
String
object.
-
getSuppressTime
public java.util.Date getSuppressTime()
Getter for the field
suppressTime
.- Returns:
- a
Date
object.
-
getSuppressedBy
public java.lang.String getSuppressedBy()
Getter for the field
suppressedBy
.- Returns:
- a
String
object.
-
getBuilding
public java.lang.String getBuilding()
can be null- Returns:
- a
String
object.
-
getTimeDown
public java.util.Date getTimeDown()
Deprecated.Please usegetLostServiceTime
instead.getTimeDown
- Returns:
- a
Date
object.
-
getLocation
public java.lang.String getLocation()
-
setLocation
public void setLocation(java.lang.String location)
-
getEventLocation
public java.lang.String getEventLocation()
-
setEventLocation
public void setEventLocation(java.lang.String eventLocation)
-
getPerspectiveLocation
public java.lang.String getPerspectiveLocation()
-
setPerspectiveLocation
public void setPerspectiveLocation(java.lang.String perspectiveLocation)
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
-