|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.services.systemhealth.tracker.impl.SystemHealthIndicatorWrapper
public final class SystemHealthIndicatorWrapper
Wraps a SystemHealthIndicator in order to comply to the JMX spec.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface nl.gx.webmanager.services.systemhealth.SystemHealthIndicator |
|---|
SystemHealthIndicator.ValueStatus |
| Field Summary |
|---|
| Fields inherited from interface nl.gx.webmanager.services.systemhealth.SystemHealthIndicator |
|---|
CATEGORY_CACHING, CATEGORY_RESPONSE_TIME, CATEGORY_SETTINGS, JMX_CATEGORY_KEY, JMX_PI_DOMAIN, JMX_TITLE_KEY, JMX_TYPE_KEY, TYPE_CUSTOM, TYPE_SYSTEM |
| Constructor Summary | |
|---|---|
SystemHealthIndicatorWrapper(SystemHealthIndicator shi)
Construct a wrapper around the given system health indicator. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCategory()
Get the category of this indicator. |
java.lang.String |
getId()
|
java.lang.String |
getMessage(java.util.Locale locale)
Get an explanatory message in the given language. |
java.lang.String |
getName(java.util.Locale locale)
Get name of this performance indicator in the given language. |
java.lang.String |
getType()
Get the type of this indicator. |
java.lang.Object |
getValue()
|
SystemHealthIndicator.ValueStatus |
getValueState()
|
void |
reset()
Resets the indicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemHealthIndicatorWrapper(SystemHealthIndicator shi)
shi - the system health monitor to wrap| Method Detail |
|---|
public java.lang.String getCategory()
getCategory in interface SystemHealthIndicatorpublic java.lang.String getType()
TYPE_SYSTEM and TYPE_CUSTOM.
WCB developers should use the latter.
getType in interface SystemHealthIndicatorpublic java.lang.String getId()
getId in interface SystemHealthIndicatorpublic java.lang.String getMessage(java.util.Locale locale)
getMessage in interface SystemHealthIndicatorlocale - the current locale
public java.lang.String getName(java.util.Locale locale)
getName in interface SystemHealthIndicatorlocale - the locale
public java.lang.Object getValue()
getValue in interface SystemHealthIndicatorpublic SystemHealthIndicator.ValueStatus getValueState()
getValueState in interface SystemHealthIndicatorpublic void reset()
reset in interface SystemHealthIndicator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||