@Singleton @Configurable public class CallJmxOperation extends AbstractHealthAction
<health:CallJmxOperation>
<objectName>java.lang:type=Threading</objectName>
<operation>resetPeakThreadCount</operation>
<health:IfNotRecent time='5m'/>
</health:CallJmxOperation>
Constructor and Description |
---|
CallJmxOperation() |
Modifier and Type | Method and Description |
---|---|
void |
addParam(java.lang.String param) |
HealthActionResult |
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) |
add, addListener, doAction, getPredicates, start, stop, toString
@PostConstruct public void init()
init
in class AbstractHealthAction
public java.lang.String getObjectName()
@Configurable public void setObjectName(java.lang.String objectName)
public java.lang.String getOperation()
@Configurable public void setOperation(java.lang.String operation)
public int getOperationIndex()
@Configurable public void setOperationIndex(int operationIndex)
public java.util.List<java.lang.String> getParams()
@Configurable public void addParam(java.lang.String param)
public HealthActionResult doActionImpl(HealthEvent healthEvent) throws java.lang.Exception
doActionImpl
in class AbstractHealthAction
java.lang.Exception