@Singleton @Configurable public class DumpThreads extends AbstractHealthAction
<health:HttpStatusHealthCheck ee:Named="httpStatusCheck">
<url>http://localhost:8080/test-ping.jsp</url>
</health:HttpStatusHealthCheck>
<health:DumpThreads>
<health:IfHealthCritical healthCheck="${httpStatusCheck}"/>
<health:IfRechecked/>
</health:DumpThreads>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_TYPE |
Constructor and Description |
---|
DumpThreads() |
Modifier and Type | Method and Description |
---|---|
HealthActionResult |
doActionImpl(HealthEvent healthEvent) |
void |
init() |
boolean |
isOnlyActive() |
void |
setDepth(int depth)
Sets the maximum depth of a thread dump.
|
void |
setLog(boolean isLog)
Output to server log in addition to internal database (default true).
|
void |
setOnlyActive(boolean onlyActive)
Set dump to include only active threads
|
add, addListener, doAction, getPredicates, start, stop, toString
public static final java.lang.String LOG_TYPE
@PostConstruct public void init()
init
in class AbstractHealthAction
public boolean isOnlyActive()
@Configurable public void setLog(boolean isLog)
@Configurable public void setOnlyActive(boolean onlyActive)
@Configurable public void setDepth(int depth)
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception