org.ehcache.management.registry
Class DefaultManagementRegistryConfiguration

java.lang.Object
  extended by org.ehcache.management.registry.DefaultManagementRegistryConfiguration
All Implemented Interfaces:
ManagementRegistryConfiguration, ServiceCreationConfiguration<ManagementRegistry>

public class DefaultManagementRegistryConfiguration
extends java.lang.Object
implements ManagementRegistryConfiguration


Constructor Summary
DefaultManagementRegistryConfiguration()
           
 
Method Summary
 DefaultManagementRegistryConfiguration addConfiguration(StatisticsProviderConfiguration<?> configuration)
           
 java.lang.String getCacheManagerAlias()
          Gets the alias to use for the cache manager when using the SharedManagementService.
 StatisticsProviderConfiguration getConfigurationFor(java.lang.Class<? extends ManagementProvider<?>> managementProviderClass)
          Returns the configuration of a specific ManagementProvider type.
 java.lang.Class<ManagementRegistry> getServiceType()
          Indicates which service consumes this configuration at creation.
 java.lang.String getStatisticsExecutorAlias()
          Gets the alias of the executor to use for asynchronous statistics tasks.
 DefaultManagementRegistryConfiguration setCacheManagerAlias(java.lang.String alias)
           
 DefaultManagementRegistryConfiguration setStatisticsExecutorAlias(java.lang.String alias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultManagementRegistryConfiguration

public DefaultManagementRegistryConfiguration()
Method Detail

setCacheManagerAlias

public DefaultManagementRegistryConfiguration setCacheManagerAlias(java.lang.String alias)

setStatisticsExecutorAlias

public DefaultManagementRegistryConfiguration setStatisticsExecutorAlias(java.lang.String alias)

addConfiguration

public DefaultManagementRegistryConfiguration addConfiguration(StatisticsProviderConfiguration<?> configuration)

getCacheManagerAlias

public java.lang.String getCacheManagerAlias()
Description copied from interface: ManagementRegistryConfiguration
Gets the alias to use for the cache manager when using the SharedManagementService.

Specified by:
getCacheManagerAlias in interface ManagementRegistryConfiguration
Returns:
The cache manager alias that will be used in the context to call methods from SharedManagementService

getStatisticsExecutorAlias

public java.lang.String getStatisticsExecutorAlias()
Description copied from interface: ManagementRegistryConfiguration
Gets the alias of the executor to use for asynchronous statistics tasks.

Specified by:
getStatisticsExecutorAlias in interface ManagementRegistryConfiguration
Returns:
The static executor alias

getConfigurationFor

public StatisticsProviderConfiguration getConfigurationFor(java.lang.Class<? extends ManagementProvider<?>> managementProviderClass)
Description copied from interface: ManagementRegistryConfiguration
Returns the configuration of a specific ManagementProvider type.

Specified by:
getConfigurationFor in interface ManagementRegistryConfiguration
Parameters:
managementProviderClass - The type of the class managing statistics, capabilities, actions, etc.
Returns:
The configuration class to use for this manager type

getServiceType

public java.lang.Class<ManagementRegistry> getServiceType()
Description copied from interface: ServiceCreationConfiguration
Indicates which service consumes this configuration at creation.

Specified by:
getServiceType in interface ServiceCreationConfiguration<ManagementRegistry>
Returns:
the service type