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 boolean |
isRegistered(String cacheManagerName,
String name,
boolean stats) |
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 boolean isRegistered(String cacheManagerName, String name, boolean stats)
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 © 2020 Hazelcast, Inc.. All Rights Reserved.