|
OpenNMS API 1.2.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.poller.nsclient.NsclientPacket
This object implements the packets created by the
NsclientManager
system.
Field Summary | |
private java.lang.String |
m_Response
Stores the response from the server. |
private short |
m_ResultCode
Stores the result of the check. |
static short |
RES_STATE_CRIT
This value is used to state the the service check was validated and needs immediate attention, an outage has occured. |
static short |
RES_STATE_OK
This value is used to state that the service check was validated OK. |
static short |
RES_STATE_UNKNOWN
This value is used when a service check validation has unknown results. |
static short |
RES_STATE_WARNING
This value is used to state that the service check was validated, but needs attention. |
static java.util.HashMap |
StateStrings
This member is used to convert result codes to strings and vice versa. |
Constructor Summary | |
(package private) |
NsclientPacket(java.lang.String response)
Constructor, sets the response member. |
Method Summary | |
static java.lang.String |
convertStateToString(short type)
This method converts a result code to a string. |
static short |
convertStringToType(java.lang.String type)
This method returns the result code for a corresponding string. |
java.lang.String |
getResponse()
Returns the value of the server response. |
short |
getResultCode()
Returns the result code for the validation. |
void |
setResultCode(short res)
This method sets the result code for the check validation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String m_Response
private short m_ResultCode
public static final short RES_STATE_OK
public static final short RES_STATE_WARNING
public static final short RES_STATE_CRIT
public static final short RES_STATE_UNKNOWN
public static java.util.HashMap StateStrings
Constructor Detail |
NsclientPacket(java.lang.String response)
response
- the response value from the server.Method Detail |
public static java.lang.String convertStateToString(short type)
type
- the result code to convert
public static short convertStringToType(java.lang.String type)
type
- the string name of the result code.
public java.lang.String getResponse()
public short getResultCode()
public void setResultCode(short res)
res
- the result code.
|
OpenNMS API 1.2.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |