org.opennms.web.outage
Class OutageSummary

java.lang.Object
  extended by org.opennms.web.outage.OutageSummary

public class OutageSummary
extends Object

A data structure holding information on all outages on a single IP address.

Author:
Lawrence Karnowski , OpenNMS

Field Summary
protected  int nodeId
           
protected  String nodeLabel
           
protected  Date timeDown
           
protected  Date timeNow
           
protected  Date timeUp
           
 
Constructor Summary
OutageSummary(int nodeId, String nodeLabel, Date timeDown)
           
OutageSummary(int nodeId, String nodeLabel, Date timeDown, Date timeUp)
           
OutageSummary(int nodeId, String nodeLabel, Date timeDown, Date timeUp, Date timeNow)
           
 
Method Summary
 String getFuzzyTimeDown()
           
 String getHostname()
          Deprecated. Please use getNodeLabelinstead.
 int getNodeId()
           
 String getNodeLabel()
           
 Date getTimeDown()
           
 Date getTimeUp()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeId

protected final int nodeId

nodeLabel

protected final String nodeLabel

timeDown

protected final Date timeDown

timeUp

protected final Date timeUp

timeNow

protected final Date timeNow
Constructor Detail

OutageSummary

public OutageSummary(int nodeId,
                     String nodeLabel,
                     Date timeDown,
                     Date timeUp,
                     Date timeNow)

OutageSummary

public OutageSummary(int nodeId,
                     String nodeLabel,
                     Date timeDown,
                     Date timeUp)

OutageSummary

public OutageSummary(int nodeId,
                     String nodeLabel,
                     Date timeDown)
Method Detail

getNodeId

public int getNodeId()

getHostname

public String getHostname()
Deprecated. Please use getNodeLabelinstead.


getNodeLabel

public String getNodeLabel()

getTimeDown

public Date getTimeDown()

getTimeUp

public Date getTimeUp()

getFuzzyTimeDown

public String getFuzzyTimeDown()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009. All Rights Reserved.