Infinispan HotRod C++ Client  8.3.1.Final
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
infinispan::hotrod::RemoteCacheManagerAdmin Class Reference

#include <RemoteCacheManagerAdmin.h>

Public Member Functions

 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 ()
 
RemoteCacheManagerAdminwithFlags (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)
 

Constructor & Destructor Documentation

infinispan::hotrod::RemoteCacheManagerAdmin::RemoteCacheManagerAdmin ( RemoteCacheManager cacheManager,
std::function< void(std::string &)>  remover,
std::shared_ptr< OperationsFactory >  of 
)

Member Function Documentation

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
namethe name of the cache to create
modelthe 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
namethe name of the cache to create
confthe 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
namethe name of the cache to create
modelthe 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
namethe name of the cache to create
confa 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
HotRodClientException
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
namethe name of the cache to reindex
Exceptions
HotRodClientException
void infinispan::hotrod::RemoteCacheManagerAdmin::removeCache ( std::string  name)

Removes a cache from the remote server cluster.

Parameters
namethe name of the cache to remove
RemoteCacheManagerAdmin& infinispan::hotrod::RemoteCacheManagerAdmin::withFlags ( std::set< AdminFlag flags)

The documentation for this class was generated from the following file: