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.

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()
           
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)
           
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)
           
 
Method Summary
 String getBuilding()
          can be null
 String getHostname()
          can be null
 int getId()
           
 String getIpAddress()
           
 Integer getLostServiceEventId()
          can be null
 String getLostServiceNotificationAcknowledgedBy()
          can be null
 Integer getLostServiceNotificationId()
          can be null
 Date getLostServiceTime()
           
 int getNodeId()
           
 String getNodeLabel()
          can be null
 Integer getRegainedServiceEventId()
          can be null
 Date getRegainedServiceTime()
          can be null
 int getServiceId()
           
 String getServiceName()
          can be null
 String getSuppressedBy()
           
 Date getSuppressTime()
           
 Date getTimeDown()
          Deprecated. Please use getLostServiceTime instead.
 String 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()

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)

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)
Method Detail

getId

public int getId()

getNodeId

public int getNodeId()

getIpAddress

public String getIpAddress()

getHostname

public String getHostname()
can be null


getNodeLabel

public String getNodeLabel()
can be null


getServiceId

public int getServiceId()

getServiceName

public String getServiceName()
can be null


getLostServiceTime

public Date getLostServiceTime()

getRegainedServiceTime

public Date getRegainedServiceTime()
can be null


getLostServiceEventId

public Integer getLostServiceEventId()
can be null


getRegainedServiceEventId

public Integer getRegainedServiceEventId()
can be null


getLostServiceNotificationId

public Integer getLostServiceNotificationId()
can be null


getLostServiceNotificationAcknowledgedBy

public String getLostServiceNotificationAcknowledgedBy()
can be null


getSuppressTime

public Date getSuppressTime()

getSuppressedBy

public String getSuppressedBy()

getBuilding

public String getBuilding()
can be null


getTimeDown

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


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.