public interface RemoteCacheManagerAdmin extends CacheContainerAdmin<RemoteCacheManagerAdmin,BasicConfiguration>
CacheContainerAdmin.AdminFlag| Modifier and Type | Method and Description |
|---|---|
<K,V> RemoteCache<K,V> |
createCache(java.lang.String name,
BasicConfiguration configuration)
Creates a cache on the remote server cluster using the specified configuration
|
<K,V> RemoteCache<K,V> |
createCache(java.lang.String name,
java.lang.String template)
Creates a cache on the remote server cluster using the specified template.
|
void |
createCache(java.lang.String name,
java.lang.String template,
java.util.EnumSet<AdminFlag> flags)
Deprecated.
use
CacheContainerAdmin.withFlags(AdminFlag...) instead |
<K,V> RemoteCache<K,V> |
getOrCreateCache(java.lang.String name,
BasicConfiguration configuration)
Retrieves an existing cache on the remote server cluster.
|
<K,V> RemoteCache<K,V> |
getOrCreateCache(java.lang.String name,
java.lang.String template)
Retrieves an existing cache on the remote server cluster.
|
void |
reindexCache(java.lang.String name)
Performs a mass reindexing of the specified cache.
|
void |
removeCache(java.lang.String name)
Removes a cache from the remote server cluster.
|
withFlags, withFlags<K,V> RemoteCache<K,V> createCache(java.lang.String name, java.lang.String template) throws HotRodClientException
createCache in interface CacheContainerAdmin<RemoteCacheManagerAdmin,BasicConfiguration>name - the name of the cache to createtemplate - the template to use for the cache. If null, the configuration marked as default on the server
will be usedHotRodClientException<K,V> RemoteCache<K,V> createCache(java.lang.String name, BasicConfiguration configuration) throws HotRodClientException
createCache in interface CacheContainerAdmin<RemoteCacheManagerAdmin,BasicConfiguration>name - the name of the cache to createconfiguration - a concrete configuration that will be sent to the server. The XML representation of this
configuration must use the Infinispan embedded configuration schema in a version supported
by the server.HotRodClientException<K,V> RemoteCache<K,V> getOrCreateCache(java.lang.String name, java.lang.String template) throws HotRodClientException
getOrCreateCache in interface CacheContainerAdmin<RemoteCacheManagerAdmin,BasicConfiguration>name - the name of the cache to createtemplate - the template to use for the cache. If null, the configuration marked as default on the server
will be usedHotRodClientException<K,V> RemoteCache<K,V> getOrCreateCache(java.lang.String name, BasicConfiguration configuration) throws HotRodClientException
getOrCreateCache in interface CacheContainerAdmin<RemoteCacheManagerAdmin,BasicConfiguration>name - the name of the cache to createconfiguration - a concrete configuration that will be sent to the server. The XML representation of this
configuration must use the Infinispan embedded configuration schema in a version supported
by the server.HotRodClientException@Deprecated
void createCache(java.lang.String name,
java.lang.String template,
java.util.EnumSet<AdminFlag> flags)
throws HotRodClientException
CacheContainerAdmin.withFlags(AdminFlag...) insteadname - the name of the cache to createtemplate - the template to use for the cache. If null, the configuration marked as default on the server
will be usedflags - an EnumSet of flags to use when creating the cache. See AdminFlagHotRodClientExceptionvoid removeCache(java.lang.String name)
throws HotRodClientException
removeCache in interface CacheContainerAdmin<RemoteCacheManagerAdmin,BasicConfiguration>name - the name of the cache to removeHotRodClientExceptionvoid reindexCache(java.lang.String name)
throws HotRodClientException
name - the name of the cache to reindexHotRodClientException