com.caucho.health.action
Class DumpThreads
java.lang.Object
com.caucho.health.action.AbstractHealthAction
com.caucho.health.action.DumpThreads
- All Implemented Interfaces:
- HealthAction
@Singleton
@Configurable
public class DumpThreads
- extends AbstractHealthAction
Health action to create a thread dump. The thread
dump will be logged to the internal log database and the resin log file
using com.caucho.health.action.DumpThreads as the class, at info level.
<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>
|
Field Summary |
static java.lang.String |
LOG_TYPE
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LOG_TYPE
public static final java.lang.String LOG_TYPE
- See Also:
- Constant Field Values
DumpThreads
public DumpThreads()
init
@PostConstruct
public void init()
- Overrides:
init in class AbstractHealthAction
isOnlyActive
public boolean isOnlyActive()
setLog
@Configurable
public void setLog(boolean isLog)
- Output to server log in addition to internal database (default true).
setOnlyActive
@Configurable
public void setOnlyActive(boolean onlyActive)
- Set dump to include only active threads
doActionImpl
public void doActionImpl(HealthEvent healthEvent)
- Specified by:
doActionImpl in class AbstractHealthAction