public class HealthCheckAdmin extends AbstractManagedObject implements HealthCheckMXBean
Modifier and Type | Method and Description |
---|---|
long |
getLogPeriodMs()
Returns log period in millis
|
java.lang.String |
getMessage()
Returns the last health check message.
|
java.lang.String |
getName()
The JMX name property of the mbean.
|
java.lang.String |
getStatus()
Returns the last health check status.
|
int |
getStatusOrdinal()
Returns the last status value as an integer for graphing.
|
void |
setLogPeriodMs(long periodMs)
Sets intermittent periods of silence
|
void |
silenceForPeriodMs(long periodMs)
Prevents check result logging for a period of time
|
java.lang.String |
toString() |
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public java.lang.String getStatus()
HealthCheckMXBean
getStatus
in interface HealthCheckMXBean
public int getStatusOrdinal()
HealthCheckMXBean
getStatusOrdinal
in interface HealthCheckMXBean
public java.lang.String getMessage()
HealthCheckMXBean
getMessage
in interface HealthCheckMXBean
public void silenceForPeriodMs(long periodMs)
HealthCheckMXBean
silenceForPeriodMs
in interface HealthCheckMXBean
public void setLogPeriodMs(long periodMs)
HealthCheckMXBean
setLogPeriodMs
in interface HealthCheckMXBean
public long getLogPeriodMs()
HealthCheckMXBean
getLogPeriodMs
in interface HealthCheckMXBean
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String toString()
toString
in class AbstractManagedObject