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 ConfigurationBuilder
builder
protected DataConfigurationBuilder
data
protected IndexConfigurationBuilder
index
-
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 Configuration
build()
ClusteringConfigurationBuilder
clustering()
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.SoftIndexFileStoreConfiguration
create()
Create the configuration beanCustomInterceptorsConfigurationBuilder
customInterceptors()
Deprecated.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsSoftIndexFileStoreConfigurationBuilder
dataLocation(String dataLocation)
The path where the Soft-Index store will keep its data files.EncodingConfigurationBuilder
encoding()
ExpirationConfigurationBuilder
expiration()
protected ConfigurationBuilder
getBuilder()
IndexingConfigurationBuilder
indexing()
SoftIndexFileStoreConfigurationBuilder
indexLocation(String indexLocation)
The path where the Soft-Index store will keep its index files.SoftIndexFileStoreConfigurationBuilder
indexQueueLength(int indexQueueLength)
Sets the maximum number of entry writes that are waiting to be written to the index, per index segment.SoftIndexFileStoreConfigurationBuilder
indexSegments(int indexSegments)
Number of index segment files.InvocationBatchingConfigurationBuilder
invocationBatching()
LockingConfigurationBuilder
locking()
SoftIndexFileStoreConfigurationBuilder
maxFileSize(int maxFileSize)
Sets the maximum size of single data file with entries, in bytes.SoftIndexFileStoreConfigurationBuilder
maxNodeSize(int maxNodeSize)
Max size of node (continuous block on filesystem used in index implementation), in bytes.MemoryConfigurationBuilder
memory()
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.SoftIndexFileStoreConfigurationBuilder
openFilesLimit(int openFilesLimit)
Sets the maximum number of open files.PersistenceConfigurationBuilder
persistence()
Builder<?>
read(SoftIndexFileStoreConfiguration template)
Reads the configuration from an already created configuration bean into this builder.SecurityConfigurationBuilder
security()
SoftIndexFileStoreConfigurationBuilder
self()
boolean
simpleCache()
ConfigurationChildBuilder
simpleCache(boolean simpleCache)
SitesConfigurationBuilder
sites()
StatisticsConfigurationBuilder
statistics()
SoftIndexFileStoreConfigurationBuilder
syncWrites(boolean syncWrites)
Sets whether writes shoud wait to be fsynced to disk.ConfigurationChildBuilder
template(boolean template)
String
toString()
TransactionConfigurationBuilder
transaction()
UnsafeConfigurationBuilder
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 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 adata
directory 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 aindex
directory 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:Builder
Create the configuration bean- Returns:
-
read
public Builder<?> read(SoftIndexFileStoreConfiguration template)
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.
-
self
public SoftIndexFileStoreConfigurationBuilder self()
-
validate
protected void validate(boolean skipClassChecks)
-
validate
public void validate(GlobalConfiguration globalConfig)
- Specified by:
validate
in interfaceConfigurationChildBuilder
- Overrides:
validate
in classAbstractStoreConfigurationBuilder<SoftIndexFileStoreConfiguration,SoftIndexFileStoreConfigurationBuilder>
-
toString
public String toString()
-
template
public ConfigurationChildBuilder template(boolean template)
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clustering
in 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:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
public EncodingConfigurationBuilder encoding()
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
public StatisticsConfigurationBuilder statistics()
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
public PersistenceConfigurationBuilder persistence()
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
public LockingConfigurationBuilder locking()
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
public SecurityConfigurationBuilder security()
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
public SitesConfigurationBuilder sites()
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
public MemoryConfigurationBuilder memory()
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
protected ConfigurationBuilder getBuilder()
-
build
public Configuration build()
- Specified by:
build
in interfaceConfigurationChildBuilder
-
-