Class RemoteCacheManagerAdminImpl
java.lang.Object
org.infinispan.client.hotrod.impl.RemoteCacheManagerAdminImpl
- All Implemented Interfaces:
- RemoteCacheManagerAdmin,- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Since:
- 9.1
- Author:
- Tristan Tarrant
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.infinispan.commons.api.CacheContainerAdminCacheContainerAdmin.AdminFlag
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRemoteCacheManagerAdminImpl(RemoteCacheManager cacheManager, org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory, EnumSet<CacheContainerAdmin.AdminFlag> flags, Consumer<String> remover) 
- 
Method SummaryModifier and TypeMethodDescription<K,V> RemoteCache <K, V> createCache(String name, String template) Creates a cache on the remote server cluster using the specified template name.<K,V> RemoteCache <K, V> createCache(String name, DefaultTemplate template) Creates a cache on the remote server cluster using the specified default configuration template present in the server.<K,V> RemoteCache <K, V> createCache(String name, BasicConfiguration configuration) Creates a cache on the remote server cluster using the specified configurationvoidcreateTemplate(String name, BasicConfiguration configuration) Creates a template on the container using the provided configuration.<K,V> RemoteCache <K, V> getOrCreateCache(String name, String template) Retrieves an existing cache on the remote server cluster.<K,V> RemoteCache <K, V> getOrCreateCache(String name, DefaultTemplate template) Retrieves an existing cache on the remote server cluster.<K,V> RemoteCache <K, V> getOrCreateCache(String name, BasicConfiguration configuration) Retrieves an existing cache on the remote server cluster.voidreindexCache(String name) Performs a mass reindexing of the specified cache.voidremoveCache(String name) Removes a cache from the remote server cluster.voidremoveTemplate(String name) Removes a template from the cache container.voidupdateConfigurationAttribute(String name, String attribute, String value) Updates a mutable configuration attribute for the given cache.voidupdateIndexSchema(String name) Updates the index schema state for the given cache, the cache engine is hot restarted so that index persisted or not persisted state will be preserved.Sets any additionalCacheContainerAdmin.AdminFlags to be used when performing administrative operations.withFlags(CacheContainerAdmin.AdminFlag... flags) Sets any additionalCacheContainerAdmin.AdminFlags to be used when performing administrative operations.
- 
Field Details- 
CACHE_NAME- See Also:
 
- 
CACHE_TEMPLATE- See Also:
 
- 
CACHE_CONFIGURATION- See Also:
 
- 
ATTRIBUTE- See Also:
 
- 
VALUE- See Also:
 
- 
FLAGS- See Also:
 
 
- 
- 
Constructor Details- 
RemoteCacheManagerAdminImplpublic RemoteCacheManagerAdminImpl(RemoteCacheManager cacheManager, org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory, EnumSet<CacheContainerAdmin.AdminFlag> flags, Consumer<String> remover) 
 
- 
- 
Method Details- 
createCachepublic <K,V> RemoteCache<K,V> createCache(String name, String template) throws HotRodClientException Description copied from interface:RemoteCacheManagerAdminCreates a cache on the remote server cluster using the specified template name.- Specified by:
- createCachein interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Specified by:
- createCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to create
- template- the template to use for the cache. If null, the configuration marked as default on the server will be used
- Returns:
- the cache
- Throws:
- HotRodClientException
 
- 
createCachepublic <K,V> RemoteCache<K,V> createCache(String name, DefaultTemplate template) throws HotRodClientException Description copied from interface:RemoteCacheManagerAdminCreates a cache on the remote server cluster using the specified default configuration template present in the server.- Specified by:
- createCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to create
- template-- DefaultTemplateenum
- Returns:
- the cache
- Throws:
- HotRodClientException
 
- 
createCachepublic <K,V> RemoteCache<K,V> createCache(String name, BasicConfiguration configuration) throws HotRodClientException Description copied from interface:RemoteCacheManagerAdminCreates a cache on the remote server cluster using the specified configuration- Specified by:
- createCachein interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Specified by:
- createCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to create
- configuration- a concrete cache configuration that will be sent to the server in one of the supported formats: XML, JSON, and YAML. The server detects the format automatically. The configuration must conform to the Infinispan embedded configuration schema version that is supported by the server.
- Returns:
- the cache
- Throws:
- HotRodClientException
 
- 
getOrCreateCachepublic <K,V> RemoteCache<K,V> getOrCreateCache(String name, String template) throws HotRodClientException Description copied from interface:RemoteCacheManagerAdminRetrieves an existing cache on the remote server cluster. If it doesn't exist, it will be created using the specified template name.- Specified by:
- getOrCreateCachein interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Specified by:
- getOrCreateCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to create
- template- the template to use for the cache. If null, the configuration marked as default on the server will be used
- Returns:
- the cache
- Throws:
- HotRodClientException
 
- 
getOrCreateCachepublic <K,V> RemoteCache<K,V> getOrCreateCache(String name, DefaultTemplate template) throws HotRodClientException Description copied from interface:RemoteCacheManagerAdminRetrieves an existing cache on the remote server cluster. If it doesn't exist, it will be created using the specified default template that is present in the server.- Specified by:
- getOrCreateCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to create
- template-- DefaultTemplateenum
- Returns:
- the cache
- Throws:
- HotRodClientException
 
- 
getOrCreateCachepublic <K,V> RemoteCache<K,V> getOrCreateCache(String name, BasicConfiguration configuration) throws HotRodClientException Description copied from interface:RemoteCacheManagerAdminRetrieves an existing cache on the remote server cluster. If it doesn't exist, it will be created using the specified configuration.- Specified by:
- getOrCreateCachein interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Specified by:
- getOrCreateCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to create
- configuration- a concrete cache configuration of that will be sent to the server in one of the supported formats: XML, JSON and YAML. The format will be detected automatically. The configuration must use the Infinispan embedded configuration schema in a version supported by the server.
- Returns:
- the cache
- Throws:
- HotRodClientException
 
- 
removeCacheDescription copied from interface:RemoteCacheManagerAdminRemoves a cache from the remote server cluster.- Specified by:
- removeCachein interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Specified by:
- removeCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to remove
 
- 
withFlagsDescription copied from interface:CacheContainerAdminSets any additionalCacheContainerAdmin.AdminFlags to be used when performing administrative operations. Note: whether an operation supports a certain flag or not is dependent on the configuration and environment. If a flag cannot be honored, the operation will fail with an exception.- Specified by:
- withFlagsin interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Parameters:
- flags-
- Returns:
 
- 
withFlagsDescription copied from interface:CacheContainerAdminSets any additionalCacheContainerAdmin.AdminFlags to be used when performing administrative operations. Note: whether an operation supports a certain flag or not is dependent on the configuration and environment. If a flag cannot be honored, the operation will fail with an exception.- Specified by:
- withFlagsin interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Parameters:
- flags-
- Returns:
 
- 
reindexCacheDescription copied from interface:RemoteCacheManagerAdminPerforms a mass reindexing of the specified cache. The command will return immediately and the reindexing will be performed asynchronously- Specified by:
- reindexCachein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache to reindex
- Throws:
- HotRodClientException
 
- 
updateIndexSchemaDescription copied from interface:RemoteCacheManagerAdminUpdates the index schema state for the given cache, the cache engine is hot restarted so that index persisted or not persisted state will be preserved.- Specified by:
- updateIndexSchemain interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache on which the index schema will be updated
- Throws:
- HotRodClientException
 
- 
updateConfigurationAttributepublic void updateConfigurationAttribute(String name, String attribute, String value) throws HotRodClientException Description copied from interface:RemoteCacheManagerAdminUpdates a mutable configuration attribute for the given cache.- Specified by:
- updateConfigurationAttributein interface- RemoteCacheManagerAdmin
- Parameters:
- name- the name of the cache on which the attribute will be updated
- attribute- the path of the attribute we want to change
- value- the new value to apply to the attribute
- Throws:
- HotRodClientException
 
- 
createTemplateDescription copied from interface:CacheContainerAdminCreates a template on the container using the provided configuration.- Specified by:
- createTemplatein interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Parameters:
- name- the name of the template
- configuration- the configuration to use. It must be a clustered configuration (e.g. distributed)
 
- 
removeTemplateDescription copied from interface:CacheContainerAdminRemoves a template from the cache container. Any persisted data will be cleared.- Specified by:
- removeTemplatein interface- CacheContainerAdmin<RemoteCacheManagerAdmin,- BasicConfiguration> 
- Parameters:
- name- the name of the template to remove
 
 
-