ehcache

net.sf.ehcache.management.sampled
Class SampledEhcacheMBeans

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

public abstract class SampledEhcacheMBeans
extends java.lang.Object

Utility class used for getting ObjectName's for sampled MBeans

Since:
1.7
Author:
Abhishek Sanoujam

Field Summary
static java.lang.String GROUP_ID
          Group id for all sampled mbeans registered
static java.lang.String SAMPLED_CACHE_MANAGER_TYPE
          Type used for sampled cache manager mbean
static java.lang.String SAMPLED_CACHE_TYPE
          Type used for sampled cache mbean
 
Constructor Summary
SampledEhcacheMBeans()
           
 
Method Summary
static javax.management.ObjectName getCacheManagerObjectName(ClusteredInstanceFactory clusteredInstanceFactory, java.lang.String cacheManagerName)
          Returns an ObjectName for the passed cacheManagerName
static javax.management.ObjectName getCacheObjectName(ClusteredInstanceFactory clusteredInstanceFactory, java.lang.String cacheManagerName, java.lang.String cacheName)
          Returns an ObjectName for the passed cacheManagerName, cacheName combination
static javax.management.ObjectName getQueryCacheManagerObjectName(ClusteredInstanceFactory clusteredInstanceFactory, java.lang.String cacheManagerName)
          Returns an ObjectName that can be used for querying all Cache ObjectName's for the passed cacheManagerName
static javax.management.ObjectName getQueryCacheManagersObjectName(ClusteredInstanceFactory clusteredInstanceFactory)
          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 java.lang.String SAMPLED_CACHE_MANAGER_TYPE
Type used for sampled cache manager mbean

See Also:
Constant Field Values

SAMPLED_CACHE_TYPE

public static final java.lang.String SAMPLED_CACHE_TYPE
Type used for sampled cache mbean

See Also:
Constant Field Values

GROUP_ID

public static final java.lang.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 javax.management.ObjectName getCacheManagerObjectName(ClusteredInstanceFactory clusteredInstanceFactory,
                                                                    java.lang.String cacheManagerName)
                                                             throws javax.management.MalformedObjectNameException
Returns an ObjectName for the passed cacheManagerName

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

getCacheObjectName

public static javax.management.ObjectName getCacheObjectName(ClusteredInstanceFactory clusteredInstanceFactory,
                                                             java.lang.String cacheManagerName,
                                                             java.lang.String cacheName)
                                                      throws javax.management.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:
javax.management.MalformedObjectNameException

getQueryCacheManagerObjectName

public static javax.management.ObjectName getQueryCacheManagerObjectName(ClusteredInstanceFactory clusteredInstanceFactory,
                                                                         java.lang.String cacheManagerName)
                                                                  throws javax.management.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:
javax.management.MalformedObjectNameException

getQueryCacheManagersObjectName

public static javax.management.ObjectName getQueryCacheManagersObjectName(ClusteredInstanceFactory clusteredInstanceFactory)
                                                                   throws javax.management.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:
javax.management.MalformedObjectNameException

ehcache

true