org.infinispan.config
Class FluentGlobalConfiguration

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.FluentGlobalConfiguration
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable

public class FluentGlobalConfiguration
extends AbstractConfigurationBean

Fluent global configuration base class.

Since:
5.0
Author:
Galder ZamarreƱo, Vladimir Blagojevic
See Also:
Serialized Form

Nested Class Summary
static interface FluentGlobalConfiguration.ExecutorFactoryConfig<T>
          Configures executor factory.
static interface FluentGlobalConfiguration.GlobalJmxStatisticsConfig
          Configures whether global statistics are gathered and reported via JMX for all caches under this cache manager.
static interface FluentGlobalConfiguration.SerializationConfig
          Configures serialization and marshalling settings.
static interface FluentGlobalConfiguration.ShutdownConfig
           
static interface FluentGlobalConfiguration.TransportConfig
          Configures the transport used for network communications across the cluster.
 
Field Summary
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
FluentGlobalConfiguration(GlobalConfiguration globalConfig)
           
 
Method Summary
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()
           
 GlobalConfiguration build()
           
 CloneableConfigurationComponent clone()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()
           
 FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
          This method allows configuration of the global, or cache manager level, jmx statistics.
protected  boolean hasComponentStarted()
          Tests whether the component this configuration bean intents to configure has already started.
 void inject(GlobalComponentRegistry gcr, GlobalConfiguration globalConfig)
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()
           
 FluentGlobalConfiguration.SerializationConfig serialization()
           
 FluentGlobalConfiguration.ShutdownConfig shutdown()
           
 FluentGlobalConfiguration.TransportConfig transport()
           
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FluentGlobalConfiguration

public FluentGlobalConfiguration(GlobalConfiguration globalConfig)
Method Detail

inject

public void inject(GlobalComponentRegistry gcr,
                   GlobalConfiguration globalConfig)

hasComponentStarted

protected boolean hasComponentStarted()
Description copied from class: AbstractConfigurationBean
Tests whether the component this configuration bean intents to configure has already started.

Specified by:
hasComponentStarted in class AbstractConfigurationBean
Returns:
true if the component has started; false otherwise.

clone

public CloneableConfigurationComponent clone()
                                      throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractConfigurationBean
Throws:
CloneNotSupportedException

transport

public FluentGlobalConfiguration.TransportConfig transport()

globalJmxStatistics

public FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
This method allows configuration of the global, or cache manager level, jmx statistics. When this method is called, it automatically enables global jmx statistics. So, if you want it to be disabled, make sure you call FluentGlobalConfiguration.GlobalJmxStatisticsConfig.disable()


serialization

public FluentGlobalConfiguration.SerializationConfig serialization()

asyncListenerExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()

asyncTransportExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()

evictionScheduledExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()

replicationQueueScheduledExecutor

public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()

shutdown

public FluentGlobalConfiguration.ShutdownConfig shutdown()

build

public GlobalConfiguration build()

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.