8 #ifndef INCLUDE_INFINISPAN_HOTROD_REMOTEEXECUTION_H_ 9 #define INCLUDE_INFINISPAN_HOTROD_REMOTEEXECUTION_H_ 28 template<
class M = JBossMarshaller>
42 template<
typename ResultType>
43 ResultType
execute(
const std::string& s) {
44 std::vector<char> buff(s.begin(), s.end());
45 return M::template unmarshall<ResultType>(cache.base_execute(buff, m));
56 template<
typename ArgType>
57 void addArg(std::string s, ArgType v) {
58 std::vector<char> buffK(s.begin(), s.end());
59 std::vector<char> buffV(M::marshall(v));
69 void putScript(
const std::string& name,
const std::string& script) {
70 std::vector<char> buffName(M::marshall(name));
71 std::vector<char> buffScript(M::marshall(script));
72 cache.putScript(buffName, buffScript);
76 std::map<std::vector<char>, std::vector<char>> m;
77 RemoteCacheBase& cache;
ResultType execute(const std::string &s)
Definition: RemoteExecution.h:43
RemoteExecution(RemoteCacheBase &cache)
Definition: RemoteExecution.h:31
void putScript(const std::string &name, const std::string &script)
Definition: RemoteExecution.h:69
Definition: AuthenticationConfiguration.h:10
void addArg(std::string s, ArgType v)
Definition: RemoteExecution.h:57
Definition: RemoteExecution.h:29