@Singleton @Configurable public class DumpJmx extends AbstractHealthAction
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:DumpJmx>
<health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
<health:IfRechecked/>
</health:DumpJmx>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_TYPE |
Constructor and Description |
---|
DumpJmx() |
Modifier and Type | Method and Description |
---|---|
HealthActionResult |
doActionImpl(HealthEvent healthEvent) |
HealthActionResult |
executeTask() |
void |
init() |
void |
setAsync(boolean isAsync)
If set, spawn a thread to dump the jmx.
|
void |
setDelay(Period delay) |
void |
setDelayMillis(long delay) |
void |
setLog(boolean isLog)
Output to server log in addition to internal database (default false).
|
add, addListener, doAction, getPredicates, start, stop, toString
public static final java.lang.String LOG_TYPE
@Configurable public void setLog(boolean isLog)
@Configurable public void setAsync(boolean isAsync)
@Configurable public void setDelay(Period delay)
@Configurable public void setDelayMillis(long delay)
@PostConstruct public void init()
init
in class AbstractHealthAction
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception
public HealthActionResult executeTask() throws java.lang.Exception
java.lang.Exception