Class ProxiedDynamicMBean

  • All Implemented Interfaces:
    javax.management.DynamicMBean
    Direct Known Subclasses:
    ExtendedStatisticsMBean

    public class ProxiedDynamicMBean
    extends java.lang.Object
    implements javax.management.DynamicMBean
    The ProxiedDynamicMBean. Supports truly dynamic mbeans in an easy manner.
    Author:
    cschanck
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxiedDynamicMBean​(java.lang.String beanName, java.lang.String beanDescription, java.util.Collection<AttributeProxy> attributeStandins)
      Instantiates a new proxied dynamic m bean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String name)
      Get a specific attribtue
      javax.management.AttributeList getAttributes​(java.lang.String[] names)
      Get a list of attributes.
      java.lang.String getBeanName()
      Gets the bean name.
      javax.management.MBeanInfo getMBeanInfo()
      Accessor for mbean info
      void initialize​(java.util.Collection<AttributeProxy> attributeStandins)
      Initialize.
      java.lang.Object invoke​(java.lang.String name, java.lang.Object[] args, java.lang.String[] sig)
      Not implemented.
      void setAttribute​(javax.management.Attribute attribute)
      Set an attribtue by name
      javax.management.AttributeList setAttributes​(javax.management.AttributeList list)
      Set an attribute list.
      • Methods inherited from class java.lang.Object

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

      • ProxiedDynamicMBean

        public ProxiedDynamicMBean​(java.lang.String beanName,
                                   java.lang.String beanDescription,
                                   java.util.Collection<AttributeProxy> attributeStandins)
        Instantiates a new proxied dynamic m bean.
        Parameters:
        beanName - the bean name
        beanDescription - the bean description
        attributeStandins - the attribute standins
    • Method Detail

      • initialize

        public void initialize​(java.util.Collection<AttributeProxy> attributeStandins)
        Initialize.
        Parameters:
        attributeStandins - the attribute standins
      • getBeanName

        public java.lang.String getBeanName()
        Gets the bean name.
        Returns:
        the bean name
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
                                      throws javax.management.AttributeNotFoundException
        Get a specific attribtue
        Specified by:
        getAttribute in interface javax.management.DynamicMBean
        Throws:
        javax.management.AttributeNotFoundException
      • setAttribute

        public void setAttribute​(javax.management.Attribute attribute)
                          throws javax.management.InvalidAttributeValueException,
                                 javax.management.MBeanException,
                                 javax.management.AttributeNotFoundException
        Set an attribtue by name
        Specified by:
        setAttribute in interface javax.management.DynamicMBean
        Throws:
        javax.management.InvalidAttributeValueException
        javax.management.MBeanException
        javax.management.AttributeNotFoundException
      • getAttributes

        public javax.management.AttributeList getAttributes​(java.lang.String[] names)
        Get a list of attributes.
        Specified by:
        getAttributes in interface javax.management.DynamicMBean
      • setAttributes

        public javax.management.AttributeList setAttributes​(javax.management.AttributeList list)
        Set an attribute list.
        Specified by:
        setAttributes in interface javax.management.DynamicMBean
      • invoke

        public java.lang.Object invoke​(java.lang.String name,
                                       java.lang.Object[] args,
                                       java.lang.String[] sig)
                                throws javax.management.MBeanException,
                                       javax.management.ReflectionException
        Not implemented.
        Specified by:
        invoke in interface javax.management.DynamicMBean
        Throws:
        javax.management.MBeanException
        javax.management.ReflectionException
      • getMBeanInfo

        public javax.management.MBeanInfo getMBeanInfo()
        Accessor for mbean info
        Specified by:
        getMBeanInfo in interface javax.management.DynamicMBean