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>
- Direct Known Subclasses:
SFSToSIFSConfigurationBuilder
public class SoftIndexFileStoreConfigurationBuilder
extends AbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,SoftIndexFileStoreConfigurationBuilder>
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ConfigurationBuilder
protected final DataConfigurationBuilder
protected final IndexConfigurationBuilder
Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
async, attributes
-
Constructor Summary
ConstructorDescriptionSoftIndexFileStoreConfigurationBuilder
(PersistenceConfigurationBuilder builder, AttributeSet attributeSet, AttributeSet asyncAttributeSet) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
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.create()
Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsdataLocation
(String dataLocation) The path where the Soft-Index store will keep its data files.encoding()
protected ConfigurationBuilder
indexing()
indexLocation
(String indexLocation) The path where the Soft-Index store will keep its index files.indexQueueLength
(int indexQueueLength) Sets the maximum number of entry writes that are waiting to be written to the index, per index segment.indexSegments
(int indexSegments) Deprecated.locking()
maxFileSize
(int maxFileSize) Sets the maximum size of single data file with entries, in bytes.maxNodeSize
(int maxNodeSize) Max size of node (continuous block on filesystem used in index implementation), in bytes.memory()
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.openFilesLimit
(int openFilesLimit) Sets the maximum number of open files.query()
Builder<?>
read
(SoftIndexFileStoreConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()
self()
boolean
simpleCache
(boolean simpleCache) sites()
syncWrites
(boolean syncWrites) Sets whether writes shoud wait to be fsynced to disk.template
(boolean template) toString()
unsafe()
protected void
validate
(boolean skipClassChecks) void
validate
(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Field Details
-
index
-
data
-
builder
-
-
Constructor Details
-
SoftIndexFileStoreConfigurationBuilder
-
SoftIndexFileStoreConfigurationBuilder
public SoftIndexFileStoreConfigurationBuilder(PersistenceConfigurationBuilder builder, AttributeSet attributeSet, AttributeSet asyncAttributeSet)
-
-
Method Details
-
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 adata
directory will be created. The default behaviour is to use theGlobalStateConfiguration.persistentLocation()
. -
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 aindex
directory will be created. The default behaviour is to use theGlobalStateConfiguration.persistentLocation()
. -
indexSegments
@Deprecated(since="15.0") public SoftIndexFileStoreConfigurationBuilder indexSegments(int indexSegments) Deprecated.No longer used, the number of index segments is determined solely by the number of cache segments. -
maxFileSize
Sets the maximum size of single data file with entries, in bytes. Defaults to16777216
(16MB). -
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
Max size of node (continuous block on filesystem used in index implementation), in bytes. Defaults to4096
. -
indexQueueLength
Sets the maximum number of entry writes that are waiting to be written to the index, per index segment. Defaults to1000
. -
syncWrites
Sets whether writes shoud wait to be fsynced to disk. Defaults tofalse
. -
openFilesLimit
Sets the maximum number of open files. Defaults to1000
. -
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
Description copied from interface:Builder
Create the configuration bean- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<SoftIndexFileStoreConfiguration>
- Overrides:
read
in classAbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,
SoftIndexFileStoreConfigurationBuilder> - Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
self
-
validate
protected void validate(boolean skipClassChecks) -
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
- Overrides:
validate
in classAbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,
SoftIndexFileStoreConfigurationBuilder>
-
toString
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-