Class GlobalStateConfigurationBuilder
java.lang.Object
org.infinispan.configuration.global.GlobalStateConfigurationBuilder
- All Implemented Interfaces:
Builder<GlobalStateConfiguration>,GlobalConfigurationChildBuilder
public class GlobalStateConfigurationBuilder
extends Object
implements Builder<GlobalStateConfiguration>
GlobalStateConfigurationBuilder. Configures filesystem paths where global state is stored.
- Since:
- 8.1
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptionConfiguration for the asynchronous operations thread poolConfiguration for the blocking thread poolbuild()Builds aGlobalConfigurationobject using the settings applied to this builderconfigurationStorage(ConfigurationStorage storage) Defines theConfigurationStoragestrategy to use.configurationStorageSupplier(Supplier<? extends LocalConfigurationStorage> configurationStorageSupplier) Defines the @LocalConfigurationStorage.create()Create the configuration beandefaultCacheName(String defaultCacheName) Sets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache().disable()enable()booleanenabled()enabled(boolean enabled) Enables or disables the storage of global state.Configuration for the expiration thread poolprotected GlobalConfigurationBuilderGlobal state configurationjmx()Global JMX configuration.Configuration for the listener thread poolmetrics()Global metrics configuration.modules()Global modules configurationConfiguration for the non blocking thread poolConfiguration for the persistence thread poolpersistentLocation(String location) Defines the filesystem path where node-specific persistent data which needs to survive container restarts should be stored.persistentLocation(String path, String relativeTo) Builder<?>read(GlobalStateConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()Security-related configurationGlobal serialization (i.e.sharedPersistentLocation(String location) Defines the filesystem path where shared persistent state data which needs to survive container restarts should be stored.sharedPersistentLocation(String path, String relativeTo) shutdown()Shutdown configurationsite()Cross-site replication configurationConfiguration for the state-transfer thread pooltemporaryLocation(String location) Defines the filesystem path where temporary state should be stored.temporaryLocation(String path, String relativeTo) Transport-related (i.e.voidvalidate()Validate the data in this builder before building the configuration beanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.configuration.global.GlobalConfigurationChildBuilder
globalJmxStatistics
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<GlobalStateConfiguration>
-
enable
-
disable
-
enabled
Enables or disables the storage of global state. -
enabled
public boolean enabled() -
persistentLocation
Defines the filesystem path where node-specific persistent data which needs to survive container restarts should be stored. This path will be used as the default storage location for file-based cache stores such as the defaultSingleFileStoreas well as the consistent hash for all caches which enables graceful shutdown and restart. Because the data stored in the persistent location is specific to the node that owns it, this path MUST NOT be shared among multiple instances. Defaults to the user.dir system property which usually is where the application was started. This value should be overridden to a more appropriate location. -
persistentLocation
-
temporaryLocation
Defines the filesystem path where temporary state should be stored. Defaults to the value of the java.io.tmpdir system property. -
temporaryLocation
-
configurationStorage
Defines theConfigurationStoragestrategy to use. If usingConfigurationStorage.CUSTOM, then the actual implementation must be passed by invokingconfigurationStorageSupplier(Supplier) -
configurationStorageSupplier
public GlobalStateConfigurationBuilder configurationStorageSupplier(Supplier<? extends LocalConfigurationStorage> configurationStorageSupplier) Defines the @LocalConfigurationStorage. Defaults to @VolatileLocalConfigurationStorage -
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<GlobalStateConfiguration>
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<GlobalStateConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<GlobalStateConfiguration>- 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.
-
getGlobalConfig
-
transport
Description copied from interface:GlobalConfigurationChildBuilderTransport-related (i.e. clustering) configuration- Specified by:
transportin interfaceGlobalConfigurationChildBuilder
-
metrics
Description copied from interface:GlobalConfigurationChildBuilderGlobal metrics configuration.- Specified by:
metricsin interfaceGlobalConfigurationChildBuilder
-
jmx
Description copied from interface:GlobalConfigurationChildBuilderGlobal JMX configuration.- Specified by:
jmxin interfaceGlobalConfigurationChildBuilder
-
globalState
Description copied from interface:GlobalConfigurationChildBuilderGlobal state configuration- Specified by:
globalStatein interfaceGlobalConfigurationChildBuilder
-
serialization
Description copied from interface:GlobalConfigurationChildBuilderGlobal serialization (i.e. marshalling) configuration- Specified by:
serializationin interfaceGlobalConfigurationChildBuilder
-
listenerThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the listener thread pool- Specified by:
listenerThreadPoolin interfaceGlobalConfigurationChildBuilder
-
asyncThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the asynchronous operations thread pool- Specified by:
asyncThreadPoolin interfaceGlobalConfigurationChildBuilder
-
expirationThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the expiration thread pool- Specified by:
expirationThreadPoolin interfaceGlobalConfigurationChildBuilder
-
persistenceThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the persistence thread pool- Specified by:
persistenceThreadPoolin interfaceGlobalConfigurationChildBuilder
-
stateTransferThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the state-transfer thread pool- Specified by:
stateTransferThreadPoolin interfaceGlobalConfigurationChildBuilder
-
blockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the blocking thread pool- Specified by:
blockingThreadPoolin interfaceGlobalConfigurationChildBuilder
-
nonBlockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilderConfiguration for the non blocking thread pool- Specified by:
nonBlockingThreadPoolin interfaceGlobalConfigurationChildBuilder
-
security
Description copied from interface:GlobalConfigurationChildBuilderSecurity-related configuration- Specified by:
securityin interfaceGlobalConfigurationChildBuilder
-
shutdown
Description copied from interface:GlobalConfigurationChildBuilderShutdown configuration- Specified by:
shutdownin interfaceGlobalConfigurationChildBuilder
-
site
Description copied from interface:GlobalConfigurationChildBuilderCross-site replication configuration- Specified by:
sitein interfaceGlobalConfigurationChildBuilder
-
modules
Description copied from interface:GlobalConfigurationChildBuilderGlobal modules configuration- Specified by:
modulesin interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
Description copied from interface:GlobalConfigurationChildBuilderSets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache(). Not- Specified by:
defaultCacheNamein interfaceGlobalConfigurationChildBuilder
-
build
Description copied from interface:GlobalConfigurationChildBuilderBuilds aGlobalConfigurationobject using the settings applied to this builder- Specified by:
buildin interfaceGlobalConfigurationChildBuilder
-