com.caucho.health.action
Class SetJmxAttribute

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

@Singleton
@Configurable
public class SetJmxAttribute
extends AbstractHealthAction

Health action to set a JMX MBean attribute value.

<health:SetJmxAttribute>
   <objectName>java.lang:type=ClassLoading</objectName>
   <attribute>Verbose</attribute>
   <value>true</value>
   <health:OnStart/>
 </health:SetJmxAttribute> 
 


Constructor Summary
SetJmxAttribute()
           
 
Method Summary
 void doActionImpl(HealthEvent healthEvent)
           
 java.lang.String getAttribute()
           
 java.lang.String getObjectName()
           
 java.lang.String getValue()
           
 void init()
           
 void setAttribute(java.lang.String attribute)
           
 void setObjectName(java.lang.String objectName)
           
 void setValue(java.lang.String value)
           
 
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

SetJmxAttribute

public SetJmxAttribute()
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)

getAttribute

public java.lang.String getAttribute()

setValue

@Configurable
public void setValue(java.lang.String value)

getValue

public java.lang.String getValue()

setAttribute

@Configurable
public void setAttribute(java.lang.String attribute)

doActionImpl

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