com.caucho.health.action
Class CallJmxOperation

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

@Singleton
@Configurable
public class CallJmxOperation
extends AbstractHealthAction

Health action to call a JMX MBean operation.

<health:CallJmxOperation>
   <objectName>java.lang:type=Threading</objectName>
   <operation>resetPeakThreadCount</operation>
   <health:IfNotRecent time='5m'/>
 </health:CallJmxOperation>
 


Constructor Summary
CallJmxOperation()
           
 
Method Summary
 void addParam(java.lang.String param)
           
 void doActionImpl(HealthEvent healthEvent)
           
 java.lang.String getObjectName()
           
 java.lang.String getOperation()
           
 int getOperationIndex()
           
 java.util.List<java.lang.String> getParams()
           
 void init()
           
 void setObjectName(java.lang.String objectName)
           
 void setOperation(java.lang.String operation)
           
 void setOperationIndex(int operationIndex)
           
 
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
 

Constructor Detail

CallJmxOperation

public CallJmxOperation()
Method Detail

init

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

getObjectName

public java.lang.String getObjectName()

setObjectName

@Configurable
public void setObjectName(java.lang.String objectName)

getOperation

public java.lang.String getOperation()

setOperation

@Configurable
public void setOperation(java.lang.String operation)

getOperationIndex

public int getOperationIndex()

setOperationIndex

@Configurable
public void setOperationIndex(int operationIndex)

getParams

public java.util.List<java.lang.String> getParams()

addParam

@Configurable
public void addParam(java.lang.String param)

doActionImpl

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