#include <RemoteCacheManagerAdmin.h>
|
| RemoteCacheManagerAdmin (RemoteCacheManager &cacheManager, std::function< void(std::string &)> remover, std::shared_ptr< OperationsFactory > of) |
|
template<class K , class V > |
RemoteCache< K, V > & | createCache (const std::string name, std::string model) |
|
template<class K , class V > |
RemoteCache< K, V > & | createCacheWithXml (const std::string name, std::string conf) |
|
template<class K , class V > |
RemoteCache< K, V > & | getOrCreateCache (const std::string name, std::string model) |
|
template<class K , class V > |
RemoteCache< K, V > & | getOrCreateCacheWithXml (const std::string name, std::string conf) |
|
void | removeCache (std::string name) |
|
void | reindexCache (std::string name) |
|
std::set< std::string > | getCacheNames () |
|
RemoteCacheManagerAdmin & | withFlags (std::set< AdminFlag > flags) |
|
void | createCache (const std::string name, std::string model, std::string command) |
|
void | createCacheWithXml (const std::string name, std::string conf, std::string command) |
|
infinispan::hotrod::RemoteCacheManagerAdmin::RemoteCacheManagerAdmin |
( |
RemoteCacheManager & |
cacheManager, |
|
|
std::function< void(std::string &)> |
remover, |
|
|
std::shared_ptr< OperationsFactory > |
of |
|
) |
| |
template<class K , class V >
RemoteCache<K, V>& infinispan::hotrod::RemoteCacheManagerAdmin::createCache |
( |
const std::string |
name, |
|
|
std::string |
model |
|
) |
| |
|
inline |
Creates a cache on the remote server cluster using the specified template.
- Parameters
-
name | the name of the cache to create |
model | the template to use for the cache. If null, the configuration marked as default on the server will be used |
- Returns
- the cache
void infinispan::hotrod::RemoteCacheManagerAdmin::createCache |
( |
const std::string |
name, |
|
|
std::string |
model, |
|
|
std::string |
command |
|
) |
| |
template<class K , class V >
RemoteCache<K, V>& infinispan::hotrod::RemoteCacheManagerAdmin::createCacheWithXml |
( |
const std::string |
name, |
|
|
std::string |
conf |
|
) |
| |
|
inline |
Creates a cache on the remote server cluster using the specified configuration
- Parameters
-
name | the name of the cache to create |
conf | the configuration in an XML format respecting the schema accepted by the server |
- Returns
- the cache
void infinispan::hotrod::RemoteCacheManagerAdmin::createCacheWithXml |
( |
const std::string |
name, |
|
|
std::string |
conf, |
|
|
std::string |
command |
|
) |
| |
std::set<std::string> infinispan::hotrod::RemoteCacheManagerAdmin::getCacheNames |
( |
| ) |
|
Returns a set of names of all the existing cache
template<class K , class V >
RemoteCache<K, V>& infinispan::hotrod::RemoteCacheManagerAdmin::getOrCreateCache |
( |
const std::string |
name, |
|
|
std::string |
model |
|
) |
| |
|
inline |
Retrieves a an existing cache on the remote server cluster. If it doesn't exist, it will be created using the specified template.
- Parameters
-
name | the name of the cache to create |
model | the template to use for the cache. If null, the configuration marked as default on the server will be used |
- Returns
- the cache
template<class K , class V >
RemoteCache<K, V>& infinispan::hotrod::RemoteCacheManagerAdmin::getOrCreateCacheWithXml |
( |
const std::string |
name, |
|
|
std::string |
conf |
|
) |
| |
|
inline |
Retrieves a an existing cache on the remote server cluster. If it doesn't exist, it will be created using the specified configuration.
- Parameters
-
name | the name of the cache to create |
conf | 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. |
- Returns
- the cache
- Exceptions
-
void infinispan::hotrod::RemoteCacheManagerAdmin::reindexCache |
( |
std::string |
name | ) |
|
Performs a mass reindexing of the specified cache. The command will return immediately and the reindexing will be performed asynchronously
- Parameters
-
name | the name of the cache to reindex |
- Exceptions
-
void infinispan::hotrod::RemoteCacheManagerAdmin::removeCache |
( |
std::string |
name | ) |
|
Removes a cache from the remote server cluster.
- Parameters
-
name | the name of the cache to remove |
The documentation for this class was generated from the following file: