public final class ManagementUtil extends Object
Utility class for dealing with management and statistics MXBeans.
Modifier and Type | Method and Description |
---|---|
static void |
registerConfiguration(CouchbaseCache<?,?> cache,
javax.cache.management.CacheMXBean mxBean)
Register the configuration
CacheMXBean for the given cache. |
static void |
registerStatistics(CouchbaseCache<?,?> cache,
javax.cache.management.CacheStatisticsMXBean mxBean)
Register the
CacheStatisticsMXBean for the given cache. |
static void |
unregisterConfiguration(CouchbaseCache<?,?> cache)
Un-register the configuration MXBean for the given cache.
|
static void |
unregisterStatistics(CouchbaseCache<?,?> cache)
Un-register the statistics MXBean for the given cache.
|
public static void registerStatistics(CouchbaseCache<?,?> cache, javax.cache.management.CacheStatisticsMXBean mxBean)
Register the CacheStatisticsMXBean
for the given cache.
cache
- the cache for which to register statisticsmxBean
- the statistics MXBeanpublic static void registerConfiguration(CouchbaseCache<?,?> cache, javax.cache.management.CacheMXBean mxBean)
Register the configuration CacheMXBean
for the given cache.
cache
- the cache for which to register configurationmxBean
- the configuration MXBeanpublic static void unregisterStatistics(CouchbaseCache<?,?> cache)
Un-register the statistics MXBean for the given cache.
cache
- the cache for which to un-register statisticspublic static void unregisterConfiguration(CouchbaseCache<?,?> cache)
Un-register the configuration MXBean for the given cache.
cache
- the cache for which to un-register configurationCopyright © 2014 Couchbase, Inc.