|
||||||||||
| 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()
available |
static PollStatus |
available(Double responseTime)
available |
static PollStatus |
decode(String statusName)
decode |
static PollStatus |
decode(String statusName,
Double responseTime)
decode |
static PollStatus |
decode(String statusName,
String reason)
decode |
static PollStatus |
decode(String statusName,
String reason,
Double responseTime)
decode |
static PollStatus |
down()
down |
static PollStatus |
down(String reason)
down |
boolean |
equals(Object o)
|
static PollStatus |
get(int status,
Double responseTime)
get |
static PollStatus |
get(int status,
String reason)
get |
static PollStatus |
get(int status,
String reason,
Double responseTime)
get |
Map<String,Number> |
getProperties()
getProperties |
Number |
getProperty(String key)
getProperty |
String |
getReason()
getReason |
Double |
getResponseTime()
getResponseTime |
int |
getStatusCode()
getStatusCode |
String |
getStatusName()
getStatusName |
Date |
getTimestamp()
getTimestamp |
int |
hashCode()
hashCode |
boolean |
isAvailable()
isAvailable |
boolean |
isDown()
isDown |
boolean |
isUnavailable()
isUnavailable |
boolean |
isUnknown()
isUnknown |
boolean |
isUnresponsive()
isUnresponsive |
boolean |
isUp()
isUp |
void |
setProperties(Map<String,Number> p)
setProperties |
void |
setProperty(String key,
Number value)
setProperty |
void |
setReason(String reason)
setReason |
void |
setResponseTime(Double responseTime)
setResponseTime |
void |
setTimestamp(Date timestamp)
setTimestamp |
String |
toString()
toString |
static PollStatus |
unavailable()
unavailable |
static PollStatus |
unavailable(String reason)
unavailable |
static PollStatus |
unknown()
unknown |
static PollStatus |
unknown(String reason)
unknown |
static PollStatus |
unresponsive()
unresponsive |
static PollStatus |
unresponsive(String reason)
unresponsive |
static PollStatus |
up()
up |
static PollStatus |
up(Double responseTime)
up |
| 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)
decode
statusName - a String object.
PollStatus object.
public static PollStatus decode(String statusName,
String reason)
decode
statusName - a String object.reason - a String object.
PollStatus object.
public static PollStatus decode(String statusName,
Double responseTime)
decode
statusName - a String object.responseTime - a Double object.
PollStatus object.
public static PollStatus decode(String statusName,
String reason,
Double responseTime)
decode
statusName - a String object.reason - a String object.responseTime - a Double object.
PollStatus object.
public static PollStatus get(int status,
String reason)
get
status - a int.reason - a String object.
PollStatus object.
public static PollStatus get(int status,
Double responseTime)
get
status - a int.responseTime - a Double object.
PollStatus object.
public static PollStatus get(int status,
String reason,
Double responseTime)
get
status - a int.reason - a String object.responseTime - a Double object.
PollStatus object.public static PollStatus up()
up
PollStatus object.public static PollStatus up(Double responseTime)
up
responseTime - a Double object.
PollStatus object.public static PollStatus available()
available
PollStatus object.public static PollStatus available(Double responseTime)
available
responseTime - a Double object.
PollStatus object.public static PollStatus unknown()
unknown
PollStatus object.public static PollStatus unknown(String reason)
unknown
reason - a String object.
PollStatus object.public static PollStatus unresponsive()
unresponsive
PollStatus object.public static PollStatus unresponsive(String reason)
unresponsive
reason - a String object.
PollStatus object.public static PollStatus down()
down
PollStatus object.public static PollStatus unavailable()
unavailable
PollStatus object.public static PollStatus down(String reason)
down
reason - a String object.
PollStatus object.public static PollStatus unavailable(String reason)
unavailable
reason - a String object.
PollStatus object.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode
hashCode in class Objectpublic boolean isUp()
isUp
public boolean isAvailable()
isAvailable
public boolean isUnresponsive()
isUnresponsive
public boolean isUnavailable()
isUnavailable
public boolean isDown()
isDown
public boolean isUnknown()
isUnknown
public String toString()
toString
toString in class ObjectString object.public Date getTimestamp()
getTimestamp
Date object.public void setTimestamp(Date timestamp)
setTimestamp
timestamp - a Date object.public String getReason()
getReason
String object.public void setReason(String reason)
setReason
reason - a String object.public Double getResponseTime()
getResponseTime
Double object.public void setResponseTime(Double responseTime)
setResponseTime
responseTime - a Double object.public Map<String,Number> getProperties()
getProperties
Map object.public void setProperties(Map<String,Number> p)
setProperties
p - a Map object.public Number getProperty(String key)
getProperty
key - a String object.
Number object.
public void setProperty(String key,
Number value)
setProperty
key - a String object.value - a Number object.public int getStatusCode()
getStatusCode
public String getStatusName()
getStatusName
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||