org.infinispan.config
Class Configuration.HashType

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

public static class Configuration.HashType
extends AbstractNamedCacheConfigurationBean
implements FluentConfiguration.HashConfig

Allows fine-tuning of rehashing characteristics. Only used with 'distributed' cache mode, and otherwise ignored.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  String consistentHashClass
           
protected  GroupsConfiguration groups
           
protected  String hashFunctionClass
           
protected  Integer numOwners
           
protected  Integer numVirtualNodes
           
protected  Boolean rehashEnabled
           
protected  Long rehashRpcTimeout
           
protected  Long rehashWait
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
Configuration.HashType()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 FluentConfiguration.AsyncConfig async()
           
 Configuration build()
           
 FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)
           
 Configuration.HashType clone()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.HashConfig consistentHashClass(Class<? extends ConsistentHash> consistentHashClass)
          Fully qualified name of class providing consistent hash algorithm
 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()
           
 String getConsistentHashClass()
           
 GroupsConfiguration getGroups()
           
 String getHashFunctionClass()
           
 Integer getNumOwners()
           
 Integer getNumVirtualNodes()
           
 Long getRehashRpcTimeout()
           
 Long getRehashWait()
           
 GroupsConfiguration groups()
           
 FluentConfiguration.HashConfig hash()
           
 int hashCode()
           
 FluentConfiguration.HashConfig hashFunctionClass(Class<? extends Hash> hashFunctionClass)
          A fully qualified name of the class providing a hash function, used as a bit spreader and a general hash code generator.
 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 isRehashEnabled()
           
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.L1Config l1()
           
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
           
 FluentConfiguration.HashConfig numOwners(Integer numOwners)
          Number of cluster-wide replicas for each cache entry.
 FluentConfiguration.HashConfig numVirtualNodes(Integer numVirtualNodes)
          Controls the number of virtual nodes per "real" node.
 FluentConfiguration.RecoveryConfig recovery()
           
 FluentConfiguration.HashConfig rehashEnabled(Boolean rehashEnabled)
          If false, no rebalancing or rehashing will take place when a new node joins the cluster or a node leaves
 FluentConfiguration.HashConfig rehashRpcTimeout(Long rehashRpcTimeout)
          Rehashing timeout
 FluentConfiguration.HashConfig rehashWait(Long rehashWaitTime)
           
protected  org.infinispan.config.AbstractFluentConfigurationBean setConfiguration(Configuration config)
           
 void setConsistentHashClass(String consistentHashClass)
          Deprecated. The visibility of this will be reduced, use consistentHashClass(Class)
 void setGroups(GroupsConfiguration groups)
           
 void setHashFunctionClass(String hashFunctionClass)
          Deprecated. The visibility of this will be reduced, use hashFunctionClass(Class)
 void setNumOwners(Integer numOwners)
          Deprecated. The visibility of this will be reduced, use numOwners(Integer)
 void setNumVirtualNodes(Integer numVirtualNodes)
          Deprecated. The visibility of this will be reduced, use numVirtualNodes(Integer)
 void setRehashEnabled(Boolean rehashEnabled)
          Deprecated. The visibility of this will be reduced, use rehashEnabled(Boolean)
 void setRehashRpcTimeout(Long rehashRpcTimeout)
          Deprecated. The visibility of this will be reduced, use rehashRpcTimeout(Long)
 void setRehashWait(Long rehashWaitTime)
          Deprecated. The visibility of this will be reduced, use rehashWait(Long)
 FluentConfiguration.StateRetrievalConfig stateRetrieval()
           
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.SyncConfig sync()
           
 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)
           
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.config.FluentConfiguration.HashConfig
build
 

Field Detail

consistentHashClass

protected String consistentHashClass

hashFunctionClass

protected String hashFunctionClass

numOwners

protected Integer numOwners

rehashWait

protected Long rehashWait

rehashRpcTimeout

protected Long rehashRpcTimeout

rehashEnabled

protected Boolean rehashEnabled

numVirtualNodes

protected Integer numVirtualNodes

groups

protected GroupsConfiguration groups
Constructor Detail

Configuration.HashType

public Configuration.HashType()
Method Detail

accept

public void accept(ConfigurationBeanVisitor v)

getConsistentHashClass

public String getConsistentHashClass()

setConsistentHashClass

@Deprecated
public void setConsistentHashClass(String consistentHashClass)
Deprecated. The visibility of this will be reduced, use consistentHashClass(Class)


consistentHashClass

public FluentConfiguration.HashConfig consistentHashClass(Class<? extends ConsistentHash> consistentHashClass)
Description copied from interface: FluentConfiguration.HashConfig
Fully qualified name of class providing consistent hash algorithm

Specified by:
consistentHashClass in interface FluentConfiguration.HashConfig

getHashFunctionClass

public String getHashFunctionClass()

setHashFunctionClass

@Deprecated
public void setHashFunctionClass(String hashFunctionClass)
Deprecated. The visibility of this will be reduced, use hashFunctionClass(Class)


hashFunctionClass

public FluentConfiguration.HashConfig hashFunctionClass(Class<? extends Hash> hashFunctionClass)
Description copied from interface: FluentConfiguration.HashConfig
A fully qualified name of the class providing a hash function, used as a bit spreader and a general hash code generator. Typically used in conjunction with the many default ConsistentHash implementations shipped.

Specified by:
hashFunctionClass in interface FluentConfiguration.HashConfig

getNumOwners

public Integer getNumOwners()

getNumVirtualNodes

public Integer getNumVirtualNodes()

numVirtualNodes

public FluentConfiguration.HashConfig numVirtualNodes(Integer numVirtualNodes)
Description copied from interface: FluentConfiguration.HashConfig
Controls the number of virtual nodes per "real" node. You can read more about virtual nodes at ... If numVirtualNodes is 1, then virtual nodes are disabled. The topology aware consistent hash must be used if you wish to take advnatage of virtual nodes. A default of 1 is used.

Specified by:
numVirtualNodes in interface FluentConfiguration.HashConfig
Parameters:
numVirtualNodes - the number of virtual nodes. Must be >0.

setNumVirtualNodes

@Deprecated
public void setNumVirtualNodes(Integer numVirtualNodes)
Deprecated. The visibility of this will be reduced, use numVirtualNodes(Integer)


setNumOwners

@Deprecated
public void setNumOwners(Integer numOwners)
Deprecated. The visibility of this will be reduced, use numOwners(Integer)


numOwners

public FluentConfiguration.HashConfig numOwners(Integer numOwners)
Description copied from interface: FluentConfiguration.HashConfig
Number of cluster-wide replicas for each cache entry.

Specified by:
numOwners in interface FluentConfiguration.HashConfig

getRehashWait

public Long getRehashWait()

setRehashWait

@Deprecated
public void setRehashWait(Long rehashWaitTime)
Deprecated. The visibility of this will be reduced, use rehashWait(Long)


rehashWait

public FluentConfiguration.HashConfig rehashWait(Long rehashWaitTime)
Specified by:
rehashWait in interface FluentConfiguration.HashConfig

getRehashRpcTimeout

public Long getRehashRpcTimeout()

setRehashRpcTimeout

@Deprecated
public void setRehashRpcTimeout(Long rehashRpcTimeout)
Deprecated. The visibility of this will be reduced, use rehashRpcTimeout(Long)


rehashRpcTimeout

public FluentConfiguration.HashConfig rehashRpcTimeout(Long rehashRpcTimeout)
Description copied from interface: FluentConfiguration.HashConfig
Rehashing timeout

Specified by:
rehashRpcTimeout in interface FluentConfiguration.HashConfig

isRehashEnabled

public Boolean isRehashEnabled()

setRehashEnabled

@Deprecated
public void setRehashEnabled(Boolean rehashEnabled)
Deprecated. The visibility of this will be reduced, use rehashEnabled(Boolean)


rehashEnabled

public FluentConfiguration.HashConfig rehashEnabled(Boolean rehashEnabled)
Description copied from interface: FluentConfiguration.HashConfig
If false, no rebalancing or rehashing will take place when a new node joins the cluster or a node leaves

Specified by:
rehashEnabled in interface FluentConfiguration.HashConfig

groups

public GroupsConfiguration groups()
Specified by:
groups in interface FluentConfiguration.HashConfig

setGroups

public void setGroups(GroupsConfiguration groups)

getGroups

public GroupsConfiguration getGroups()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

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

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.


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.


async

public FluentConfiguration.AsyncConfig async()

sync

public FluentConfiguration.SyncConfig sync()

stateRetrieval

public FluentConfiguration.StateRetrievalConfig stateRetrieval()

l1

public FluentConfiguration.L1Config l1()

hash

public FluentConfiguration.HashConfig hash()

mode

public FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)

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()

setConfiguration

protected org.infinispan.config.AbstractFluentConfigurationBean setConfiguration(Configuration config)

-->

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