Package org.h2.jmx
Class DocumentedMBean
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.h2.jmx.DocumentedMBean
-
- All Implemented Interfaces:
javax.management.DynamicMBean,javax.management.MBeanRegistration
public class DocumentedMBean extends javax.management.StandardMBeanAn MBean that reads the documentation from a resource file.
-
-
Constructor Summary
Constructors Constructor Description DocumentedMBean(T impl, java.lang.Class<T> mbeanInterface)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetDescription(javax.management.MBeanAttributeInfo info)protected java.lang.StringgetDescription(javax.management.MBeanInfo info)protected java.lang.StringgetDescription(javax.management.MBeanOperationInfo op)protected intgetImpact(javax.management.MBeanOperationInfo info)-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Constructor Detail
-
DocumentedMBean
public DocumentedMBean(T impl, java.lang.Class<T> mbeanInterface) throws javax.management.NotCompliantMBeanExceptionConstructor- Type Parameters:
T- bean type- Parameters:
impl- bean implementationmbeanInterface- bean interface class- Throws:
javax.management.NotCompliantMBeanException- if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if the given implementation does not implement the specified interface.
-
-
Method Detail
-
getDescription
protected java.lang.String getDescription(javax.management.MBeanInfo info)
- Overrides:
getDescriptionin classjavax.management.StandardMBean
-
getDescription
protected java.lang.String getDescription(javax.management.MBeanOperationInfo op)
- Overrides:
getDescriptionin classjavax.management.StandardMBean
-
getDescription
protected java.lang.String getDescription(javax.management.MBeanAttributeInfo info)
- Overrides:
getDescriptionin classjavax.management.StandardMBean
-
getImpact
protected int getImpact(javax.management.MBeanOperationInfo info)
- Overrides:
getImpactin classjavax.management.StandardMBean
-
-