Class ComponentsJmxRegistration


  • public class ComponentsJmxRegistration
    extends java.lang.Object
    Registers a set of components on an MBean server.
    Since:
    4.0
    Author:
    Mircea.Markus@jboss.com, Galder ZamarreƱo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMPONENT_KEY  
      static java.lang.String NAME_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentsJmxRegistration​(javax.management.MBeanServer mBeanServer, java.lang.String groupName)
      C-tor.
    • Field Detail

      • COMPONENT_KEY

        public static java.lang.String COMPONENT_KEY
      • NAME_KEY

        public static java.lang.String NAME_KEY
    • Constructor Detail

      • ComponentsJmxRegistration

        public ComponentsJmxRegistration​(javax.management.MBeanServer mBeanServer,
                                         java.lang.String groupName)
        C-tor.
        Parameters:
        mBeanServer - the server where mbeans are being registered
        groupName - name of jmx group name
        See Also:
        ManagementFactory.getPlatformMBeanServer(), platform MBeanServer
    • Method Detail

      • setJmxDomain

        public void setJmxDomain​(java.lang.String jmxDomain)
      • registerMBeans

        public void registerMBeans​(java.util.Collection<ResourceDMBean> resourceDMBeans)
                            throws CacheException
        Performs the MBean registration.
        Parameters:
        resourceDMBeans -
        Throws:
        CacheException
      • getObjectName

        protected javax.management.ObjectName getObjectName​(java.lang.String resourceName)
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getObjectName

        public static java.lang.String getObjectName​(java.lang.String jmxDomain,
                                                     java.lang.String groupName,
                                                     java.lang.String resourceName)