@Singleton @Configurable public class DumpHealth extends AbstractHealthAction
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:DumpHealth>
<health:IfHealthCritical/>
</health:DumpHealth>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_TYPE |
Constructor and Description |
---|
DumpHealth() |
Modifier and Type | Method and Description |
---|---|
HealthActionResult |
doActionImpl(HealthEvent healthEvent) |
void |
init() |
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)
@PostConstruct public void init()
init
in class AbstractHealthAction
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception