8 #ifndef INCLUDE_INFINISPAN_HOTROD_REMOTECACHEMANAGERADMIN_H_
9 #define INCLUDE_INFINISPAN_HOTROD_REMOTECACHEMANAGERADMIN_H_
17 namespace infinispan {
20 class TransportFactory;
23 namespace operations {
24 class OperationsFactory;
31 using namespace transport;
32 using namespace operations;
33 using namespace protocol;
51 createCache(name, model,
"@@cache@create");
52 return cacheManager.
getCache<K,V>(name);
63 createCacheWithXml(name, conf,
"@@cache@create");
64 return cacheManager.
getCache<K,V>(name);
78 createCache(name, model,
"@@cache@getorcreate");
79 return cacheManager.
getCache<K,V>(name);
94 createCacheWithXml(name, conf,
"@@cache@getorcreate");
95 return cacheManager.
getCache<K,V>(name);
103 void removeCache(std::string name);
111 void reindexCache(std::string name);
116 std::set<std::string> getCacheNames();
119 void createCache(
const std::string name, std::string model, std::string command);
120 void createCacheWithXml(
const std::string name, std::string conf, std::string command);
123 std::string flags2Params(
const std::set<AdminFlag>& flags)
const;
125 std::vector<char> executeAdminOperation(std::string adminCmd, std::map<std::string, std::string >& param);
127 static const std::vector<char> CACHE_NAME;
128 static const std::vector<char> CACHE_TEMPLATE;
129 static const std::vector<char> CACHE_CONFIGURATION;
130 static const std::vector<char> CACHE_FLAGS;
131 static const std::string FLAG_LABELS[];
132 std::shared_ptr<OperationsFactory> operationsFactory;
133 std::function<void(std::string&)> remover;
136 #ifdef SWIGJAVA // Swig needs public access to flags
139 std::set<AdminFlag> flags;
#define HR_EXTERN
Definition: ImportExport.h:35
RemoteCache< K, V > & getOrCreateCache(const std::string name, std::string model)
Definition: RemoteCacheManagerAdmin.h:77
Definition: CacheClientListener.h:28
RemoteCache< K, V > & getCache(bool forceReturnValue)
Definition: RemoteCacheManager.h:114
AdminFlag
Definition: RemoteCacheManagerAdmin.h:35
Definition: RemoteCacheManager.h:43
Definition: RemoteCacheManagerAdmin.h:36
Definition: RemoteCacheManagerAdmin.h:39
RemoteCache< K, V > & getOrCreateCacheWithXml(const std::string name, std::string conf)
Definition: RemoteCacheManagerAdmin.h:93
RemoteCache< K, V > & createCacheWithXml(const std::string name, std::string conf)
Definition: RemoteCacheManagerAdmin.h:62
RemoteCache< K, V > & createCache(const std::string name, std::string model)
Definition: RemoteCacheManagerAdmin.h:50