com.hazelcast.cache.impl
Class MXBeanUtil

java.lang.Object
  extended by com.hazelcast.cache.impl.MXBeanUtil

public final class MXBeanUtil
extends Object

MXBean utility methods related to registration of the beans.


Method Summary
static ObjectName calculateObjectName(String cacheManagerName, String name, boolean stats)
          Creates an object name using the scheme.
static void registerCacheObject(Object mxbean, String cacheManagerName, String name, boolean stats)
          Registers the provided CacheMXBean or CacheStatisticsMXBean implementations if not registered yet.
static void unregisterCacheObject(String cacheManagerName, String name, boolean stats)
          UnRegisters the mxbean if registered already.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

registerCacheObject

public static void registerCacheObject(Object mxbean,
                                       String cacheManagerName,
                                       String name,
                                       boolean stats)
Registers the provided CacheMXBean or CacheStatisticsMXBean implementations if not registered yet.

Parameters:
mxbean - CacheMXBean or CacheStatisticsMXBean.
cacheManagerName - name generated by URI and classloader.
name - cache name.
stats - is mxbean parameter, a statistics mxbean.

unregisterCacheObject

public static void unregisterCacheObject(String cacheManagerName,
                                         String name,
                                         boolean stats)
UnRegisters the mxbean if registered already.

Parameters:
cacheManagerName - name generated by URI and classloader.
name - cache name.
stats - is mxbean, a statistics mxbean.

calculateObjectName

public static ObjectName calculateObjectName(String cacheManagerName,
                                             String name,
                                             boolean stats)
Creates an object name using the scheme. "javax.cache:type=Cache<Statistics|Configuration>,name=<cacheName>"



Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.