Class SoftIndexFileStoreConfigurationBuilder
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
-
- org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,SoftIndexFileStoreConfigurationBuilder>
-
- org.infinispan.persistence.sifs.configuration.SoftIndexFileStoreConfigurationBuilder
-
- All Implemented Interfaces:
Builder<SoftIndexFileStoreConfiguration>,Self<SoftIndexFileStoreConfigurationBuilder>,ConfigurationChildBuilder,PersistenceConfigurationChildBuilder,StoreConfigurationBuilder<SoftIndexFileStoreConfiguration,SoftIndexFileStoreConfigurationBuilder>,StoreConfigurationChildBuilder<SoftIndexFileStoreConfigurationBuilder>
public class SoftIndexFileStoreConfigurationBuilder extends AbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,SoftIndexFileStoreConfigurationBuilder>
- Author:
- Radim Vansa <rvansa@redhat.com>
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationBuilderbuilderprotected DataConfigurationBuilderdataprotected IndexConfigurationBuilderindex-
Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
async, attributes
-
-
Constructor Summary
Constructors Constructor Description SoftIndexFileStoreConfigurationBuilder(PersistenceConfigurationBuilder builder)SoftIndexFileStoreConfigurationBuilder(PersistenceConfigurationBuilder builder, org.infinispan.commons.configuration.attributes.AttributeSet attributeSet, org.infinispan.commons.configuration.attributes.AttributeSet asyncAttributeSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Configurationbuild()ClusteringConfigurationBuilderclustering()SoftIndexFileStoreConfigurationBuildercompactionThreshold(double compactionThreshold)If the amount of unused space in some data file gets above this threshold, the file is compacted - entries from that file are copied to a new file and the old file is deleted.SoftIndexFileStoreConfigurationcreate()Create the configuration beanCustomInterceptorsConfigurationBuildercustomInterceptors()Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsSoftIndexFileStoreConfigurationBuilderdataLocation(String dataLocation)The path where the Soft-Index store will keep its data files.EncodingConfigurationBuilderencoding()ExpirationConfigurationBuilderexpiration()protected ConfigurationBuildergetBuilder()IndexingConfigurationBuilderindexing()SoftIndexFileStoreConfigurationBuilderindexLocation(String indexLocation)The path where the Soft-Index store will keep its index files.SoftIndexFileStoreConfigurationBuilderindexQueueLength(int indexQueueLength)Sets the maximum number of entry writes that are waiting to be written to the index, per index segment.SoftIndexFileStoreConfigurationBuilderindexSegments(int indexSegments)Number of index segment files.InvocationBatchingConfigurationBuilderinvocationBatching()LockingConfigurationBuilderlocking()SoftIndexFileStoreConfigurationBuildermaxFileSize(int maxFileSize)Sets the maximum size of single data file with entries, in bytes.SoftIndexFileStoreConfigurationBuildermaxNodeSize(int maxNodeSize)Max size of node (continuous block on filesystem used in index implementation), in bytes.MemoryConfigurationBuildermemory()SoftIndexFileStoreConfigurationBuilderminNodeSize(int minNodeSize)If the size of the node (continuous block on filesystem used in index implementation) drops below this threshold, the node will try to balance its size with some neighbour node, possibly causing join of multiple nodes.SoftIndexFileStoreConfigurationBuilderopenFilesLimit(int openFilesLimit)Sets the maximum number of open files.PersistenceConfigurationBuilderpersistence()Builder<?>read(SoftIndexFileStoreConfiguration template)Reads the configuration from an already created configuration bean into this builder.SecurityConfigurationBuildersecurity()SoftIndexFileStoreConfigurationBuilderself()booleansimpleCache()ConfigurationChildBuildersimpleCache(boolean simpleCache)SitesConfigurationBuildersites()StatisticsConfigurationBuilderstatistics()SoftIndexFileStoreConfigurationBuildersyncWrites(boolean syncWrites)Sets whether writes shoud wait to be fsynced to disk.ConfigurationChildBuildertemplate(boolean template)StringtoString()TransactionConfigurationBuildertransaction()UnsafeConfigurationBuilderunsafe()protected voidvalidate(boolean skipClassChecks)voidvalidate(GlobalConfiguration globalConfig)-
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
addProperty, async, attributes, fetchPersistentState, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, transactional, validate, withProperties, writeOnly
-
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
-
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
-
-
-
Field Detail
-
index
protected final IndexConfigurationBuilder index
-
data
protected final DataConfigurationBuilder data
-
builder
protected final ConfigurationBuilder builder
-
-
Constructor Detail
-
SoftIndexFileStoreConfigurationBuilder
public SoftIndexFileStoreConfigurationBuilder(PersistenceConfigurationBuilder builder)
-
SoftIndexFileStoreConfigurationBuilder
public SoftIndexFileStoreConfigurationBuilder(PersistenceConfigurationBuilder builder, org.infinispan.commons.configuration.attributes.AttributeSet attributeSet, org.infinispan.commons.configuration.attributes.AttributeSet asyncAttributeSet)
-
-
Method Detail
-
dataLocation
public SoftIndexFileStoreConfigurationBuilder dataLocation(String dataLocation)
The path where the Soft-Index store will keep its data files. Under this location the store will create a directory named after the cache name, under which adatadirectory will be created. The default behaviour is to use theGlobalStateConfiguration.persistentLocation().
-
indexLocation
public SoftIndexFileStoreConfigurationBuilder indexLocation(String indexLocation)
The path where the Soft-Index store will keep its index files. Under this location the store will create a directory named after the cache name, under which aindexdirectory will be created. The default behaviour is to use theGlobalStateConfiguration.persistentLocation().
-
indexSegments
public SoftIndexFileStoreConfigurationBuilder indexSegments(int indexSegments)
Number of index segment files. Increasing this value improves throughput but requires more threads to be spawned.Defaults to
16.
-
maxFileSize
public SoftIndexFileStoreConfigurationBuilder maxFileSize(int maxFileSize)
Sets the maximum size of single data file with entries, in bytes. Defaults to16777216(16MB).
-
minNodeSize
public SoftIndexFileStoreConfigurationBuilder minNodeSize(int minNodeSize)
If the size of the node (continuous block on filesystem used in index implementation) drops below this threshold, the node will try to balance its size with some neighbour node, possibly causing join of multiple nodes. Defaults to0.
-
maxNodeSize
public SoftIndexFileStoreConfigurationBuilder maxNodeSize(int maxNodeSize)
Max size of node (continuous block on filesystem used in index implementation), in bytes. Defaults to4096.
-
indexQueueLength
public SoftIndexFileStoreConfigurationBuilder indexQueueLength(int indexQueueLength)
Sets the maximum number of entry writes that are waiting to be written to the index, per index segment. Defaults to1000.
-
syncWrites
public SoftIndexFileStoreConfigurationBuilder syncWrites(boolean syncWrites)
Sets whether writes shoud wait to be fsynced to disk. Defaults tofalse.
-
openFilesLimit
public SoftIndexFileStoreConfigurationBuilder openFilesLimit(int openFilesLimit)
Sets the maximum number of open files. Defaults to1000.
-
compactionThreshold
public SoftIndexFileStoreConfigurationBuilder compactionThreshold(double compactionThreshold)
If the amount of unused space in some data file gets above this threshold, the file is compacted - entries from that file are copied to a new file and the old file is deleted. Defaults to0.5(50%).
-
create
public SoftIndexFileStoreConfiguration create()
Description copied from interface:BuilderCreate the configuration bean- Returns:
-
read
public Builder<?> read(SoftIndexFileStoreConfiguration template)
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<SoftIndexFileStoreConfiguration>- Overrides:
readin classAbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,SoftIndexFileStoreConfigurationBuilder>- Parameters:
template- the configuration from which to "clone" this config if needed.
-
self
public SoftIndexFileStoreConfigurationBuilder self()
-
validate
protected void validate(boolean skipClassChecks)
-
validate
public void validate(GlobalConfiguration globalConfig)
- Specified by:
validatein interfaceConfigurationChildBuilder- Overrides:
validatein classAbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,SoftIndexFileStoreConfigurationBuilder>
-
toString
public String toString()
-
template
public ConfigurationChildBuilder template(boolean template)
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
@Deprecated public CustomInterceptorsConfigurationBuilder customInterceptors()
Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
public EncodingConfigurationBuilder encoding()
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
public StatisticsConfigurationBuilder statistics()
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
public PersistenceConfigurationBuilder persistence()
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
public LockingConfigurationBuilder locking()
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
public SecurityConfigurationBuilder security()
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
public SitesConfigurationBuilder sites()
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
public MemoryConfigurationBuilder memory()
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
protected ConfigurationBuilder getBuilder()
-
build
public Configuration build()
- Specified by:
buildin interfaceConfigurationChildBuilder
-
-