Package org.infinispan.jmx
Class CacheJmxRegistration
- java.lang.Object
-
- org.infinispan.jmx.AbstractJmxRegistration
-
- org.infinispan.jmx.CacheJmxRegistration
-
public class CacheJmxRegistration extends AbstractJmxRegistration
IfConfiguration.jmxStatistics()
is enabled, then class will register all the MBeans from cache local's ConfigurationRegistry to the MBean server.- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com, Galder ZamarreƱo
- See Also:
ManagementFactory.getPlatformMBeanServer()
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_JMX_GROUP
CacheManagerJmxRegistration
globalJmxRegistration
-
Fields inherited from class org.infinispan.jmx.AbstractJmxRegistration
registrar
-
-
Constructor Summary
Constructors Constructor Description CacheJmxRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComponentsJmxRegistration
buildRegistrar()
protected Collection<ResourceDMBean>
getNonCacheComponents(Collection<ResourceDMBean> components)
void
setUnregisterCacheMBean(boolean unregisterCacheMBean)
void
start()
Here is where the registration is being performed.void
stop()
Unregister when the cache is being stopped.protected void
updateDomain(ComponentsJmxRegistration registrar, MBeanServer mBeanServer, String groupName, CacheManagerJmxRegistration globalJmxRegistration)
-
Methods inherited from class org.infinispan.jmx.AbstractJmxRegistration
getResourceDMBean, getResourceDMBean, getResourceDMBeansFromComponents, initMBeanServer, unregisterMBeans
-
-
-
-
Field Detail
-
CACHE_JMX_GROUP
public static final String CACHE_JMX_GROUP
- See Also:
- Constant Field Values
-
globalJmxRegistration
public CacheManagerJmxRegistration globalJmxRegistration
-
-
Method Detail
-
start
public void start()
Here is where the registration is being performed.
-
stop
public void stop()
Unregister when the cache is being stopped.
-
setUnregisterCacheMBean
public void setUnregisterCacheMBean(boolean unregisterCacheMBean)
-
buildRegistrar
protected ComponentsJmxRegistration buildRegistrar()
- Specified by:
buildRegistrar
in classAbstractJmxRegistration
-
updateDomain
protected void updateDomain(ComponentsJmxRegistration registrar, MBeanServer mBeanServer, String groupName, CacheManagerJmxRegistration globalJmxRegistration)
-
getNonCacheComponents
protected Collection<ResourceDMBean> getNonCacheComponents(Collection<ResourceDMBean> components)
-
-