org.shiftone.jrat.util.jmx.dynamic
Class ConfigurableMBean

java.lang.Object
  extended by org.shiftone.jrat.util.jmx.dynamic.ConfigurableMBean
All Implemented Interfaces:
javax.management.DynamicMBean

public class ConfigurableMBean
extends java.lang.Object
implements javax.management.DynamicMBean

Author:
jeff@shiftone.org (Jeff Drost)

Constructor Summary
ConfigurableMBean(java.lang.String description)
           
 
Method Summary
 void add(java.lang.String name, AttributeValue attributeValue)
           
 void add(java.lang.String name, Operation operation)
           
 void add(java.lang.String name, java.lang.String[] signature, Operation operation)
           
 java.lang.Object getAttribute(java.lang.String name)
           
 javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
           
 java.lang.String getDescription()
           
 javax.management.MBeanAttributeInfo[] getMBeanAttributeInfo()
           
 javax.management.MBeanInfo getMBeanInfo()
           
 javax.management.MBeanOperationInfo[] getMBeanOperationInfo()
           
 java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
           
 void setAttribute(javax.management.Attribute newValue)
           
 javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
           
 void setDescription(java.lang.String description)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurableMBean

public ConfigurableMBean(java.lang.String description)
Method Detail

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

add

public void add(java.lang.String name,
                AttributeValue attributeValue)

add

public void add(java.lang.String name,
                Operation operation)

add

public void add(java.lang.String name,
                java.lang.String[] signature,
                Operation operation)

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException,
                                     javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

setAttribute

public void setAttribute(javax.management.Attribute newValue)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
Specified by:
getAttributes in interface javax.management.DynamicMBean

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
Specified by:
setAttributes in interface javax.management.DynamicMBean

invoke

public java.lang.Object invoke(java.lang.String actionName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws javax.management.MBeanException,
                               javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

getMBeanAttributeInfo

public javax.management.MBeanAttributeInfo[] getMBeanAttributeInfo()

getMBeanOperationInfo

public javax.management.MBeanOperationInfo[] getMBeanOperationInfo()

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface javax.management.DynamicMBean

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object