java.io.Serializablepublic final class HealthState
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
static int |
HEALTH_CRITICAL |
Something must be done now to prevent service failure.
|
static int |
HEALTH_FAILED |
Service has failed - must be restarted.
|
static int |
HEALTH_OK |
Server Service is healthy.
|
static int |
HEALTH_OVERLOADED |
Service is functioning normally but there is too much work in it.
|
static int |
HEALTH_WARN |
Service could have problems in the future.
|
static java.lang.String |
LOW_MEMORY_REASON |
Reason code that indicates that the server is low on memory.
|
| Modifier and Type | Method | Description |
|---|---|---|
static int |
compareSeverities(int aState,
int baseState) |
|
int |
compareSeverityTo(int otherState) |
|
int |
compareSeverityTo(HealthState other) |
Compares the severity of the supplied HealthState to this object's
severity.
|
protected java.util.Map |
getCompositeDataMap() |
creates a map of attribute values for use in CompositeData construction
|
protected javax.management.openmbean.CompositeType |
getCompositeType() |
creates the open data CompositType instance for this object
|
java.lang.String |
getPartitionName() |
Get partition name for this health state
|
java.lang.String[] |
getReasonCode() |
Deprecated.
|
int |
getState() |
Health state returned by this service.
|
java.lang.String |
getSubsystemName() |
Name of the service providing health information
|
Symptom[] |
getSymptoms() |
Get symptoms for this health state
|
javax.management.openmbean.CompositeData |
toCompositeData() |
Converts a
ConsumerInfo instance to a CompositeData representation. |
java.lang.String |
toString() |
public static final int HEALTH_OK
public static final int HEALTH_WARN
public static final int HEALTH_CRITICAL
public static final int HEALTH_FAILED
public static final int HEALTH_OVERLOADED
public static final java.lang.String LOW_MEMORY_REASON
OVERLOADED with this reason
code if the low threshold is reached.OverloadProtectionMBean,
Constant Field Valuespublic java.lang.String getSubsystemName()
public int getState()
HEALTH_OK, HEALTH_WARN,
HEALTH_CRITICAL, HEALTH_FAILED,
HEALTH_OVERLOADEDpublic int compareSeverityTo(HealthState other)
other - public int compareSeverityTo(int otherState)
public static int compareSeverities(int aState,
int baseState)
@Deprecated public java.lang.String[] getReasonCode()
public java.lang.String toString()
toString in class java.lang.Objectpublic javax.management.openmbean.CompositeData toCompositeData()
throws javax.management.openmbean.OpenDataException
Converts a ConsumerInfo instance to a CompositeData representation.
javax.management.openmbean.OpenDataException - Thrown when an error occurs while constructing the CompositeData
representation.protected javax.management.openmbean.CompositeType getCompositeType()
throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataExceptionprotected java.util.Map getCompositeDataMap()
throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataExceptionpublic Symptom[] getSymptoms()
public java.lang.String getPartitionName()