org.jboss.cache.jmx
Class PlatformMBeanServerRegistration

java.lang.Object
  extended by org.jboss.cache.jmx.PlatformMBeanServerRegistration

public class PlatformMBeanServerRegistration
extends Object

If Configuration.getExposeManagementStatistics() is true, then class will register all the MBeans from the ConfigurationRegistry to the pltform MBean server.

Note: to enable platform MBeanServer the following system property should be passet to the JVM: -Dcom.sun.management.jmxremote.

Since:
3.0
Author:
Mircea.Markus@jboss.com
See Also:
ManagementFactory.getPlatformMBeanServer()

Constructor Summary
PlatformMBeanServerRegistration()
           
 
Method Summary
 void initialize(CacheSPI cache)
           
 void registerToPlatformMBeanServer()
          Here is where the registration is being performed.
 void unregisterMBeans()
          Unregister when the cache is being stoped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformMBeanServerRegistration

public PlatformMBeanServerRegistration()
Method Detail

initialize

public void initialize(CacheSPI cache)

registerToPlatformMBeanServer

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


unregisterMBeans

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



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