|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.config.ConfigurationComponent
org.jboss.cache.config.Configuration
public class Configuration
Encapsulates the configuration of a Cache.
Nested Class Summary | |
---|---|
static class |
Configuration.CacheMode
Cache replication mode. |
static class |
Configuration.NodeLockingScheme
Cache node locking scheme. |
static class |
Configuration.ShutdownHookBehavior
Behavior of the JVM shutdown hook registered by the cache |
Field Summary | |
---|---|
static short |
DEFAULT_REPLICATION_VERSION
Default replication version, from Version.getVersionShort() . |
Fields inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
log |
Constructor Summary | |
---|---|
Configuration()
|
Method Summary | |
---|---|
Configuration |
clone()
|
boolean |
equals(Object o)
|
BuddyReplicationConfig |
getBuddyReplicationConfig()
|
CacheLoaderConfig |
getCacheLoaderConfig()
|
Configuration.CacheMode |
getCacheMode()
|
String |
getCacheModeString()
|
String |
getClusterConfig()
|
String |
getClusterName()
|
int |
getConcurrencyLevel()
|
BuddyManager |
getConsistentHashing()
|
List<CustomInterceptorConfig> |
getCustomInterceptors()
Returns the CustomInterceptorConfig , if any, associated with this configuration
object. |
URL |
getDefaultClusterConfig()
Returns a URL to a default JGroups configuration file. |
EvictionConfig |
getEvictionConfig()
|
boolean |
getExposeManagementStatistics()
Deprecated. use isExposeManagementStatistics() |
IsolationLevel |
getIsolationLevel()
|
String |
getIsolationLevelString()
|
URL |
getJGroupsConfigFile()
|
int |
getListenerAsyncPoolSize()
Gets the size of the asynchronous listener notification thread pool size. |
int |
getListenerAsyncQueueSize()
|
long |
getLockAcquisitionTimeout()
|
Marshaller |
getMarshaller()
|
String |
getMarshallerClass()
|
String |
getMultiplexerStack()
|
String |
getMuxStackName()
|
Configuration.NodeLockingScheme |
getNodeLockingScheme()
Deprecated. will be removed once optimistic and pessimistic locking is removed. |
String |
getNodeLockingSchemeString()
Deprecated. |
int |
getObjectInputStreamPoolSize()
|
int |
getObjectOutputStreamPoolSize()
|
short |
getReplicationVersion()
|
long |
getReplQueueInterval()
|
int |
getReplQueueMaxElements()
|
String |
getReplVersionString()
|
RuntimeConfig |
getRuntimeConfig()
|
int |
getSerializationExecutorPoolSize()
|
int |
getSerializationExecutorQueueSize()
|
Configuration.ShutdownHookBehavior |
getShutdownHookBehavior()
|
long |
getStateRetrievalTimeout()
|
long |
getSyncReplTimeout()
|
String |
getTransactionManagerLookupClass()
|
int |
hashCode()
|
boolean |
isExposeManagementStatistics()
|
boolean |
isFetchInMemoryState()
|
boolean |
isInactiveOnStartup()
|
boolean |
isInvocationBatchingEnabled()
|
boolean |
isLockParentForChildInsertRemove()
Gets whether inserting or removing a node requires a write lock on the node's parent (when pessimistic locking is used.) The default value is false |
boolean |
isNodeLockingOptimistic()
Deprecated. use getNodeLockingScheme() to determine node locking scheme used. |
boolean |
isNonBlockingStateTransfer()
|
boolean |
isSyncCommitPhase()
|
boolean |
isSyncRollbackPhase()
|
boolean |
isUseLazyDeserialization()
|
boolean |
isUseLockStriping()
|
boolean |
isUseRegionBasedMarshalling()
|
boolean |
isUseReplQueue()
|
boolean |
isUsingBuddyReplication()
|
boolean |
isUsingCacheLoaders()
|
boolean |
isUsingMultiplexer()
|
boolean |
isWriteSkewCheck()
|
static Configuration.CacheMode |
legacyModeToCacheMode(int legacyMode)
|
void |
setBuddyReplicationConfig(BuddyReplicationConfig config)
|
void |
setCacheLoaderConfig(CacheLoaderConfig config)
|
void |
setCacheMarshaller(Marshaller instance)
|
void |
setCacheMode(Configuration.CacheMode cacheModeInt)
|
void |
setCacheMode(String cacheMode)
|
void |
setCacheModeString(String cacheMode)
|
void |
setClusterConfig(Element config)
Converts a list of elements to a Java Groups property string. |
void |
setClusterConfig(String clusterConfig)
|
void |
setClusterName(String clusterName)
|
void |
setConcurrencyLevel(int concurrencyLevel)
|
void |
setCustomInterceptors(List<CustomInterceptorConfig> customInterceptors)
|
void |
setEvictionConfig(EvictionConfig config)
|
void |
setExposeManagementStatistics(boolean useMbean)
|
void |
setFetchInMemoryState(boolean fetchInMemoryState)
|
void |
setInactiveOnStartup(boolean inactiveOnStartup)
|
void |
setInvocationBatchingEnabled(boolean enabled)
Enables invocation batching if set to true. |
void |
setIsolationLevel(IsolationLevel isolationLevel)
|
void |
setIsolationLevel(String isolationLevel)
|
void |
setIsolationLevelString(String isolationLevel)
|
void |
setJgroupsConfigFile(URL jgroupsConfigFile)
|
void |
setListenerAsyncPoolSize(int listenerAsyncPoolSize)
Sets the size of the asynchronous listener notification thread pool size. |
void |
setListenerAsyncQueueSize(int listenerAsyncQueueSize)
Sets the queue size of the bounded queue used to store async listener events on. |
void |
setLockAcquisitionTimeout(long lockAcquisitionTimeout)
|
void |
setLockParentForChildInsertRemove(boolean lockParentForChildInsertRemove)
Sets whether inserting or removing a node requires a write lock on the node's parent (when pessimistic locking is used.) The default value is false |
void |
setMarshallerClass(String marshallerClass)
|
void |
setMultiplexerStack(String stackName)
|
void |
setMuxStackName(String muxStackName)
|
void |
setNodeLockingOptimistic(boolean nodeLockingOptimistic)
Deprecated. |
void |
setNodeLockingScheme(Configuration.NodeLockingScheme nodeLockingScheme)
Deprecated. will default to MVCC once optimistic and pessimistic schemes are removed. |
void |
setNodeLockingScheme(String nodeLockingScheme)
|
void |
setNodeLockingSchemeString(String nodeLockingScheme)
|
void |
setNonBlockingStateTransfer(boolean nonBlockingStateTransfer)
|
void |
setObjectInputStreamPoolSize(int objectInputStreamPoolSize)
Initialises the size of the object input stream pool size, which defaults to 50. |
void |
setObjectOutputStreamPoolSize(int objectOutputStreamPoolSize)
Initialises the size of the object output stream pool size, which defaults to 50. |
void |
setReplicationVersion(short replicationVersion)
|
void |
setReplQueueInterval(long replQueueInterval)
|
void |
setReplQueueMaxElements(int replQueueMaxElements)
|
void |
setReplVersionString(String replVersionString)
|
void |
setRuntimeConfig(RuntimeConfig runtimeConfig)
|
void |
setSerializationExecutorPoolSize(int serializationExecutorPoolSize)
Sets the async replication serialization executor pool size for async replication. |
void |
setSerializationExecutorQueueSize(int serializationExecutorQueueSize)
Sets the queue size of the bounded queue used to store async serialization events on. |
void |
setShutdownHookBehavior(Configuration.ShutdownHookBehavior shutdownHookBehavior)
|
void |
setShutdownHookBehavior(String shutdownHookBehavior)
|
void |
setStateRetrievalTimeout(long stateRetrievalTimeout)
|
void |
setSyncCommitPhase(boolean syncCommitPhase)
|
void |
setSyncReplTimeout(long syncReplTimeout)
|
void |
setSyncRollbackPhase(boolean syncRollbackPhase)
|
void |
setTransactionManagerLookupClass(String transactionManagerLookupClass)
|
void |
setUseLazyDeserialization(boolean useLazyDeserialization)
|
void |
setUseLockStriping(boolean useLockStriping)
|
void |
setUseRegionBasedMarshalling(boolean useRegionBasedMarshalling)
This is a deprecated configuration option. |
void |
setUseReplQueue(boolean useReplQueue)
|
void |
setUsingMultiplexer(boolean usingMultiplexer)
|
void |
setWriteSkewCheck(boolean writeSkewCheck)
|
Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short DEFAULT_REPLICATION_VERSION
Version.getVersionShort()
.
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public static Configuration.CacheMode legacyModeToCacheMode(int legacyMode)
public void setCacheMarshaller(Marshaller instance)
public Marshaller getMarshaller()
public boolean isWriteSkewCheck()
public boolean isUseLockStriping()
public void setWriteSkewCheck(boolean writeSkewCheck)
public void setUseLockStriping(boolean useLockStriping)
public int getConcurrencyLevel()
public void setConcurrencyLevel(int concurrencyLevel)
public void setClusterConfig(Element config)
public void setClusterName(String clusterName)
public void setClusterConfig(String clusterConfig)
public void setReplQueueMaxElements(int replQueueMaxElements)
public void setReplQueueInterval(long replQueueInterval)
public void setExposeManagementStatistics(boolean useMbean)
public void setInvocationBatchingEnabled(boolean enabled)
Cache.startBatch()
and Cache.endBatch(boolean)
to demarcate the start and end of batches.
enabled
- if true, batching is enabled.public void setFetchInMemoryState(boolean fetchInMemoryState)
public void setReplicationVersion(short replicationVersion)
public void setReplVersionString(String replVersionString)
public void setLockAcquisitionTimeout(long lockAcquisitionTimeout)
public void setSyncReplTimeout(long syncReplTimeout)
public void setCacheMode(Configuration.CacheMode cacheModeInt)
public void setCacheMode(String cacheMode)
public String getCacheModeString()
public void setCacheModeString(String cacheMode)
public void setInactiveOnStartup(boolean inactiveOnStartup)
public EvictionConfig getEvictionConfig()
public void setEvictionConfig(EvictionConfig config)
public void setUseRegionBasedMarshalling(boolean useRegionBasedMarshalling)
isUseLazyDeserialization()
, which is enabled by default, custom class loaders are handled implicitly.
See the user guide for details on how this is handled.
public void setTransactionManagerLookupClass(String transactionManagerLookupClass)
public void setCacheLoaderConfig(CacheLoaderConfig config)
public void setSyncCommitPhase(boolean syncCommitPhase)
public void setSyncRollbackPhase(boolean syncRollbackPhase)
public void setListenerAsyncPoolSize(int listenerAsyncPoolSize)
CacheListener.sync()
are notified
synchronously.
listenerAsyncPoolSize
- number of threads in poolpublic void setListenerAsyncQueueSize(int listenerAsyncQueueSize)
listenerAsyncQueueSize
- queue size to usepublic void setSerializationExecutorQueueSize(int serializationExecutorQueueSize)
serializationExecutorQueueSize
- queue size to usepublic void setBuddyReplicationConfig(BuddyReplicationConfig config)
@Deprecated public void setNodeLockingScheme(Configuration.NodeLockingScheme nodeLockingScheme)
nodeLockingScheme
- public void setUseReplQueue(boolean useReplQueue)
public void setIsolationLevel(IsolationLevel isolationLevel)
@Deprecated public void setNodeLockingOptimistic(boolean nodeLockingOptimistic)
public void setStateRetrievalTimeout(long stateRetrievalTimeout)
public void setNodeLockingScheme(String nodeLockingScheme)
@Deprecated public String getNodeLockingSchemeString()
public void setNodeLockingSchemeString(String nodeLockingScheme)
public void setIsolationLevel(String isolationLevel)
public String getIsolationLevelString()
public void setIsolationLevelString(String isolationLevel)
public void setLockParentForChildInsertRemove(boolean lockParentForChildInsertRemove)
false
public void setMultiplexerStack(String stackName)
public boolean isUsingMultiplexer()
public void setUsingMultiplexer(boolean usingMultiplexer)
public void setShutdownHookBehavior(Configuration.ShutdownHookBehavior shutdownHookBehavior)
public void setShutdownHookBehavior(String shutdownHookBehavior)
public void setUseLazyDeserialization(boolean useLazyDeserialization)
public void setObjectInputStreamPoolSize(int objectInputStreamPoolSize)
objectInputStreamPoolSize
- public void setObjectOutputStreamPoolSize(int objectOutputStreamPoolSize)
objectOutputStreamPoolSize
- public void setSerializationExecutorPoolSize(int serializationExecutorPoolSize)
serializationExecutorPoolSize
- number of threads to usepublic Configuration.ShutdownHookBehavior getShutdownHookBehavior()
@Deprecated public boolean isNodeLockingOptimistic()
getNodeLockingScheme()
to determine node locking scheme used.
public boolean isUseReplQueue()
public String getClusterName()
public String getClusterConfig()
public int getReplQueueMaxElements()
public long getReplQueueInterval()
@Deprecated public boolean getExposeManagementStatistics()
public boolean isExposeManagementStatistics()
public boolean isInvocationBatchingEnabled()
public boolean isFetchInMemoryState()
public short getReplicationVersion()
public String getReplVersionString()
public long getLockAcquisitionTimeout()
public long getSyncReplTimeout()
public Configuration.CacheMode getCacheMode()
public boolean isInactiveOnStartup()
public IsolationLevel getIsolationLevel()
public boolean isLockParentForChildInsertRemove()
false
public boolean isUseRegionBasedMarshalling()
public String getTransactionManagerLookupClass()
public CacheLoaderConfig getCacheLoaderConfig()
public boolean isSyncCommitPhase()
public boolean isSyncRollbackPhase()
public int getListenerAsyncPoolSize()
CacheListener.sync()
are notified
synchronously.
public BuddyReplicationConfig getBuddyReplicationConfig()
@Deprecated public Configuration.NodeLockingScheme getNodeLockingScheme()
public long getStateRetrievalTimeout()
public String getMultiplexerStack()
public boolean isUseLazyDeserialization()
public RuntimeConfig getRuntimeConfig()
public void setRuntimeConfig(RuntimeConfig runtimeConfig)
public String getMarshallerClass()
public void setMarshallerClass(String marshallerClass)
public int getObjectInputStreamPoolSize()
public int getObjectOutputStreamPoolSize()
public URL getDefaultClusterConfig()
URL
to a default JGroups configuration file.
public URL getJGroupsConfigFile()
public void setJgroupsConfigFile(URL jgroupsConfigFile)
public int getSerializationExecutorPoolSize()
public int getListenerAsyncQueueSize()
public int getSerializationExecutorQueueSize()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Configuration clone() throws CloneNotSupportedException
clone
in interface CloneableConfigurationComponent
clone
in class ConfigurationComponent
CloneNotSupportedException
public boolean isUsingCacheLoaders()
public boolean isUsingBuddyReplication()
public String getMuxStackName()
public void setMuxStackName(String muxStackName)
public List<CustomInterceptorConfig> getCustomInterceptors()
CustomInterceptorConfig
, if any, associated with this configuration
object. The custom interceptors will be added to the cache at startup in the sequence defined by this list.
public void setCustomInterceptors(List<CustomInterceptorConfig> customInterceptors)
getCustomInterceptors()
public BuddyManager getConsistentHashing()
public boolean isNonBlockingStateTransfer()
public void setNonBlockingStateTransfer(boolean nonBlockingStateTransfer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |