org.infinispan.spring
Class AbstractEmbeddedCacheManagerFactory
java.lang.Object
org.infinispan.spring.AbstractEmbeddedCacheManagerFactory
- Direct Known Subclasses:
- InfinispanEmbeddedCacheManagerFactoryBean, SpringEmbeddedCacheManagerFactoryBean
public class AbstractEmbeddedCacheManagerFactory
- extends Object
An abstract base class for factories creating cache managers that are backed by an
EmbeddedCacheManager.
- Author:
- Olaf Bergner, Marius Bogoevici
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
globalConfigurationOverrides
protected final AbstractEmbeddedCacheManagerFactory.GlobalConfigurationOverrides globalConfigurationOverrides
configurationOverrides
protected final ConfigurationOverrides configurationOverrides
AbstractEmbeddedCacheManagerFactory
public AbstractEmbeddedCacheManagerFactory()
createBackingEmbeddedCacheManager
protected EmbeddedCacheManager createBackingEmbeddedCacheManager()
throws ConfigurationException,
IOException
- Throws:
ConfigurationException
IOException
createCacheManager
protected EmbeddedCacheManager createCacheManager(InputStream is)
throws IOException
- Throws:
IOException
createCacheManager
protected EmbeddedCacheManager createCacheManager(GlobalConfigurationBuilder globalBuilder,
ConfigurationBuilder builder)
setConfigurationFileLocation
public void setConfigurationFileLocation(org.springframework.core.io.Resource configurationFileLocation)
Sets the location
of the
configuration file which will be used to configure the
EmbeddedCacheManager
the
SpringEmbeddedCacheManager
created by this FactoryBean
delegates
to. If no location is supplied, Infinispan's default configuration will be used.
Note that configuration settings defined via using explicit setters exposed by this
FactoryBean
take precedence over those defined in the configuration file pointed
to by configurationFileLocation
.
- Parameters:
configurationFileLocation
- The location
of the
configuration file which will be used to configure the
EmbeddedCacheManager
the
SpringEmbeddedCacheManager
created by this FactoryBean
delegates to
setExposeGlobalJmxStatistics
public void setExposeGlobalJmxStatistics(boolean exposeGlobalJmxStatistics)
- Parameters:
exposeGlobalJmxStatistics
- - See Also:
GlobalConfiguration.setExposeGlobalJmxStatistics(boolean)
setJmxDomain
public void setJmxDomain(String jmxObjectName)
- Parameters:
jmxObjectName
- - See Also:
GlobalConfiguration.setJmxDomain(java.lang.String)
setMBeanServerProperties
public void setMBeanServerProperties(Properties properties)
- Parameters:
properties
- - See Also:
GlobalConfiguration.setMBeanServerProperties(java.util.Properties)
setMBeanServerLookupClass
public void setMBeanServerLookupClass(String mBeanServerLookupClass)
- Parameters:
mBeanServerLookupClass
- - See Also:
GlobalConfiguration.setMBeanServerLookup(java.lang.String)
setMBeanServerLookup
public void setMBeanServerLookup(MBeanServerLookup mBeanServerLookup)
- Parameters:
mBeanServerLookup
- - See Also:
GlobalConfiguration.setMBeanServerLookup(org.infinispan.jmx.MBeanServerLookup)
setAllowDuplicateDomains
public void setAllowDuplicateDomains(boolean allowDuplicateDomains)
- Parameters:
allowDuplicateDomains
- - See Also:
GlobalConfiguration.setAllowDuplicateDomains(boolean)
setCacheManagerName
public void setCacheManagerName(String cacheManagerName)
- Parameters:
cacheManagerName
- - See Also:
GlobalConfiguration.setCacheManagerName(java.lang.String)
setStrictPeerToPeer
public void setStrictPeerToPeer(boolean strictPeerToPeer)
- Parameters:
strictPeerToPeer
- - See Also:
GlobalConfiguration.setStrictPeerToPeer(boolean)
setAsyncListenerExecutorFactoryClass
public void setAsyncListenerExecutorFactoryClass(String asyncListenerExecutorFactoryClass)
- Parameters:
asyncListenerExecutorFactoryClass
- - See Also:
GlobalConfiguration.setAsyncListenerExecutorFactoryClass(java.lang.String)
setAsyncTransportExecutorFactoryClass
public void setAsyncTransportExecutorFactoryClass(String asyncTransportExecutorFactoryClass)
- Parameters:
asyncTransportExecutorFactoryClass
- - See Also:
GlobalConfiguration.setAsyncTransportExecutorFactoryClass(java.lang.String)
setRemoteCommandsExecutorFactoryClass
public void setRemoteCommandsExecutorFactoryClass(String remoteCommandsExecutorFactoryClass)
- Parameters:
remoteCommandsExecutorFactoryClass
- - See Also:
org.infinispan.config.GlobalConfiguration#setRemoteCommandsExecutorFactoryClass(java.lang.String)
setEvictionScheduledExecutorFactoryClass
public void setEvictionScheduledExecutorFactoryClass(String evictionScheduledExecutorFactoryClass)
- Parameters:
evictionScheduledExecutorFactoryClass
- - See Also:
GlobalConfiguration.setEvictionScheduledExecutorFactoryClass(java.lang.String)
setReplicationQueueScheduledExecutorFactoryClass
public void setReplicationQueueScheduledExecutorFactoryClass(String replicationQueueScheduledExecutorFactoryClass)
- Parameters:
replicationQueueScheduledExecutorFactoryClass
- - See Also:
GlobalConfiguration.setReplicationQueueScheduledExecutorFactoryClass(java.lang.String)
setMarshallerClass
public void setMarshallerClass(String marshallerClass)
- Parameters:
marshallerClass
- - See Also:
GlobalConfiguration.setMarshallerClass(java.lang.String)
setTransportNodeName
public void setTransportNodeName(String nodeName)
- Parameters:
nodeName
- - See Also:
GlobalConfiguration.setTransportNodeName(java.lang.String)
setTransportClass
public void setTransportClass(String transportClass)
- Parameters:
transportClass
- - See Also:
GlobalConfiguration.setTransportClass(java.lang.String)
setTransportProperties
public void setTransportProperties(Properties transportProperties)
- Parameters:
transportProperties
- - See Also:
GlobalConfiguration.setTransportProperties(java.util.Properties)
setClusterName
public void setClusterName(String clusterName)
- Parameters:
clusterName
- - See Also:
GlobalConfiguration.setClusterName(java.lang.String)
setMachineId
public void setMachineId(String machineId)
- Parameters:
machineId
- - See Also:
GlobalConfiguration.setMachineId(java.lang.String)
setRackId
public void setRackId(String rackId)
- Parameters:
rackId
- - See Also:
GlobalConfiguration.setRackId(java.lang.String)
setSiteId
public void setSiteId(String siteId)
- Parameters:
siteId
- - See Also:
GlobalConfiguration.setSiteId(java.lang.String)
setShutdownHookBehavior
public void setShutdownHookBehavior(String shutdownHookBehavior)
- Parameters:
shutdownHookBehavior
- - See Also:
GlobalConfiguration.setShutdownHookBehavior(java.lang.String)
setAsyncListenerExecutorProperties
public void setAsyncListenerExecutorProperties(Properties asyncListenerExecutorProperties)
- Parameters:
asyncListenerExecutorProperties
- - See Also:
GlobalConfiguration.setAsyncListenerExecutorProperties(java.util.Properties)
setAsyncTransportExecutorProperties
public void setAsyncTransportExecutorProperties(Properties asyncTransportExecutorProperties)
- Parameters:
asyncTransportExecutorProperties
- - See Also:
GlobalConfiguration.setAsyncTransportExecutorProperties(java.util.Properties)
setRemoteCommandsExecutorProperties
public void setRemoteCommandsExecutorProperties(Properties remoteCommandsExecutorProperties)
- Parameters:
remoteCommandsExecutorProperties
- - See Also:
org.infinispan.config.GlobalConfiguration#setRemoteCommandsExecutorProperties(java.util.Properties)
setEvictionScheduledExecutorProperties
public void setEvictionScheduledExecutorProperties(Properties evictionScheduledExecutorProperties)
- Parameters:
evictionScheduledExecutorProperties
- - See Also:
GlobalConfiguration.setEvictionScheduledExecutorProperties(java.util.Properties)
setReplicationQueueScheduledExecutorProperties
public void setReplicationQueueScheduledExecutorProperties(Properties replicationQueueScheduledExecutorProperties)
- Parameters:
replicationQueueScheduledExecutorProperties
- - See Also:
GlobalConfiguration.setReplicationQueueScheduledExecutorProperties(java.util.Properties)
setMarshallVersion
public void setMarshallVersion(short marshallVersion)
- Parameters:
marshallVersion
- - See Also:
GlobalConfiguration.setMarshallVersion(short)
setDistributedSyncTimeout
public void setDistributedSyncTimeout(long distributedSyncTimeout)
- Parameters:
distributedSyncTimeout
- - See Also:
GlobalConfiguration.setDistributedSyncTimeout(long)
setDeadlockDetectionSpinDuration
public void setDeadlockDetectionSpinDuration(Long eagerDeadlockSpinDuration)
- Parameters:
eagerDeadlockSpinDuration
- - See Also:
ConfigurationOverrides.setDeadlockDetectionSpinDuration(java.lang.Long)
setEnableDeadlockDetection
public void setEnableDeadlockDetection(Boolean useEagerDeadlockDetection)
- Parameters:
useEagerDeadlockDetection
- - See Also:
ConfigurationOverrides.setEnableDeadlockDetection(java.lang.Boolean)
setUseLockStriping
public void setUseLockStriping(Boolean useLockStriping)
- Parameters:
useLockStriping
- - See Also:
ConfigurationOverrides.setUseLockStriping(java.lang.Boolean)
setUnsafeUnreliableReturnValues
public void setUnsafeUnreliableReturnValues(Boolean unsafeUnreliableReturnValues)
- Parameters:
unsafeUnreliableReturnValues
- - See Also:
ConfigurationOverrides.setUnsafeUnreliableReturnValues(java.lang.Boolean)
setRehashRpcTimeout
public void setRehashRpcTimeout(Long rehashRpcTimeout)
- Parameters:
rehashRpcTimeout
- - See Also:
ConfigurationOverrides.setRehashRpcTimeout(java.lang.Long)
setWriteSkewCheck
public void setWriteSkewCheck(Boolean writeSkewCheck)
- Parameters:
writeSkewCheck
- - See Also:
ConfigurationOverrides.setWriteSkewCheck(java.lang.Boolean)
setConcurrencyLevel
public void setConcurrencyLevel(Integer concurrencyLevel)
- Parameters:
concurrencyLevel
- - See Also:
ConfigurationOverrides.setConcurrencyLevel(java.lang.Integer)
setReplQueueMaxElements
public void setReplQueueMaxElements(Integer replQueueMaxElements)
- Parameters:
replQueueMaxElements
- - See Also:
ConfigurationOverrides.setReplQueueMaxElements(java.lang.Integer)
setReplQueueInterval
public void setReplQueueInterval(Long replQueueInterval)
- Parameters:
replQueueInterval
- - See Also:
ConfigurationOverrides.setReplQueueInterval(java.lang.Long)
setReplQueueClass
public void setReplQueueClass(String replQueueClass)
- Parameters:
replQueueClass
- - See Also:
ConfigurationOverrides.setReplQueueClass(java.lang.String)
setExposeJmxStatistics
public void setExposeJmxStatistics(Boolean exposeJmxStatistics)
- Parameters:
exposeJmxStatistics
- - See Also:
ConfigurationOverrides.setExposeJmxStatistics(java.lang.Boolean)
setInvocationBatchingEnabled
public void setInvocationBatchingEnabled(Boolean invocationBatchingEnabled)
- Parameters:
invocationBatchingEnabled
- - See Also:
ConfigurationOverrides.setInvocationBatchingEnabled(java.lang.Boolean)
setFetchInMemoryState
public void setFetchInMemoryState(Boolean fetchInMemoryState)
- Parameters:
fetchInMemoryState
- - See Also:
ConfigurationOverrides.setFetchInMemoryState(java.lang.Boolean)
setAlwaysProvideInMemoryState
public void setAlwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
- Parameters:
alwaysProvideInMemoryState
- - See Also:
ConfigurationOverrides.setAlwaysProvideInMemoryState(java.lang.Boolean)
setLockAcquisitionTimeout
public void setLockAcquisitionTimeout(Long lockAcquisitionTimeout)
- Parameters:
lockAcquisitionTimeout
- - See Also:
ConfigurationOverrides.setLockAcquisitionTimeout(java.lang.Long)
setSyncReplTimeout
public void setSyncReplTimeout(Long syncReplTimeout)
- Parameters:
syncReplTimeout
- - See Also:
ConfigurationOverrides.setSyncReplTimeout(java.lang.Long)
setCacheModeString
public void setCacheModeString(String cacheModeString)
- Parameters:
cacheModeString
- - See Also:
ConfigurationOverrides.setCacheModeString(java.lang.String)
setExpirationWakeUpInterval
public void setExpirationWakeUpInterval(Long expirationWakeUpInterval)
- Parameters:
expirationWakeUpInterval
- - See Also:
(java.lang.Long)
setEvictionStrategy
public void setEvictionStrategy(EvictionStrategy evictionStrategy)
- Parameters:
evictionStrategy
- - See Also:
ConfigurationOverrides.setEvictionStrategy(org.infinispan.eviction.EvictionStrategy)
setEvictionStrategyClass
public void setEvictionStrategyClass(String evictionStrategyClass)
- Parameters:
evictionStrategyClass
- - See Also:
ConfigurationOverrides.setEvictionStrategyClass(java.lang.String)
setEvictionThreadPolicy
public void setEvictionThreadPolicy(EvictionThreadPolicy evictionThreadPolicy)
- Parameters:
evictionThreadPolicy
- - See Also:
ConfigurationOverrides.setEvictionThreadPolicy(org.infinispan.eviction.EvictionThreadPolicy)
setEvictionThreadPolicyClass
public void setEvictionThreadPolicyClass(String evictionThreadPolicyClass)
- Parameters:
evictionThreadPolicyClass
- - See Also:
ConfigurationOverrides.setEvictionThreadPolicyClass(java.lang.String)
setEvictionMaxEntries
public void setEvictionMaxEntries(Integer evictionMaxEntries)
- Parameters:
evictionMaxEntries
- - See Also:
ConfigurationOverrides.setEvictionMaxEntries(java.lang.Integer)
setExpirationLifespan
public void setExpirationLifespan(Long expirationLifespan)
- Parameters:
expirationLifespan
- - See Also:
ConfigurationOverrides.setExpirationLifespan(java.lang.Long)
setExpirationMaxIdle
public void setExpirationMaxIdle(Long expirationMaxIdle)
- Parameters:
expirationMaxIdle
- - See Also:
ConfigurationOverrides.setExpirationMaxIdle(java.lang.Long)
setTransactionManagerLookupClass
public void setTransactionManagerLookupClass(String transactionManagerLookupClass)
- Parameters:
transactionManagerLookupClass
- - See Also:
ConfigurationOverrides.setTransactionManagerLookupClass(java.lang.String)
setTransactionManagerLookup
public void setTransactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
- Parameters:
transactionManagerLookup
- - See Also:
ConfigurationOverrides.setTransactionManagerLookup(org.infinispan.transaction.lookup.TransactionManagerLookup)
setCacheLoaderManagerConfig
public void setCacheLoaderManagerConfig(CacheLoaderManagerConfig cacheLoaderManagerConfig)
- Parameters:
cacheLoaderManagerConfig
- - See Also:
ConfigurationOverrides.setCacheLoaderManagerConfig(org.infinispan.config.CacheLoaderManagerConfig)
setSyncCommitPhase
public void setSyncCommitPhase(Boolean syncCommitPhase)
- Parameters:
syncCommitPhase
- - See Also:
ConfigurationOverrides.setSyncCommitPhase(java.lang.Boolean)
setSyncRollbackPhase
public void setSyncRollbackPhase(Boolean syncRollbackPhase)
- Parameters:
syncRollbackPhase
- - See Also:
ConfigurationOverrides.setSyncRollbackPhase(java.lang.Boolean)
setUseEagerLocking
public void setUseEagerLocking(Boolean useEagerLocking)
- Parameters:
useEagerLocking
- - See Also:
ConfigurationOverrides.setUseEagerLocking(java.lang.Boolean)
setEagerLockSingleNode
@Deprecated
public void setEagerLockSingleNode(Boolean eagerLockSingleNode)
- Deprecated.
- Parameters:
eagerLockSingleNode
- - See Also:
ConfigurationOverrides.setEagerLockSingleNode(java.lang.Boolean)
setUseReplQueue
public void setUseReplQueue(Boolean useReplQueue)
- Parameters:
useReplQueue
- - See Also:
ConfigurationOverrides.setUseReplQueue(java.lang.Boolean)
setIsolationLevel
public void setIsolationLevel(IsolationLevel isolationLevel)
- Parameters:
isolationLevel
- - See Also:
ConfigurationOverrides.setIsolationLevel(org.infinispan.util.concurrent.IsolationLevel)
setStateRetrievalTimeout
public void setStateRetrievalTimeout(Long stateRetrievalTimeout)
- Parameters:
stateRetrievalTimeout
- - See Also:
ConfigurationOverrides.setStateRetrievalTimeout(java.lang.Long)
setStateRetrievalMaxNonProgressingLogWrites
public void setStateRetrievalMaxNonProgressingLogWrites(Integer stateRetrievalMaxNonProgressingLogWrites)
- Parameters:
stateRetrievalMaxNonProgressingLogWrites
- - See Also:
ConfigurationOverrides.setStateRetrievalMaxNonProgressingLogWrites(java.lang.Integer)
setStateRetrievalInitialRetryWaitTime
public void setStateRetrievalInitialRetryWaitTime(Long stateRetrievalInitialRetryWaitTime)
- Parameters:
stateRetrievalInitialRetryWaitTime
- - See Also:
ConfigurationOverrides.setStateRetrievalInitialRetryWaitTime(java.lang.Long)
setStateRetrievalChunkSize
public void setStateRetrievalChunkSize(Integer stateRetrievalChunkSize)
- Parameters:
stateRetrievalChunkSize
- - See Also:
ConfigurationOverrides.setStateRetrievalChunkSize(java.lang.Integer)
setIsolationLevelClass
public void setIsolationLevelClass(String isolationLevelClass)
- Parameters:
isolationLevelClass
- - See Also:
ConfigurationOverrides.setIsolationLevelClass(java.lang.String)
setUseLazyDeserialization
public void setUseLazyDeserialization(Boolean useLazyDeserialization)
- Parameters:
useLazyDeserialization
- - See Also:
ConfigurationOverrides.setUseLazyDeserialization(java.lang.Boolean)
setL1CacheEnabled
public void setL1CacheEnabled(Boolean l1CacheEnabled)
- Parameters:
l1CacheEnabled
- - See Also:
ConfigurationOverrides.setL1CacheEnabled(java.lang.Boolean)
setL1Lifespan
public void setL1Lifespan(Long l1Lifespan)
- Parameters:
l1Lifespan
- - See Also:
ConfigurationOverrides.setL1Lifespan(java.lang.Long)
setL1OnRehash
public void setL1OnRehash(Boolean l1OnRehash)
- Parameters:
l1OnRehash
- - See Also:
ConfigurationOverrides.setL1OnRehash(java.lang.Boolean)
setConsistentHashClass
public void setConsistentHashClass(String consistentHashClass)
- Parameters:
consistentHashClass
- - See Also:
ConfigurationOverrides.setConsistentHashClass(java.lang.String)
setNumOwners
public void setNumOwners(Integer numOwners)
- Parameters:
numOwners
- - See Also:
ConfigurationOverrides.setNumOwners(java.lang.Integer)
setRehashEnabled
public void setRehashEnabled(Boolean rehashEnabled)
- Parameters:
rehashEnabled
- - See Also:
ConfigurationOverrides.setRehashEnabled(java.lang.Boolean)
setRehashWaitTime
public void setRehashWaitTime(Long rehashWaitTime)
- Parameters:
rehashWaitTime
- - See Also:
ConfigurationOverrides.setRehashWaitTime(java.lang.Long)
setUseAsyncMarshalling
public void setUseAsyncMarshalling(Boolean useAsyncMarshalling)
- Parameters:
useAsyncMarshalling
- - See Also:
ConfigurationOverrides.setUseAsyncMarshalling(java.lang.Boolean)
setIndexingEnabled
public void setIndexingEnabled(Boolean indexingEnabled)
- Parameters:
indexingEnabled
- - See Also:
ConfigurationOverrides.setIndexingEnabled(java.lang.Boolean)
setIndexLocalOnly
public void setIndexLocalOnly(Boolean indexLocalOnly)
- Parameters:
indexLocalOnly
- - See Also:
ConfigurationOverrides.setIndexLocalOnly(java.lang.Boolean)
setCustomInterceptors
public void setCustomInterceptors(List<CustomInterceptorConfig> customInterceptors)
- Parameters:
customInterceptors
- - See Also:
ConfigurationOverrides.setCustomInterceptors(java.util.List)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.