public class ComponentsJmxRegistration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_KEY |
static String |
NAME_KEY |
Constructor and Description |
---|
ComponentsJmxRegistration(MBeanServer mBeanServer,
Set<AbstractComponentRegistry.Component> components,
String groupName)
C-tor.
|
Modifier and Type | Method and Description |
---|---|
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() . |
public static String COMPONENT_KEY
public static String NAME_KEY
public ComponentsJmxRegistration(MBeanServer mBeanServer, Set<AbstractComponentRegistry.Component> components, String groupName)
mBeanServer
- the server where mbeans are being registeredcomponents
- componentsgroupName
- name of jmx group nameManagementFactory.getPlatformMBeanServer()
,
platform
MBeanServerpublic void setJmxDomain(String jmxDomain)
public void registerMBeans() throws CacheException
CacheException
public void unregisterMBeans() throws CacheException
registerMBeans()
.CacheException
protected ObjectName getObjectName(String resourceName) throws Exception
Exception
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.