|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.model.PollStatus
public class PollStatus
Represents the status of a node, interface or services
| Field Summary | |
|---|---|
static int |
SERVICE_AVAILABLE
The constant that defines a service as being in a normal state. |
static int |
SERVICE_UNAVAILABLE
The constant that defines a service that is not working normally and should be scheduled using the downtime models. |
static int |
SERVICE_UNKNOWN
The constant the defines a status is unknown. |
static int |
SERVICE_UNRESPONSIVE
The constant that defines a service that is up but is most likely suffering due to excessive load or latency issues and because of that has not responded within the configured timeout period. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SERVICE_UNRESPONSIVE
The constant that defines a service that is up but is most likely suffering due to excessive load or latency issues and because of that has not responded within the configured timeout period.
public static final int SERVICE_UNAVAILABLE
The constant that defines a service that is not working normally and should be scheduled using the downtime models.
public static final int SERVICE_AVAILABLE
The constant that defines a service as being in a normal state. If this is returned by the poll() method then the framework will re-schedule the service for its next poll using the standard uptime interval
public static final int SERVICE_UNKNOWN
| Method Detail |
|---|
public static PollStatus decode(String statusName)
public static PollStatus decode(String statusName,
String reason)
public static PollStatus decode(String statusName,
Double responseTime)
public static PollStatus decode(String statusName,
String reason,
Double responseTime)
public static PollStatus get(int status,
String reason)
public static PollStatus get(int status,
Double responseTime)
public static PollStatus get(int status,
String reason,
Double responseTime)
public static PollStatus up()
public static PollStatus up(Double responseTime)
public static PollStatus available()
public static PollStatus available(Double responseTime)
public static PollStatus unknown()
public static PollStatus unknown(String reason)
public static PollStatus unresponsive()
public static PollStatus unresponsive(String reason)
public static PollStatus down()
public static PollStatus unavailable()
public static PollStatus down(String reason)
public static PollStatus unavailable(String reason)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean isUp()
public boolean isAvailable()
public boolean isUnresponsive()
public boolean isUnavailable()
public boolean isDown()
public boolean isUnknown()
public String toString()
toString in class Objectpublic Date getTimestamp()
public void setTimestamp(Date timestamp)
public String getReason()
public void setReason(String reason)
public Double getResponseTime()
public void setResponseTime(Double responseTime)
public Map<String,Number> getProperties()
public void setProperties(Map<String,Number> p)
public Number getProperty(String key)
public void setProperty(String key,
Number value)
public int getStatusCode()
public String getStatusName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||