Package org.infinispan.globalstate.impl
Class ImmutableLocalConfigurationStorage
java.lang.Object
org.infinispan.globalstate.impl.ImmutableLocalConfigurationStorage
- All Implemented Interfaces:
- LocalConfigurationStorage
An immutable implementation of 
LocalConfigurationStorage which does not allow cache creation/removal.- Since:
- 9.2
- Author:
- Tristan Tarrant
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateCache(String name, String template, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Creates the cache using the supplied template, configuration and flags.createTemplate(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Creates the template using the supplied configuration and flags.voidinitialize(EmbeddedCacheManager embeddedCacheManager, ConfigurationManager configurationManager, BlockingManager blockingManager) Initialization entry point for theLocalConfigurationStorageLoads all persisted cache configurationsLoads all persisted templatesremoveCache(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags) Removes the specified cache.removeTemplate(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags) Removes the specified template.updateConfiguration(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Updates an existing configuration.validateConfigurationUpdate(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Validates an update to an existing configuration.voidChecks whether thisLocalConfigurationStoragesupports the supplied flags.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.globalstate.LocalConfigurationStorageloadAll
- 
Field Details- 
logprotected static org.infinispan.util.logging.Log log
 
- 
- 
Constructor Details- 
ImmutableLocalConfigurationStoragepublic ImmutableLocalConfigurationStorage()
 
- 
- 
Method Details- 
initializepublic void initialize(EmbeddedCacheManager embeddedCacheManager, ConfigurationManager configurationManager, BlockingManager blockingManager) Description copied from interface:LocalConfigurationStorageInitialization entry point for theLocalConfigurationStorage- Specified by:
- initializein interface- LocalConfigurationStorage
- Parameters:
- embeddedCacheManager-
- configurationManager-
- blockingManager- handler to use when a blocking operation is required
 
- 
validateFlagsDescription copied from interface:LocalConfigurationStorageChecks whether thisLocalConfigurationStoragesupports the supplied flags. ACacheConfigurationExceptionwill be thrown in case this cannot be done.- Specified by:
- validateFlagsin interface- LocalConfigurationStorage
 
- 
createCachepublic CompletionStage<Void> createCache(String name, String template, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:LocalConfigurationStorageCreates the cache using the supplied template, configuration and flags. This method may be invoked either with or without a template. In both cases a concrete configuration will also be available. If a template name is present, theLocalConfigurationStorageshould use it, e.g. when persisting the configuration.- Specified by:
- createCachein interface- LocalConfigurationStorage
- Parameters:
- name- the name of the cache to create
- template- the template that should be used to configure the cache. Can be null.
- configuration- the- Configurationto use
- flags- the desired- CacheContainerAdmin.AdminFlags
 
- 
removeCacheDescription copied from interface:LocalConfigurationStorageRemoves the specified cache.- Specified by:
- removeCachein interface- LocalConfigurationStorage
- Parameters:
- name- the name of the cache to remove
- flags- the desired- CacheContainerAdmin.AdminFlags
 
- 
createTemplatepublic CompletionStage<Void> createTemplate(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:LocalConfigurationStorageCreates the template using the supplied configuration and flags.- Specified by:
- createTemplatein interface- LocalConfigurationStorage
- Parameters:
- name- the name of the template to create
- configuration- the- Configurationto use
- flags- the desired- CacheContainerAdmin.AdminFlags
 
- 
updateConfigurationpublic CompletionStage<Void> updateConfiguration(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:LocalConfigurationStorageUpdates an existing configuration. Only the attributes that are mutable and that have been modified in the supplied configuration will be applied.- Specified by:
- updateConfigurationin interface- LocalConfigurationStorage
- Parameters:
- name- the name of the configuration (cache/template)
- configuration- the configuration changes to apply
- flags- the desired- CacheContainerAdmin.AdminFlags
 
- 
validateConfigurationUpdatepublic CompletionStage<Void> validateConfigurationUpdate(String name, Configuration configuration, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:LocalConfigurationStorageValidates an update to an existing configuration.- Specified by:
- validateConfigurationUpdatein interface- LocalConfigurationStorage
- Parameters:
- name- the name of the configuration (cache/template)
- configuration- the configuration changes to apply
- flags- the desired- CacheContainerAdmin.AdminFlags
 
- 
removeTemplatepublic CompletionStage<Void> removeTemplate(String name, EnumSet<CacheContainerAdmin.AdminFlag> flags) Description copied from interface:LocalConfigurationStorageRemoves the specified template.- Specified by:
- removeTemplatein interface- LocalConfigurationStorage
- Parameters:
- name- the name of the template to remove
- flags- the desired- CacheContainerAdmin.AdminFlags
 
- 
loadAllCachesDescription copied from interface:LocalConfigurationStorageLoads all persisted cache configurations- Specified by:
- loadAllCachesin interface- LocalConfigurationStorage
 
- 
loadAllTemplatesDescription copied from interface:LocalConfigurationStorageLoads all persisted templates- Specified by:
- loadAllTemplatesin interface- LocalConfigurationStorage
 
 
-