public class CacheJmxRegistration extends AbstractJmxRegistration
Configuration.isExposeJmxStatistics()
is true, then class will register all the MBeans from cache local's
ConfigurationRegistry to the MBean server.ManagementFactory.getPlatformMBeanServer()
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_JMX_GROUP |
Constructor and Description |
---|
CacheJmxRegistration() |
Modifier and Type | Method and Description |
---|---|
protected ComponentsJmxRegistration |
buildRegistrar(Set<AbstractComponentRegistry.Component> components) |
protected Set<AbstractComponentRegistry.Component> |
getNonCacheComponents(Set<AbstractComponentRegistry.Component> components) |
void |
initialize(Cache<?,?> cache,
GlobalConfiguration globalConfig) |
void |
start()
Here is where the registration is being performed.
|
void |
stop()
Unregister when the cache is being stoped.
|
void |
unregisterCacheMBean() |
protected void |
updateDomain(ComponentsJmxRegistration registrar,
GlobalComponentRegistry componentRegistry,
MBeanServer mBeanServer,
String groupName) |
registerMBeans, unregisterMBeans
public static final String CACHE_JMX_GROUP
public void initialize(Cache<?,?> cache, GlobalConfiguration globalConfig)
public void start()
public void stop()
public void unregisterCacheMBean()
protected ComponentsJmxRegistration buildRegistrar(Set<AbstractComponentRegistry.Component> components)
buildRegistrar
in class AbstractJmxRegistration
protected void updateDomain(ComponentsJmxRegistration registrar, GlobalComponentRegistry componentRegistry, MBeanServer mBeanServer, String groupName)
protected Set<AbstractComponentRegistry.Component> getNonCacheComponents(Set<AbstractComponentRegistry.Component> components)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.