Red Hat Data Grid HotRod C++ Client  7.2.0
Public Member Functions | List of all members
infinispan::hotrod::RemoteExecution< M > Class Template Reference

#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)
 

Detailed Description

template<class M = JBossMarshaller>
class infinispan::hotrod::RemoteExecution< M >

Simplify and improve the call of a remote execution task:

A Marshaller must be provided as template arguments. JBossMarshaller can be used as reference.

Constructor & Destructor Documentation

template<class M = JBossMarshaller>
infinispan::hotrod::RemoteExecution< M >::RemoteExecution ( RemoteCacheBase &  cache)
inline

Member Function Documentation

template<class M = JBossMarshaller>
template<typename ArgType >
void infinispan::hotrod::RemoteExecution< M >::addArg ( std::string  s,
ArgType  v 
)
inline

Add a name,value pair to the arguments list

Parameters
sname of the arg
vvalue of the arg
Template Parameters
ArgTypeis the type of the arg value. It can be of any type as long as the Marshaller is equipped with the related implementation
template<class M = JBossMarshaller>
template<typename ResultType >
ResultType infinispan::hotrod::RemoteExecution< M >::execute ( const std::string &  s)
inline

Execute a remote task

Parameters
sname of the script to invlke
Returns
the result of the execution
Template Parameters
ResultTypethe type of the result value
template<class M = JBossMarshaller>
void infinispan::hotrod::RemoteExecution< M >::putScript ( const std::string &  name,
const std::string &  script 
)
inline

Install a script on the server

Parameters
namethe name of the script
scriptthe code

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