8#ifndef INCLUDE_INFINISPAN_HOTROD_REMOTECACHEMANAGERADMIN_H_
9#define INCLUDE_INFINISPAN_HOTROD_REMOTECACHEMANAGERADMIN_H_
20class TransportFactory;
24class OperationsFactory;
31using namespace transport;
32using namespace operations;
33using 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);
119 void createCache(
const std::string name, std::string model, 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;
139 std::set<AdminFlag> flags;
#define HR_EXTERN
Definition: ImportExport.h:35
Definition: RemoteCacheManagerAdmin.h:39
RemoteCache< K, V > & createCacheWithXml(const std::string name, std::string conf)
Definition: RemoteCacheManagerAdmin.h:62
RemoteCache< K, V > & getOrCreateCache(const std::string name, std::string model)
Definition: RemoteCacheManagerAdmin.h:77
RemoteCache< K, V > & getOrCreateCacheWithXml(const std::string name, std::string conf)
Definition: RemoteCacheManagerAdmin.h:93
RemoteCacheManagerAdmin(RemoteCacheManager &cacheManager, std::function< void(std::string &)> remover, std::shared_ptr< OperationsFactory > of)
void createCacheWithXml(const std::string name, std::string conf, std::string command)
std::set< std::string > getCacheNames()
void createCache(const std::string name, std::string model, std::string command)
void removeCache(std::string name)
RemoteCache< K, V > & createCache(const std::string name, std::string model)
Definition: RemoteCacheManagerAdmin.h:50
void reindexCache(std::string name)
RemoteCacheManagerAdmin & withFlags(std::set< AdminFlag > flags)
Definition: RemoteCacheManager.h:44
RemoteCache< K, V > & getCache(bool forceReturnValue)
Definition: RemoteCacheManager.h:114
Definition: RemoteCache.h:65
AdminFlag
Definition: RemoteCacheManagerAdmin.h:35
@ PERMANENT
Definition: RemoteCacheManagerAdmin.h:36
Definition: AuthenticationConfiguration.h:10