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()

Constructor Summary
CacheJmxRegistration()
           
 
Method Summary
protected  ComponentsJmxRegistration buildRegistrar(Set<AbstractComponentRegistry.Component> components)
           
protected  Set<AbstractComponentRegistry.Component> getNonCacheComponents(Set<AbstractComponentRegistry.Component> components)
           
 void initialize(AdvancedCache 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)
           
 
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
 

Constructor Detail

CacheJmxRegistration

public CacheJmxRegistration()
Method Detail

initialize

public void initialize(AdvancedCache 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)

getNonCacheComponents

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

Google Analytics

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