Class GlobalStateConfiguration
- java.lang.Object
-
- org.infinispan.configuration.global.GlobalStateConfiguration
-
public class GlobalStateConfiguration extends Object
GlobalStateConfiguration.- Since:
- 8.1
- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<ConfigurationStorage>CONFIGURATION_STORAGEstatic AttributeDefinition<Supplier<? extends LocalConfigurationStorage>>CONFIGURATION_STORAGE_SUPPLIERstatic AttributeDefinition<Boolean>ENABLEDstatic AttributeDefinition<String>PERSISTENT_LOCATIONstatic AttributeDefinition<String>SHARED_PERSISTENT_LOCATIONstatic AttributeDefinition<String>TEMPORARY_LOCATION
-
Constructor Summary
Constructors Constructor Description GlobalStateConfiguration(AttributeSet attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeSetattributeDefinitionSet()AttributeSetattributes()ConfigurationStorageconfigurationStorage()Supplier<? extends LocalConfigurationStorage>configurationStorageClass()Returns theLocalConfigurationStorageSupplierbooleanenabled()StringpersistentLocation()Returns the filesystem path where persistent state data which needs to survive container restarts should be stored.StringsharedPersistentLocation()Returns the filesystem path where shared persistent state data which needs to survive container restarts should be stored.StringtemporaryLocation()Returns the filesystem path where temporary state should be stored.StringtoString()
-
-
-
Field Detail
-
ENABLED
public static final AttributeDefinition<Boolean> ENABLED
-
PERSISTENT_LOCATION
public static final AttributeDefinition<String> PERSISTENT_LOCATION
-
SHARED_PERSISTENT_LOCATION
public static final AttributeDefinition<String> SHARED_PERSISTENT_LOCATION
-
TEMPORARY_LOCATION
public static final AttributeDefinition<String> TEMPORARY_LOCATION
-
CONFIGURATION_STORAGE
public static final AttributeDefinition<ConfigurationStorage> CONFIGURATION_STORAGE
-
CONFIGURATION_STORAGE_SUPPLIER
public static final AttributeDefinition<Supplier<? extends LocalConfigurationStorage>> CONFIGURATION_STORAGE_SUPPLIER
-
-
Constructor Detail
-
GlobalStateConfiguration
public GlobalStateConfiguration(AttributeSet attributes)
-
-
Method Detail
-
attributeDefinitionSet
public static AttributeSet attributeDefinitionSet()
-
enabled
public boolean enabled()
-
persistentLocation
public 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.
-
sharedPersistentLocation
public 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.
-
temporaryLocation
public String temporaryLocation()
Returns the filesystem path where temporary state should be stored. Defaults to the value of the java.io.tmpdir system property.
-
configurationStorage
public ConfigurationStorage configurationStorage()
-
configurationStorageClass
public Supplier<? extends LocalConfigurationStorage> configurationStorageClass()
Returns theLocalConfigurationStorageSupplier
-
attributes
public AttributeSet attributes()
-
-