com.hazelcast.cache.impl
public final class MXBeanUtil extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static void registerCacheObject(Object mxbean, String cacheManagerName, String name, boolean stats)
CacheMXBean
or
CacheStatisticsMXBean
implementations if not registered yet.mxbean
- CacheMXBean
or CacheStatisticsMXBean
.cacheManagerName
- name generated by URI and classloader.name
- cache name.stats
- is mxbean parameter, a statistics mxbean.public static void unregisterCacheObject(String cacheManagerName, String name, boolean stats)
cacheManagerName
- name generated by URI and classloader.name
- cache name.stats
- is mxbean, a statistics mxbean.public static ObjectName calculateObjectName(String cacheManagerName, String name, boolean stats)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.