public class WmiResult extends Object
WmiManager system.| Modifier and Type | Field and Description | 
|---|---|
static short | 
RES_STATE_CRIT
This value is used to state the the service check was validated and
 needs immediate attention, an outage has occurred. 
 | 
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 Map<String,Short> | 
StateStrings
This member is used to convert result codes to strings and vice versa. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
convertStateToString(short type)
This method converts a result code to a string. 
 | 
static short | 
convertStringToType(String type)
This method returns the result code for a corresponding string. 
 | 
List<Object> | 
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. 
 | 
String | 
toString()
toString 
 | 
public static final short RES_STATE_OK
public static final short RES_STATE_CRIT
public static final short RES_STATE_UNKNOWN
public static String convertStateToString(short type)
type - the result code to convertpublic static short convertStringToType(String type)
type - the string name of the result code.public List<Object> getResponse()
public short getResultCode()
public void setResultCode(short res)
res - the result code.Copyright © 2021. All rights reserved.