Red Hat Data Grid HotRod C++ Client
7.2.0
|
#include <RemoteExecution.h>
Public Member Functions | |
RemoteExecution (RemoteCacheBase &cache) | |
template<typename ResultType > | |
ResultType | execute (const std::string &s) |
template<typename ArgType > | |
void | addArg (std::string s, ArgType v) |
void | putScript (const std::string &name, const std::string &script) |
Simplify and improve the call of a remote execution task:
A Marshaller must be provided as template arguments. JBossMarshaller can be used as reference.
|
inline |
|
inline |
Add a name,value pair to the arguments list
s | name of the arg |
v | value of the arg |
ArgType | is the type of the arg value. It can be of any type as long as the Marshaller is equipped with the related implementation |
|
inline |
Execute a remote task
s | name of the script to invlke |
ResultType | the type of the result value |
|
inline |
Install a script on the server
name | the name of the script |
script | the code |