org.terracotta.modules.ehcache.jmx
Class EhcacheStatsUtils

java.lang.Object
  extended by org.terracotta.modules.ehcache.jmx.EhcacheStatsUtils

public abstract class EhcacheStatsUtils
extends Object


Field Summary
static String EHCACHE_DOMAIN
           
static String SAMPLED_CACHE_BEAN_NAME_PREFIX
           
static String SAMPLED_CACHE_MANAGER_BEAN_NAME_PREFIX
           
 
Constructor Summary
EhcacheStatsUtils()
           
 
Method Summary
static ObjectName getSampledCacheBeanName(String cacheManagerName, String cacheName)
           
static ObjectName getSampledCacheManagerBeanName(String name)
           
static String mbeanSafe(String s)
           
static ObjectName renameKey(ObjectName beanName, String oldKey, String newKey)
           
static ObjectName replaceKey(ObjectName beanName, String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EHCACHE_DOMAIN

public static final String EHCACHE_DOMAIN
See Also:
Constant Field Values

SAMPLED_CACHE_MANAGER_BEAN_NAME_PREFIX

public static final String SAMPLED_CACHE_MANAGER_BEAN_NAME_PREFIX
See Also:
Constant Field Values

SAMPLED_CACHE_BEAN_NAME_PREFIX

public static final String SAMPLED_CACHE_BEAN_NAME_PREFIX
See Also:
Constant Field Values
Constructor Detail

EhcacheStatsUtils

public EhcacheStatsUtils()
Method Detail

mbeanSafe

public static String mbeanSafe(String s)

getSampledCacheManagerBeanName

public static ObjectName getSampledCacheManagerBeanName(String name)
                                                 throws MalformedObjectNameException
Throws:
MalformedObjectNameException

getSampledCacheBeanName

public static ObjectName getSampledCacheBeanName(String cacheManagerName,
                                                 String cacheName)
                                          throws MalformedObjectNameException
Throws:
MalformedObjectNameException

replaceKey

public static ObjectName replaceKey(ObjectName beanName,
                                    String key,
                                    String value)

renameKey

public static ObjectName renameKey(ObjectName beanName,
                                   String oldKey,
                                   String newKey)


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.