org.ehcache.management.registry
Class DefaultManagementRegistryConfiguration

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

public class DefaultManagementRegistryConfiguration
extends java.lang.Object
implements ManagementRegistryServiceConfiguration


Constructor Summary
DefaultManagementRegistryConfiguration()
           
 
Method Summary
 DefaultManagementRegistryConfiguration addConfiguration(StatisticsProviderConfiguration<?> configuration)
           
 java.lang.String getCollectorExecutorAlias()
          Gets the alias of the executor to use for asynchronous collector service tasks.
 StatisticsProviderConfiguration getConfigurationFor(java.lang.Class<? extends org.terracotta.management.registry.ManagementProvider<?>> managementProviderClass)
          Returns the configuration of a specific ManagementProvider type.
 org.terracotta.management.context.Context getContext()
          The context used to identify this cache manager
 java.lang.Class<ManagementRegistryService> 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 setCollectorExecutorAlias(java.lang.String collectorExecutorAlias)
           
 DefaultManagementRegistryConfiguration setContext(org.terracotta.management.context.Context context)
           
 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)

setContext

public DefaultManagementRegistryConfiguration setContext(org.terracotta.management.context.Context context)

setStatisticsExecutorAlias

public DefaultManagementRegistryConfiguration setStatisticsExecutorAlias(java.lang.String alias)

setCollectorExecutorAlias

public DefaultManagementRegistryConfiguration setCollectorExecutorAlias(java.lang.String collectorExecutorAlias)

addConfiguration

public DefaultManagementRegistryConfiguration addConfiguration(StatisticsProviderConfiguration<?> configuration)

getContext

public org.terracotta.management.context.Context getContext()
Description copied from interface: ManagementRegistryServiceConfiguration
The context used to identify this cache manager

Specified by:
getContext in interface ManagementRegistryServiceConfiguration

getStatisticsExecutorAlias

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

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

getCollectorExecutorAlias

public java.lang.String getCollectorExecutorAlias()
Description copied from interface: ManagementRegistryServiceConfiguration
Gets the alias of the executor to use for asynchronous collector service tasks.

Specified by:
getCollectorExecutorAlias in interface ManagementRegistryServiceConfiguration
Returns:
The static colector executor alias

getConfigurationFor

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

Specified by:
getConfigurationFor in interface ManagementRegistryServiceConfiguration
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<ManagementRegistryService> getServiceType()
Description copied from interface: ServiceCreationConfiguration
Indicates which service consumes this configuration at creation.

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