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