Package org.h2.jmx

Class DocumentedMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean, javax.management.MBeanRegistration

    public class DocumentedMBean
    extends javax.management.StandardMBean
    An MBean that reads the documentation from a resource file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String interfaceName  
      private java.util.Properties resources  
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentedMBean​(T impl, java.lang.Class<T> mbeanInterface)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getDescription​(javax.management.MBeanAttributeInfo info)  
      protected java.lang.String getDescription​(javax.management.MBeanInfo info)  
      protected java.lang.String getDescription​(javax.management.MBeanOperationInfo op)  
      protected int getImpact​(javax.management.MBeanOperationInfo info)  
      private java.util.Properties getResources()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • interfaceName

        private final java.lang.String interfaceName
      • resources

        private java.util.Properties resources
    • Constructor Detail

      • DocumentedMBean

        public DocumentedMBean​(T impl,
                               java.lang.Class<T> mbeanInterface)
                        throws javax.management.NotCompliantMBeanException
        Throws:
        javax.management.NotCompliantMBeanException
    • Method Detail

      • getResources

        private java.util.Properties getResources()
      • getDescription

        protected java.lang.String getDescription​(javax.management.MBeanInfo info)
        Overrides:
        getDescription in class javax.management.StandardMBean
      • getDescription

        protected java.lang.String getDescription​(javax.management.MBeanOperationInfo op)
        Overrides:
        getDescription in class javax.management.StandardMBean
      • getDescription

        protected java.lang.String getDescription​(javax.management.MBeanAttributeInfo info)
        Overrides:
        getDescription in class javax.management.StandardMBean
      • getImpact

        protected int getImpact​(javax.management.MBeanOperationInfo info)
        Overrides:
        getImpact in class javax.management.StandardMBean