org.infinispan.jmx
Class CacheJmxRegistration

java.lang.Object
  extended by org.infinispan.jmx.AbstractJmxRegistration
      extended by org.infinispan.jmx.CacheJmxRegistration

public class CacheJmxRegistration
extends AbstractJmxRegistration

If Configuration.isExposeJmxStatistics() is true, 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
static String CACHE_JMX_GROUP
           
 
Constructor Summary
CacheJmxRegistration()
           
 
Method Summary
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)
           
 
Methods inherited from class org.infinispan.jmx.AbstractJmxRegistration
getJmxDomain, getMBeanServer, registerMBeans, unregisterMBeans
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_JMX_GROUP

public static final String CACHE_JMX_GROUP
See Also:
Constant Field Values
Constructor Detail

CacheJmxRegistration

public CacheJmxRegistration()
Method Detail

initialize

public void initialize(Cache cache,
                       GlobalConfiguration globalConfig)

start

public void start()
Here is where the registration is being performed.


stop

public void stop()
Unregister when the cache is being stoped.


unregisterCacheMBean

public void unregisterCacheMBean()

buildRegistrar

protected ComponentsJmxRegistration buildRegistrar(Set<AbstractComponentRegistry.Component> components)
Specified by:
buildRegistrar in class AbstractJmxRegistration

updateDomain

protected void updateDomain(ComponentsJmxRegistration registrar,
                            GlobalComponentRegistry componentRegistry,
                            MBeanServer mBeanServer,
                            String groupName)

getNonCacheComponents

protected Set<AbstractComponentRegistry.Component> getNonCacheComponents(Set<AbstractComponentRegistry.Component> components)


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.