|
||||||||||
| 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. |
| Method Summary | |
|---|---|
static PollStatus |
available()
|
static PollStatus |
available(long responseTime)
|
static PollStatus |
decode(java.lang.String statusName)
|
static PollStatus |
decode(java.lang.String statusName,
long responseTime)
|
static PollStatus |
decode(java.lang.String statusName,
java.lang.String reason)
|
static PollStatus |
decode(java.lang.String statusName,
java.lang.String reason,
long responseTime)
|
static PollStatus |
down()
|
static PollStatus |
down(java.lang.String reason)
|
boolean |
equals(java.lang.Object o)
|
static PollStatus |
get(int status,
java.lang.String reason)
|
static PollStatus |
get(int status,
java.lang.String reason,
long responseTime)
|
java.lang.String |
getReason()
|
long |
getResponseTime()
|
int |
getStatusCode()
|
java.lang.String |
getStatusName()
|
java.util.Date |
getTimestamp()
|
int |
hashCode()
|
boolean |
isAvailable()
|
boolean |
isDown()
|
boolean |
isUnavailable()
|
boolean |
isUnresponsive()
|
boolean |
isUp()
|
void |
setReason(java.lang.String reason)
|
void |
setResponseTime(long responseTime)
|
void |
setTimestamp(java.util.Date timestamp)
|
java.lang.String |
toString()
|
static PollStatus |
unavailable()
|
static PollStatus |
unavailable(java.lang.String reason)
|
static PollStatus |
unknown()
|
static PollStatus |
unknown(java.lang.String reason)
|
static PollStatus |
unresponsive()
|
static PollStatus |
unresponsive(java.lang.String reason)
|
static PollStatus |
up()
|
static PollStatus |
up(long responseTime)
|
| 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(java.lang.String statusName)
public static PollStatus decode(java.lang.String statusName,
java.lang.String reason)
public static PollStatus decode(java.lang.String statusName,
long responseTime)
public static PollStatus decode(java.lang.String statusName,
java.lang.String reason,
long responseTime)
public static PollStatus get(int status,
java.lang.String reason)
public static PollStatus get(int status,
java.lang.String reason,
long responseTime)
public static PollStatus up()
public static PollStatus up(long responseTime)
public static PollStatus available()
public static PollStatus available(long responseTime)
public static PollStatus unknown()
public static PollStatus unknown(java.lang.String reason)
public static PollStatus unresponsive()
public static PollStatus unresponsive(java.lang.String reason)
public static PollStatus down()
public static PollStatus unavailable()
public static PollStatus down(java.lang.String reason)
public static PollStatus unavailable(java.lang.String reason)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isUp()
public boolean isAvailable()
public boolean isUnresponsive()
public boolean isUnavailable()
public boolean isDown()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
public java.lang.String getReason()
public void setReason(java.lang.String reason)
public long getResponseTime()
public void setResponseTime(long responseTime)
public int getStatusCode()
public java.lang.String getStatusName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||