Class MBeanServerManagerImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMBeanManyRelation​(java.lang.String attributeName, java.lang.Object parentObject, java.lang.Object childObject)
      Adds a bean relationship which links a parentObject to a childObject, this has to be added to an existing one-to-many relationship
      void createMBeanManyRelation​(java.lang.String attributeName, java.lang.String description, java.lang.Object parentObject)
      Creates an empty one-to-many bean relation for a parentObject with an attribute name
      void createMBeanOneRelation​(java.lang.String attributeName, java.lang.String description, java.lang.Object parentObject, java.lang.Object childObject)
      Creates an one-to-one bean relation linking a parentObject to a childObject with an attribute name
      void notifyLongAttributeChanged​(java.lang.String attributeName, java.lang.Long delta)
      Notifies registered listeners of long attribute changes
      void notifyMBeanAttributeChanged​(java.lang.String attributeName, java.lang.Object object, java.lang.Object oldValue, java.lang.Object newValue)
      Notifies JMX Clients of a change to a specified attribute
      void registerLongAttributeChangedListener​(java.lang.String attributeName, LongAttributeListener longAttributeListener)
      Registers listeners for long attribute changes
      void registerMBean​(java.lang.Object object)
      Registers a JMXBean annotated object as a JMXBeanWrapper to the MBeanServer
      void removeMBeanManyRelation​(java.lang.String attributeName, java.lang.Object parentObject, java.lang.Object childObject)
      Removes bean one-to-many relation for attribute between a parentObject and childObject
      void unregisterMBean​(java.lang.Object object)
      Unregisters a JMXBean annotated object as a JMXBeanWrapper from the MBeanServer
      • Methods inherited from class java.lang.Object

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

      • notifyMBeanAttributeChanged

        public void notifyMBeanAttributeChanged​(java.lang.String attributeName,
                                                java.lang.Object object,
                                                java.lang.Object oldValue,
                                                java.lang.Object newValue)
        Description copied from interface: MBeanServerManager
        Notifies JMX Clients of a change to a specified attribute
        Specified by:
        notifyMBeanAttributeChanged in interface MBeanServerManager
        Parameters:
        attributeName - attribute that has changed
        object - object to which changed attribute belongs
        oldValue - original value
        newValue - updated value
      • createMBeanOneRelation

        public void createMBeanOneRelation​(java.lang.String attributeName,
                                           java.lang.String description,
                                           java.lang.Object parentObject,
                                           java.lang.Object childObject)
        Description copied from interface: MBeanServerManager
        Creates an one-to-one bean relation linking a parentObject to a childObject with an attribute name
        Specified by:
        createMBeanOneRelation in interface MBeanServerManager
        Parameters:
        attributeName - relation attribute name
        description - description provided to JMX client of this attribute
        parentObject - JMXBean annotated object relation is registered with
        childObject - JMXBean annotated object returned upon requesting the relation
      • createMBeanManyRelation

        public void createMBeanManyRelation​(java.lang.String attributeName,
                                            java.lang.String description,
                                            java.lang.Object parentObject)
        Description copied from interface: MBeanServerManager
        Creates an empty one-to-many bean relation for a parentObject with an attribute name
        Specified by:
        createMBeanManyRelation in interface MBeanServerManager
        Parameters:
        attributeName - relation attribute name
        description - description provided to JMX client of this attribute
        parentObject - JMXBean annotated object relation is registered with
      • addMBeanManyRelation

        public void addMBeanManyRelation​(java.lang.String attributeName,
                                         java.lang.Object parentObject,
                                         java.lang.Object childObject)
        Description copied from interface: MBeanServerManager
        Adds a bean relationship which links a parentObject to a childObject, this has to be added to an existing one-to-many relationship
        Specified by:
        addMBeanManyRelation in interface MBeanServerManager
        Parameters:
        attributeName - relation attribute name
        parentObject - JMXBean annotated object relation is registered with
        childObject - JMXBean annotated object returned upon requesting the relation
      • removeMBeanManyRelation

        public void removeMBeanManyRelation​(java.lang.String attributeName,
                                            java.lang.Object parentObject,
                                            java.lang.Object childObject)
        Description copied from interface: MBeanServerManager
        Removes bean one-to-many relation for attribute between a parentObject and childObject
        Specified by:
        removeMBeanManyRelation in interface MBeanServerManager
        Parameters:
        attributeName - attribute for which to remove link
        parentObject - object from which relation will be removed
        childObject - object to which relation is linked
      • registerLongAttributeChangedListener

        public void registerLongAttributeChangedListener​(java.lang.String attributeName,
                                                         LongAttributeListener longAttributeListener)
        Description copied from interface: MBeanServerManager
        Registers listeners for long attribute changes
        Specified by:
        registerLongAttributeChangedListener in interface MBeanServerManager
        Parameters:
        attributeName - attribute to listen for changes to
        longAttributeListener - listener to receive callbacks upon changes to attribute
      • notifyLongAttributeChanged

        public void notifyLongAttributeChanged​(java.lang.String attributeName,
                                               java.lang.Long delta)
        Description copied from interface: MBeanServerManager
        Notifies registered listeners of long attribute changes
        Specified by:
        notifyLongAttributeChanged in interface MBeanServerManager
        Parameters:
        attributeName - changed attribute
        delta - change in attribute