com.caucho.health.action
Class DumpJmx

java.lang.Object
  extended by com.caucho.health.action.AbstractHealthAction
      extended by com.caucho.health.action.DumpJmx
All Implemented Interfaces:
HealthAction

@Singleton
@Configurable
public class DumpJmx
extends AbstractHealthAction

Health action to create a dump of all JMX attributes and values. The jmx dump will be logged to the internal log database and the resin log file using com.caucho.health.action.DumpJmx as the class, at info level.

<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>
 


Field Summary
static java.lang.String LOG_TYPE
           
 
Constructor Summary
DumpJmx()
           
 
Method Summary
 void doActionImpl(HealthEvent healthEvent)
           
 void executeTask()
           
 void init()
           
 void setAsync(boolean isAsync)
          If set, spawn a thread to dump the jmx.
 void setLog(boolean isLog)
          Output to server log in addition to internal database (default false).
 
Methods inherited from class com.caucho.health.action.AbstractHealthAction
add, addListener, doAction, getPredicates, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG_TYPE

public static final java.lang.String LOG_TYPE
See Also:
Constant Field Values
Constructor Detail

DumpJmx

public DumpJmx()
Method Detail

setLog

public void setLog(boolean isLog)
Output to server log in addition to internal database (default false).


setAsync

public void setAsync(boolean isAsync)
If set, spawn a thread to dump the jmx.


init

@PostConstruct
public void init()
Overrides:
init in class AbstractHealthAction

doActionImpl

public void doActionImpl(HealthEvent healthEvent)
Specified by:
doActionImpl in class AbstractHealthAction

executeTask

public void executeTask()