org.infinispan.jmx
Class ComponentsJmxRegistration

java.lang.Object
  extended by org.infinispan.jmx.ComponentsJmxRegistration

public class ComponentsJmxRegistration
extends Object

Registers a set of components on an MBean server.

Since:
4.0
Author:
Mircea.Markus@jboss.com, Galder ZamarreƱo

Field Summary
static String COMPONENT_KEY
           
static String NAME_KEY
           
 
Constructor Summary
ComponentsJmxRegistration(MBeanServer mBeanServer, Set<AbstractComponentRegistry.Component> components, String groupName)
          C-tor.
 
Method Summary
protected  ObjectName getObjectName(String resourceName)
           
static String getObjectName(String jmxDomain, String groupName, String resourceName)
           
 void registerMBeans()
          Performs the MBean registration.
 void setJmxDomain(String jmxDomain)
           
 void unregisterMBeans()
          Unregisters all the MBeans registered through registerMBeans().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_KEY

public static String COMPONENT_KEY

NAME_KEY

public static String NAME_KEY
Constructor Detail

ComponentsJmxRegistration

public ComponentsJmxRegistration(MBeanServer mBeanServer,
                                 Set<AbstractComponentRegistry.Component> components,
                                 String groupName)
C-tor.

Parameters:
mBeanServer - the server where mbeans are being registered
components - components
groupName - name of jmx group name
See Also:
ManagementFactory.getPlatformMBeanServer(), platform MBeanServer
Method Detail

setJmxDomain

public void setJmxDomain(String jmxDomain)

registerMBeans

public void registerMBeans()
                    throws CacheException
Performs the MBean registration.

Throws:
CacheException

unregisterMBeans

public void unregisterMBeans()
                      throws CacheException
Unregisters all the MBeans registered through registerMBeans().

Throws:
CacheException

getObjectName

protected ObjectName getObjectName(String resourceName)
                            throws Exception
Throws:
Exception

getObjectName

public static String getObjectName(String jmxDomain,
                                   String groupName,
                                   String resourceName)

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.