Class MBeanProxy

  • All Implemented Interfaces:
    javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean

    class MBeanProxy
    extends BaseModelMBean
    Use the same metadata, except that we replace the attribute get/set methods.
    • Field Detail

      • log

        private static org.apache.commons.logging.Log log
      • atts

        java.util.HashMap atts
    • Constructor Detail

      • MBeanProxy

        public MBeanProxy​(SimpleRemoteConnector jkmx,
                          java.lang.String code)
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • update

        protected void update​(java.lang.String name,
                              java.lang.String val)
        Called by the connector - will update the value when a chunk of data is received
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
                                      throws javax.management.AttributeNotFoundException,
                                             javax.management.MBeanException,
                                             javax.management.ReflectionException
        Description copied from class: BaseModelMBean
        Obtain and return the value of a specific attribute of this MBean.
        Specified by:
        getAttribute in interface javax.management.DynamicMBean
        Overrides:
        getAttribute in class BaseModelMBean
        Parameters:
        name - Name of the requested attribute
        Throws:
        javax.management.AttributeNotFoundException - if this attribute is not supported by this MBean
        javax.management.MBeanException - if the initializer of an object throws an exception
        javax.management.ReflectionException - if a Java reflection exception occurs when invoking the getter
      • setAttribute

        public void setAttribute​(javax.management.Attribute attribute)
                          throws javax.management.AttributeNotFoundException,
                                 javax.management.MBeanException,
                                 javax.management.ReflectionException
        Description copied from class: BaseModelMBean
        Set the value of a specific attribute of this MBean.
        Specified by:
        setAttribute in interface javax.management.DynamicMBean
        Overrides:
        setAttribute in class BaseModelMBean
        Parameters:
        attribute - The identification of the attribute to be set and the new value
        Throws:
        javax.management.AttributeNotFoundException - if this attribute is not supported by this MBean
        javax.management.MBeanException - if the initializer of an object throws an exception
        javax.management.ReflectionException - if a Java reflection exception occurs when invoking the getter
      • invoke

        public java.lang.Object invoke​(java.lang.String name,
                                       java.lang.Object[] params,
                                       java.lang.String[] signature)
                                throws javax.management.MBeanException,
                                       javax.management.ReflectionException
        Description copied from class: BaseModelMBean
        Invoke a particular method on this MBean, and return any returned value.

        IMPLEMENTATION NOTE - This implementation will attempt to invoke this method on the MBean itself, or (if not available) on the managed resource object associated with this MBean.

        Specified by:
        invoke in interface javax.management.DynamicMBean
        Overrides:
        invoke in class BaseModelMBean
        Parameters:
        name - Name of the operation to be invoked
        params - Array containing the method parameters of this operation
        signature - Array containing the class names representing the signature of this operation
        Throws:
        javax.management.MBeanException - if the initializer of an object throws an exception
        javax.management.ReflectionException