org.infinispan.config
Class Configuration.ClusteringType

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.Configuration.ClusteringType
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, FluentConfiguration.ClusteringConfig, JAXBUnmarshallable
Enclosing class:
Configuration

public static class Configuration.ClusteringType
extends AbstractNamedCacheConfigurationBean
implements FluentConfiguration.ClusteringConfig

Defines clustered characteristics of the cache.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  Configuration.AsyncType async
           
protected  boolean configuredAsync
           
protected  boolean configuredSync
           
protected  Configuration.HashType hash
           
protected  Configuration.L1Type l1
           
protected  Configuration.CacheMode mode
           
protected  Configuration.StateRetrievalType stateRetrieval
           
protected  String stringMode
           
protected  Configuration.SyncType sync
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
Configuration.ClusteringType()
           
Configuration.ClusteringType(Configuration.CacheMode mode)
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 FluentConfiguration.AsyncConfig async()
          Configure async sub element.
 Configuration build()
           
 Configuration build()
           
 FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)
           
 Configuration.ClusteringType clone()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)
           
 boolean equals(Object o)
           
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 FluentConfiguration.HashConfig hash()
          * Configure hash sub element
 int hashCode()
           
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 boolean isSynchronous()
           
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.L1Config l1()
          This method allows configuration of the L1 cache for distributed caches.
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
          Cache mode.
 FluentConfiguration.RecoveryConfig recovery()
           
protected  Configuration.ClusteringType setConfiguration(Configuration config)
           
 void setMode(Configuration.CacheMode mode)
          Deprecated. The visibility of this will be reduced, use #mode(CacheMode)
 FluentConfiguration.StateRetrievalConfig stateRetrieval()
          Configure stateRetrieval sub element
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.SyncConfig sync()
          Configure sync sub element.
 FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)
           
 FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)
           
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
           
 FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)
           
 FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)
           
 FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)
           
 void willUnmarshall(Object parent)
          Indicates that this element is about to be unmarshalled from the XML source that was processed.
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringMode

protected String stringMode

configuredAsync

protected boolean configuredAsync

configuredSync

protected boolean configuredSync

mode

protected Configuration.CacheMode mode

sync

protected Configuration.SyncType sync

stateRetrieval

protected Configuration.StateRetrievalType stateRetrieval

l1

protected Configuration.L1Type l1

async

protected Configuration.AsyncType async

hash

protected Configuration.HashType hash
Constructor Detail

Configuration.ClusteringType

public Configuration.ClusteringType(Configuration.CacheMode mode)

Configuration.ClusteringType

public Configuration.ClusteringType()
Method Detail

async

public FluentConfiguration.AsyncConfig async()
Description copied from interface: FluentConfiguration.ClusteringConfig
Configure async sub element. Once this method is invoked users cannot subsequently invoke configureSync() as two are mutually exclusive

Specified by:
async in interface FluentConfiguration.ClusteringConfig
Returns:
AsyncConfig element

sync

public FluentConfiguration.SyncConfig sync()
Description copied from interface: FluentConfiguration.ClusteringConfig
Configure sync sub element. Once this method is invoked users cannot subsequently invoke configureAsync() as two are mutually exclusive

Specified by:
sync in interface FluentConfiguration.ClusteringConfig
Returns:
SyncConfig element

stateRetrieval

public FluentConfiguration.StateRetrievalConfig stateRetrieval()
Description copied from interface: FluentConfiguration.ClusteringConfig
Configure stateRetrieval sub element

Specified by:
stateRetrieval in interface FluentConfiguration.ClusteringConfig
Returns:
StateRetrievalConfig element

l1

public FluentConfiguration.L1Config l1()
Description copied from interface: FluentConfiguration.ClusteringConfig
This method allows configuration of the L1 cache for distributed caches. When this method is called, it automatically enables L1. So, if you want it to be disabled, make sure you call FluentConfiguration.L1Config.disable()

Specified by:
l1 in interface FluentConfiguration.ClusteringConfig

hash

public FluentConfiguration.HashConfig hash()
Description copied from interface: FluentConfiguration.ClusteringConfig
* Configure hash sub element

Specified by:
hash in interface FluentConfiguration.ClusteringConfig
Returns:
HashConfig element

setMode

@Deprecated
public void setMode(Configuration.CacheMode mode)
Deprecated. The visibility of this will be reduced, use #mode(CacheMode)


mode

public FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
Description copied from interface: FluentConfiguration.ClusteringConfig
Cache mode. For distribution, set mode to either 'd', 'dist' or 'distribution'. For replication, use either 'r', 'repl' or 'replication'. Finally, for invalidation, 'i', 'inv' or 'invalidation'. If the cache mode is set to 'l' or 'local', the cache in question will not support clustering even if its cache manager does.

Specified by:
mode in interface FluentConfiguration.ClusteringConfig

isSynchronous

public boolean isSynchronous()

setConfiguration

protected Configuration.ClusteringType setConfiguration(Configuration config)

clone

public Configuration.ClusteringType clone()
                                   throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractNamedCacheConfigurationBean
Throws:
CloneNotSupportedException

accept

public void accept(ConfigurationBeanVisitor v)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

willUnmarshall

public void willUnmarshall(Object parent)
Description copied from interface: JAXBUnmarshallable
Indicates that this element is about to be unmarshalled from the XML source that was processed.

Specified by:
willUnmarshall in interface JAXBUnmarshallable
Overrides:
willUnmarshall in class AbstractConfigurationBean
Parameters:
parent - parent component

locking

public FluentConfiguration.LockingConfig locking()

loaders

public FluentConfiguration.LoadersConfig loaders()

transaction

public FluentConfiguration.TransactionConfig transaction()

deadlockDetection

public FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
This method allows configuration of the deadlock detection. When this method is called, it automatically enables deadlock detection. So, if you want it to be disabled, make sure you call FluentConfiguration.DeadlockDetectionConfig.disable()


customInterceptors

public FluentConfiguration.CustomInterceptorsConfig customInterceptors()

eviction

public FluentConfiguration.EvictionConfig eviction()

expiration

public FluentConfiguration.ExpirationConfig expiration()

clustering

public FluentConfiguration.ClusteringConfig clustering()

indexing

public FluentConfiguration.IndexingConfig indexing()
This method allows configuration of the indexing subsystem. When this method is called, it automatically enables indexing. So, if you want it to be disabled, make sure you call FluentConfiguration.IndexingConfig.disable()


dataContainer

public FluentConfiguration.DataContainerConfig dataContainer()

unsafe

public FluentConfiguration.UnsafeConfig unsafe()

jmxStatistics

public FluentConfiguration.JmxStatisticsConfig jmxStatistics()
This method allows configuration of jmx statistics. When this method is called, it automatically enables jmx statistics.


storeAsBinary

public FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
This method allows configuration of lazy deserialization. When this method is called, it automatically enables lazy deserialization.


invocationBatching

public FluentConfiguration.InvocationBatchingConfig invocationBatching()
This method allows configuration of invocation batching. When this method is called, it automatically enables invocation batching.


build

public Configuration build()

locking

public FluentConfiguration.LockingConfig locking()

loaders

public FluentConfiguration.LoadersConfig loaders()

transaction

public FluentConfiguration.TransactionConfig transaction()

deadlockDetection

public FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
This method allows configuration of the deadlock detection. When this method is called, it automatically enables deadlock detection. So, if you want it to be disabled, make sure you call FluentConfiguration.DeadlockDetectionConfig.disable()


customInterceptors

public FluentConfiguration.CustomInterceptorsConfig customInterceptors()

eviction

public FluentConfiguration.EvictionConfig eviction()

expiration

public FluentConfiguration.ExpirationConfig expiration()

clustering

public FluentConfiguration.ClusteringConfig clustering()

indexing

public FluentConfiguration.IndexingConfig indexing()
This method allows configuration of the indexing subsystem. When this method is called, it automatically enables indexing. So, if you want it to be disabled, make sure you call FluentConfiguration.IndexingConfig.disable()


dataContainer

public FluentConfiguration.DataContainerConfig dataContainer()

unsafe

public FluentConfiguration.UnsafeConfig unsafe()

jmxStatistics

public FluentConfiguration.JmxStatisticsConfig jmxStatistics()
This method allows configuration of jmx statistics. When this method is called, it automatically enables jmx statistics.


storeAsBinary

public FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
This method allows configuration of lazy deserialization. When this method is called, it automatically enables lazy deserialization.


invocationBatching

public FluentConfiguration.InvocationBatchingConfig invocationBatching()
This method allows configuration of invocation batching. When this method is called, it automatically enables invocation batching.


transactionManagerLookupClass

public FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)

transactionManagerLookup

public FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)

transactionSynchronizationRegistryLookup

public FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)

syncCommitPhase

public FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)

syncRollbackPhase

public FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)

useEagerLocking

public FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)

eagerLockSingleNode

public FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)

cacheStopTimeout

public FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)

useSynchronization

public FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)

recovery

public FluentConfiguration.RecoveryConfig recovery()

build

public Configuration build()

-->

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