Top Description Fields Constructors Methods
net.sf.ehcache.management.sampled

public abstract Class SampledEhcacheMBeans

extends Object
Class Inheritance
Imports
javax.management.MalformedObjectNameException, .ObjectName, net.sf.ehcache.hibernate.management.impl.EhcacheHibernateMbeanNames

Utility class used for getting ObjectName's for sampled MBeans

Author
Abhishek Sanoujam
Since
1.7

Field Summary

Modifier and TypeField and Description
public static final String
GROUP_ID

Group id for all sampled mbeans registered

public static final String
SAMPLED_CACHE_MANAGER_TYPE

Type used for sampled cache manager mbean

public static final String
SAMPLED_CACHE_TYPE

Type used for sampled cache mbean

public static final String
STORE_TYPE

Type used for store mbean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
public static ObjectName

Returns:

An ObjectName using the input name of cache manager
getCacheManagerObjectName
(String clientUUID, String cacheManagerName)

Returns an ObjectName for the passed cacheManagerName

public static ObjectName

Returns:

An ObjectName representing the cache using the passed cache and the cache manager name
getCacheObjectName
(String clientUUID, String cacheManagerName, String cacheName)

Returns an ObjectName for the passed cacheManagerName, cacheName combination

public static ObjectName

Returns:

An ObjectName which can be used for querying all Cache ObjectName's for the input cache manager name
getQueryCacheManagerObjectName
(String clientUUID, String cacheManagerName)

Returns an ObjectName that can be used for querying all Cache ObjectName's for the passed cacheManagerName

public static ObjectName

Returns:

An ObjectName that can be used to query all ObjectName's of SampledCacheManager
getQueryCacheManagersObjectName
(String clientUUID)

Returns an ObjectName that can be used to query all objectNames of SAMPLED_CACHE_MANAGER_TYPE

pack-priv static ObjectName

Returns:

An ObjectName representing the cache using the passed cache and the cache manager name
getStoreObjectName
(String clientUUID, String cacheManagerName, String cacheName)

Returns an ObjectName for the passed cacheManagerName, cacheName combination

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GROUP_IDback to summary
public static final String GROUP_ID

Group id for all sampled mbeans registered

SAMPLED_CACHE_MANAGER_TYPEback to summary
public static final String SAMPLED_CACHE_MANAGER_TYPE

Type used for sampled cache manager mbean

SAMPLED_CACHE_TYPEback to summary
public static final String SAMPLED_CACHE_TYPE

Type used for sampled cache mbean

STORE_TYPEback to summary
public static final String STORE_TYPE

Type used for store mbean

Constructor Detail

SampledEhcacheMBeansback to summary
public SampledEhcacheMBeans()

Method Detail

getBeanNameSuffixback to summary
private static String getBeanNameSuffix(String clientUUID)
getCacheManagerObjectNameback to summary
public static ObjectName getCacheManagerObjectName(String clientUUID, String cacheManagerName) throws MalformedObjectNameException

Returns an ObjectName for the passed cacheManagerName

Returns:ObjectName

An ObjectName using the input name of cache manager

getCacheObjectNameback to summary
public static ObjectName getCacheObjectName(String clientUUID, String cacheManagerName, String cacheName) throws MalformedObjectNameException

Returns an ObjectName for the passed cacheManagerName, cacheName combination

Returns:ObjectName

An ObjectName representing the cache using the passed cache and the cache manager name

getQueryCacheManagerObjectNameback to summary
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

Returns:ObjectName

An ObjectName which can be used for querying all Cache ObjectName's for the input cache manager name

getQueryCacheManagersObjectNameback to summary
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:ObjectName

An ObjectName that can be used to query all ObjectName's of SampledCacheManager

getStoreObjectNameback to summary
pack-priv static ObjectName getStoreObjectName(String clientUUID, String cacheManagerName, String cacheName) throws MalformedObjectNameException

Returns an ObjectName for the passed cacheManagerName, cacheName combination

Returns:ObjectName

An ObjectName representing the cache using the passed cache and the cache manager name