org.infinispan.jmx
Class ComponentsJmxRegistration
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_NAME_KEY
public static final String CACHE_NAME_KEY
- See Also:
- Constant Field Values
JMX_RESOURCE_KEY
public static final String JMX_RESOURCE_KEY
- See Also:
- Constant Field Values
ComponentsJmxRegistration
public ComponentsJmxRegistration(MBeanServer mBeanServer,
Set<AbstractComponentRegistry.Component> components,
String groupName)
- C-tor.
- Parameters:
mBeanServer
- the server where mbeans are being registeredcomponents
- componentsgroupName
- group name- See Also:
ManagementFactory.getPlatformMBeanServer()
,
platform
MBeanServer
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
public String getObjectName(String resourceName)
getObjectName
public static String getObjectName(String jmxDomain,
String groupName,
String resourceName)
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.