|
||||||||||
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. |
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()
Default empty constructor |
|
Configuration(CacheImpl cache)
Sets a reference to an existing CacheImpl instance |
Methods inherited from class org.jboss.cache.config.ConfigurationComponent |
---|
addChildConfig, addChildConfigs, getTreeCache, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, safeEquals, setCacheImpl, 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(CacheImpl cache)
cache
- public Configuration()
Method Detail |
---|
public static Configuration.CacheMode legacyModeToCacheMode(int legacyMode)
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 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)
public void setTransactionManagerLookupClass(String transactionManagerLookupClass)
public void setCacheLoaderConfig(CacheLoaderConfig config)
public void setSyncCommitPhase(boolean syncCommitPhase)
public void setSyncRollbackPhase(boolean syncRollbackPhase)
public void setBuddyReplicationConfig(BuddyReplicationConfig config)
public void setNodeLockingScheme(Configuration.NodeLockingScheme nodeLockingScheme)
public void setUseReplQueue(boolean useReplQueue)
public void setIsolationLevel(IsolationLevel isolationLevel)
public void setNodeLockingOptimistic(boolean nodeLockingOptimistic)
@Deprecated public void setInitialStateRetrievalTimeout(long stateRetrievalTimeout)
public void setStateRetrievalTimeout(long stateRetrievalTimeout)
public void setNodeLockingScheme(String nodeLockingScheme)
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 boolean isNodeLockingOptimistic()
public boolean isUseReplQueue()
public String getClusterName()
public String getClusterConfig()
public int getReplQueueMaxElements()
public long getReplQueueInterval()
public boolean getExposeManagementStatistics()
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 BuddyReplicationConfig getBuddyReplicationConfig()
public Configuration.NodeLockingScheme getNodeLockingScheme()
@Deprecated public long getInitialStateRetrievalTimeout()
public long getStateRetrievalTimeout()
public String getMultiplexerStack()
public RuntimeConfig getRuntimeConfig()
public void setRuntimeConfig(RuntimeConfig runtimeConfig)
public String getMarshallerClass()
public void setMarshallerClass(String marshallerClass)
public int getNumberOfNotifierThreads()
public void setNumberOfNotifierThreads(int numberOfNotifierThreads)
public URL getDefaultClusterConfig()
URL
to a default JGroups configuration file.
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Configuration clone() throws CloneNotSupportedException
clone
in class ConfigurationComponent
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |