org.opennms.web.outage
Class Outage

java.lang.Object
  extended by 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
protected  String building
           
protected  String hostname
           
protected  String ipAddress
           
protected  Integer lostServiceEventId
           
protected  String lostServiceNotificationAcknowledgedBy
           
protected  Integer lostServiceNotificationId
           
protected  Date lostServiceTime
           
protected  int nodeId
           
protected  String nodeLabel
           
protected  int outageId
           
protected  Integer regainedServiceEventId
           
protected  Date regainedServiceTime
           
protected  int serviceId
           
protected  String serviceName
           
protected  String suppressedBy
           
protected  Date suppressTime
           
 
Constructor Summary
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
 String getBuilding()
          can be null
 String getHostname()
          can be null
 int getId()
          getId
 String getIpAddress()
          Getter for the field ipAddress.
 Integer getLostServiceEventId()
          can be null
 String getLostServiceNotificationAcknowledgedBy()
          can be null
 Integer getLostServiceNotificationId()
          can be null
 Date getLostServiceTime()
          Getter for the field lostServiceTime.
 int getNodeId()
          Getter for the field nodeId.
 String getNodeLabel()
          can be null
 Integer getRegainedServiceEventId()
          can be null
 Date getRegainedServiceTime()
          can be null
 int getServiceId()
          Getter for the field serviceId.
 String getServiceName()
          can be null
 String getSuppressedBy()
          Getter for the field suppressedBy.
 Date getSuppressTime()
          Getter for the field suppressTime.
 Date getTimeDown()
          Deprecated. Please use getLostServiceTime instead.
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
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 - a String object.
ipAddress - a String object.
hostname - a String object.
serviceId - a int.
serviceName - a String object.
lostServiceTime - a Date object.
regainedServiceTime - a Date object.
lostServiceEventId - a Integer object.
regainedServiceEventId - a Integer object.
lostServiceNotificationId - a Integer object.
lostServiceNotificationAcknowledgedBy - a String object.
suppressTime - a Date object.
suppressedBy - a String 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 - a String object.
ipAddress - a String object.
hostname - a String object.
serviceId - a int.
serviceName - a String object.
lostServiceTime - a Date object.
regainedServiceTime - a Date object.
lostServiceEventId - a Integer object.
regainedServiceEventId - a Integer object.
lostServiceNotificationId - a Integer object.
lostServiceNotificationAcknowledgedBy - a String object.
suppressTime - a Date object.
suppressedBy - a String object.
building - a String 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 String getIpAddress()

Getter for the field ipAddress.

Returns:
a String object.

getHostname

public String getHostname()
can be null

Returns:
a String object.

getNodeLabel

public String getNodeLabel()
can be null

Returns:
a String object.

getServiceId

public int getServiceId()

Getter for the field serviceId.

Returns:
a int.

getServiceName

public String getServiceName()
can be null

Returns:
a String object.

getLostServiceTime

public Date getLostServiceTime()

Getter for the field lostServiceTime.

Returns:
a Date object.

getRegainedServiceTime

public Date getRegainedServiceTime()
can be null

Returns:
a Date object.

getLostServiceEventId

public Integer getLostServiceEventId()
can be null

Returns:
a Integer 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.

getBuilding

public String getBuilding()
can be null

Returns:
a String object.

getTimeDown

public Date getTimeDown()
Deprecated. Please use getLostServiceTime instead.

getTimeDown

Returns:
a Date object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.


Copyright © 2011. All Rights Reserved.