Class SingleFileStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractStoreConfiguration
-
- org.infinispan.configuration.cache.AbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration>
-
- org.infinispan.configuration.cache.SingleFileStoreConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
,StoreConfiguration
public class SingleFileStoreConfiguration extends AbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration> implements ConfigurationInfo
Defines the configuration for the single file cache store.- Since:
- 6.0
- Author:
- Galder ZamarreƱo
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<Float>
FRAGMENTATION_FACTOR
static org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
LOCATION
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>
MAX_ENTRIES
-
Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration
attributes, FETCH_PERSISTENT_STATE, IGNORE_MODIFICATIONS, MAX_BATCH_SIZE, PRELOAD, PROPERTIES, PURGE_ON_STARTUP, SEGMENTED, SHARED, TRANSACTIONAL, WRITE_ONLY
-
-
Constructor Summary
Constructors Constructor Description SingleFileStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, AsyncStoreConfiguration async)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.infinispan.commons.configuration.attributes.AttributeSet
attributeDefinitionSet()
org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
float
fragmentationFactor()
org.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
String
location()
int
maxEntries()
SingleFileStoreConfiguration
newConfigurationFrom(int segment, InitializationContext ctx)
Same asAbstractSegmentedStoreConfiguration.newConfigurationFrom(int)
except that you can utilize the intialization context when initializing the segmented store object.List<ConfigurationInfo>
subElements()
String
toString()
-
Methods inherited from class org.infinispan.configuration.cache.AbstractSegmentedStoreConfiguration
fileLocationTransform, newConfigurationFrom
-
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration
async, equals, fetchPersistentState, hashCode, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, transactional, writeOnly
-
-
-
-
Field Detail
-
LOCATION
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> LOCATION
-
MAX_ENTRIES
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> MAX_ENTRIES
-
FRAGMENTATION_FACTOR
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Float> FRAGMENTATION_FACTOR
-
-
Constructor Detail
-
SingleFileStoreConfiguration
public SingleFileStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, AsyncStoreConfiguration async)
-
-
Method Detail
-
attributeDefinitionSet
public static org.infinispan.commons.configuration.attributes.AttributeSet attributeDefinitionSet()
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
subElements
public List<ConfigurationInfo> subElements()
- Specified by:
subElements
in interfaceConfigurationInfo
- Overrides:
subElements
in classAbstractStoreConfiguration
- Returns:
- the list of sub elements.
-
newConfigurationFrom
public SingleFileStoreConfiguration newConfigurationFrom(int segment, InitializationContext ctx)
Description copied from class:AbstractSegmentedStoreConfiguration
Same asAbstractSegmentedStoreConfiguration.newConfigurationFrom(int)
except that you can utilize the intialization context when initializing the segmented store object. This method- Overrides:
newConfigurationFrom
in classAbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration>
- Parameters:
segment
- the segment to usectx
- the initialization context from the persistence layer- Returns:
- the newly created configuration
-
location
public String location()
-
maxEntries
public int maxEntries()
-
fragmentationFactor
public float fragmentationFactor()
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Overrides:
attributes
in classAbstractStoreConfiguration
- Returns:
- the
AttributeSet
declared by the configuration.
-
toString
public String toString()
- Overrides:
toString
in classAbstractStoreConfiguration
-
-