ehcache

net.sf.ehcache.management.sampled
Class SampledEhcacheMBeans

java.lang.Object
  extended by net.sf.ehcache.management.sampled.SampledEhcacheMBeans

public abstract class SampledEhcacheMBeans
extends Object

Utility class used for getting ObjectName's for sampled MBeans

Since:
1.7
Author:
Abhishek Sanoujam

Field Summary
static String GROUP_ID
          Group id for all sampled mbeans registered
static String SAMPLED_CACHE_MANAGER_TYPE
          Type used for sampled cache manager mbean
static String SAMPLED_CACHE_TYPE
          Type used for sampled cache mbean
static String STORE_TYPE
          Type used for store mbean
 
Constructor Summary
SampledEhcacheMBeans()
           
 
Method Summary
static ObjectName getCacheManagerObjectName(String clientUUID, String cacheManagerName)
          Returns an ObjectName for the passed cacheManagerName
static ObjectName getCacheObjectName(String clientUUID, String cacheManagerName, String cacheName)
          Returns an ObjectName for the passed cacheManagerName, cacheName combination
static ObjectName getQueryCacheManagerObjectName(String clientUUID, String cacheManagerName)
          Returns an ObjectName that can be used for querying all Cache ObjectName's for the passed cacheManagerName
static ObjectName getQueryCacheManagersObjectName(String clientUUID)
          Returns an ObjectName that can be used to query all objectNames of SAMPLED_CACHE_MANAGER_TYPE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAMPLED_CACHE_MANAGER_TYPE

public static final String SAMPLED_CACHE_MANAGER_TYPE
Type used for sampled cache manager mbean

See Also:
Constant Field Values

SAMPLED_CACHE_TYPE

public static final String SAMPLED_CACHE_TYPE
Type used for sampled cache mbean

See Also:
Constant Field Values

STORE_TYPE

public static final String STORE_TYPE
Type used for store mbean

See Also:
Constant Field Values

GROUP_ID

public static final String GROUP_ID
Group id for all sampled mbeans registered

See Also:
Constant Field Values
Constructor Detail

SampledEhcacheMBeans

public SampledEhcacheMBeans()
Method Detail

getCacheManagerObjectName

public static ObjectName getCacheManagerObjectName(String clientUUID,
                                                   String cacheManagerName)
                                            throws MalformedObjectNameException
Returns an ObjectName for the passed cacheManagerName

Parameters:
cacheManagerName -
Returns:
An ObjectName using the input name of cache manager
Throws:
MalformedObjectNameException

getCacheObjectName

public static ObjectName getCacheObjectName(String clientUUID,
                                            String cacheManagerName,
                                            String cacheName)
                                     throws MalformedObjectNameException
Returns an ObjectName for the passed cacheManagerName, cacheName combination

Parameters:
cacheManagerName -
cacheName -
Returns:
An ObjectName representing the cache using the passed cache and the cache manager name
Throws:
MalformedObjectNameException

getQueryCacheManagerObjectName

public static ObjectName getQueryCacheManagerObjectName(String clientUUID,
                                                        String cacheManagerName)
                                                 throws MalformedObjectNameException
Returns an ObjectName that can be used for querying all Cache ObjectName's for the passed cacheManagerName

Parameters:
cacheManagerName -
Returns:
An ObjectName which can be used for querying all Cache ObjectName's for the input cache manager name
Throws:
MalformedObjectNameException

getQueryCacheManagersObjectName

public static ObjectName getQueryCacheManagersObjectName(String clientUUID)
                                                  throws MalformedObjectNameException
Returns an ObjectName that can be used to query all objectNames of SAMPLED_CACHE_MANAGER_TYPE

Returns:
An ObjectName that can be used to query all ObjectName's of "SampledCacheManager"
Throws:
MalformedObjectNameException

ehcache

Copyright 2001-2015, Terracotta, Inc.