org.apache.jackrabbit.oak.commons.jmx
Class AnnotatedStandardMBean

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.jackrabbit.oak.commons.jmx.AnnotatedStandardMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration

public class AnnotatedStandardMBean
extends StandardMBean

The extension of StandardMBean that will automatically provide JMX metadata through annotations.

See Also:
MBeanInfo, Description, Name, Impact

Constructor Summary
protected AnnotatedStandardMBean(Class<?> mbeanInterface)
           
  AnnotatedStandardMBean(T implementation, Class<T> mbeanInterface)
          Make a DynamicMBean out of the object implementation, using the specified mbeanInterface class.
 
Method Summary
protected  String getDescription(MBeanAttributeInfo info)
           
protected  String getDescription(MBeanInfo info)
           
protected  String getDescription(MBeanOperationInfo info)
           
protected  String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
           
protected  int getImpact(MBeanOperationInfo info)
           
protected  String getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
           
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedStandardMBean

public AnnotatedStandardMBean(T implementation,
                              Class<T> mbeanInterface)
                       throws NotCompliantMBeanException
Make a DynamicMBean out of the object implementation, using the specified mbeanInterface class.

Throws:
NotCompliantMBeanException
See Also:
javax.management.StandardMBean#StandardMBean(Object, Class)}

AnnotatedStandardMBean

protected AnnotatedStandardMBean(Class<?> mbeanInterface)
                          throws NotCompliantMBeanException
Throws:
NotCompliantMBeanException
Method Detail

getDescription

protected String getDescription(MBeanInfo info)
Overrides:
getDescription in class StandardMBean

getDescription

protected String getDescription(MBeanAttributeInfo info)
Overrides:
getDescription in class StandardMBean

getDescription

protected String getDescription(MBeanOperationInfo info)
Overrides:
getDescription in class StandardMBean

getImpact

protected int getImpact(MBeanOperationInfo info)
Overrides:
getImpact in class StandardMBean

getParameterName

protected String getParameterName(MBeanOperationInfo op,
                                  MBeanParameterInfo param,
                                  int sequence)
Overrides:
getParameterName in class StandardMBean

getDescription

protected String getDescription(MBeanOperationInfo op,
                                MBeanParameterInfo param,
                                int sequence)
Overrides:
getDescription in class StandardMBean


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.