Class GlobalStateConfiguration
- java.lang.Object
-
- org.infinispan.configuration.global.GlobalStateConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
public class GlobalStateConfiguration extends java.lang.Object implements ConfigurationInfo
GlobalStateConfiguration.- Since:
- 8.1
- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<java.lang.Boolean>
ENABLED
-
Constructor Summary
Constructors Constructor Description GlobalStateConfiguration(AttributeSet attributes, GlobalStatePathConfiguration persistenceLocationConfiguration, GlobalStatePathConfiguration sharedPersistenceLocationConfiguration, TemporaryGlobalStatePathConfiguration temporaryLocationConfiguration, GlobalStorageConfiguration globalStorageConfiguration)
-
Method Summary
-
-
-
Field Detail
-
ENABLED
public static final AttributeDefinition<java.lang.Boolean> ENABLED
-
-
Constructor Detail
-
GlobalStateConfiguration
public GlobalStateConfiguration(AttributeSet attributes, GlobalStatePathConfiguration persistenceLocationConfiguration, GlobalStatePathConfiguration sharedPersistenceLocationConfiguration, TemporaryGlobalStatePathConfiguration temporaryLocationConfiguration, GlobalStorageConfiguration globalStorageConfiguration)
-
-
Method Detail
-
attributeDefinitionSet
public static AttributeSet attributeDefinitionSet()
-
subElements
public java.util.List<ConfigurationInfo> subElements()
- Specified by:
subElements
in interfaceConfigurationInfo
- Returns:
- the list of sub elements.
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
enabled
public boolean enabled()
-
persistentLocation
public java.lang.String persistentLocation()
Returns the filesystem path where persistent state data which needs to survive container restarts should be stored. Defaults to the user.dir system property which usually is where the application was started. Warning: this path must NOT be shared with other instances.
-
persistenceConfiguration
public GlobalStatePathConfiguration persistenceConfiguration()
-
sharedPersistentLocation
public java.lang.String sharedPersistentLocation()
Returns the filesystem path where shared persistent state data which needs to survive container restarts should be stored. Defaults to the user.dir system property which usually is where the application was started. This path may be shared among multiple instances.
-
sharedPersistenceConfiguration
public GlobalStatePathConfiguration sharedPersistenceConfiguration()
-
temporaryLocation
public java.lang.String temporaryLocation()
Returns the filesystem path where temporary state should be stored. Defaults to the value of the java.io.tmpdir system property.
-
temporaryLocationConfiguration
public TemporaryGlobalStatePathConfiguration temporaryLocationConfiguration()
-
configurationStorage
public ConfigurationStorage configurationStorage()
-
globalStorageConfiguration
public GlobalStorageConfiguration globalStorageConfiguration()
-
configurationStorageClass
public java.util.function.Supplier<? extends LocalConfigurationStorage> configurationStorageClass()
Returns theLocalConfigurationStorage
Supplier
-
attributes
public AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-