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
-
Constructor Summary
Constructors Constructor Description CacheJmxRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComponentsJmxRegistration
buildRegistrar(Set<AbstractComponentRegistry.Component> components)
protected Set<AbstractComponentRegistry.Component>
getNonCacheComponents(Set<AbstractComponentRegistry.Component> components)
void
setUnregisterCacheMBean(boolean unregisterCacheMBean)
void
start()
Here is where the registration is being performed.void
stop()
Unregister when the cache is being stopped.void
unregisterCacheMBean()
protected void
updateDomain(ComponentsJmxRegistration registrar, GlobalComponentRegistry componentRegistry, MBeanServer mBeanServer, String groupName)
-
Methods inherited from class org.infinispan.jmx.AbstractJmxRegistration
registerMBeans, unregisterMBeans
-
-
-
-
Field Detail
-
CACHE_JMX_GROUP
public static final String CACHE_JMX_GROUP
- See Also:
- Constant Field Values
-
-
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.
-
unregisterCacheMBean
public void unregisterCacheMBean()
-
setUnregisterCacheMBean
public void setUnregisterCacheMBean(boolean unregisterCacheMBean)
-
buildRegistrar
protected ComponentsJmxRegistration buildRegistrar(Set<AbstractComponentRegistry.Component> components)
- Specified by:
buildRegistrar
in classAbstractJmxRegistration
-
updateDomain
protected void updateDomain(ComponentsJmxRegistration registrar, GlobalComponentRegistry componentRegistry, MBeanServer mBeanServer, String groupName)
-
getNonCacheComponents
protected Set<AbstractComponentRegistry.Component> getNonCacheComponents(Set<AbstractComponentRegistry.Component> components)
-
-