Public Member Functions | |
| virtual ResultCollectorPtr | execute (CacheableVectorPtr &routingObj, CacheablePtr &args, ResultCollectorPtr &rs, const char *func, bool hasResult, uint32_t timeout, bool isHA, bool optimizeForWrite)=0 |
| Executes the function using its name. | |
| virtual ResultCollectorPtr | execute (const char *func, bool hasResult=true, uint32_t timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT, bool isHA=true, bool optimizeForWrite=false)=0 |
| Executes the function using its name. | |
| void | preserveSB () const |
| Atomically increment reference count. | |
| int32_t | refCount () |
| |
| void | releaseSB () const |
| Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. | |
| virtual ExecutionPtr | withArgs (CacheablePtr args)=0 |
| Specifies the user data passed to the function when it is executed. | |
| virtual ExecutionPtr | withCollector (ResultCollectorPtr rs)=0 |
| Specifies the ResultCollector that will receive the results after the function has been executed. | |
| virtual ExecutionPtr | withFilter (CacheableVectorPtr routingObj)=0 |
| Specifies a data filter of routing objects for selecting the GemFire members to execute the function. | |
| virtual ResultCollectorPtr gemfire::Execution::execute | ( | CacheableVectorPtr & | routingObj, | |
| CacheablePtr & | args, | |||
| ResultCollectorPtr & | rs, | |||
| const char * | func, | |||
| bool | hasResult, | |||
| uint32_t | timeout, | |||
| bool | isHA, | |||
| bool | optimizeForWrite | |||
| ) | [pure virtual] |
Executes the function using its name.
| routingObj | Set defining the data filter to be used for executing the function | |
| args | user data passed to the function execution | |
| rs | * Specifies the ResultCollector that will receive the results after the function has been executed. | |
| func | the name of the function to be executed | |
| hasResult | indicating if results are expected, |
| timeout | value to wait for the operation to finish before timing out. | |
| isHA | Whether the given function is HA, |
| optimizeForWrite | Whether the function should be optmized for write operations, |
| Exception | if there is an error during function execution |
| virtual ResultCollectorPtr gemfire::Execution::execute | ( | const char * | func, | |
| bool | hasResult = true, |
|||
| uint32_t | timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT, |
|||
| bool | isHA = true, |
|||
| bool | optimizeForWrite = false | |||
| ) | [pure virtual] |
Executes the function using its name.
| func | the name of the function to be executed | |
| hasResult | indicating if results are expected, |
| timeout | value to wait for the operation to finish before timing out. | |
| isHA | Whether the given function is HA, |
| optimizeForWrite | Whether the function should be optmized for write operations, |
| Exception | if there is an error during function execution |
| void gemfire::SharedBase::preserveSB | ( | ) | const [inherited] |
Atomically increment reference count.
| int32_t gemfire::SharedBase::refCount | ( | ) | [inline, inherited] |
| void gemfire::SharedBase::releaseSB | ( | ) | const [inherited] |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
| virtual ExecutionPtr gemfire::Execution::withArgs | ( | CacheablePtr | args | ) | [pure virtual] |
Specifies the user data passed to the function when it is executed.
| args | user data passed to the function execution |
| IllegalArgumentException | if the input parameter is NULLPTR |
| virtual ExecutionPtr gemfire::Execution::withCollector | ( | ResultCollectorPtr | rs | ) | [pure virtual] |
Specifies the ResultCollector that will receive the results after the function has been executed.
| IllegalArgumentException | if ResultCollector is NULLPTR |
| virtual ExecutionPtr gemfire::Execution::withFilter | ( | CacheableVectorPtr | routingObj | ) | [pure virtual] |
Specifies a data filter of routing objects for selecting the GemFire members to execute the function.
If the filter set is empty the function is executed on all members that have the FunctionService::onRegion(Region).
| routingObj | Set defining the data filter to be used for executing the function |
| IllegalArgumentException | if filter passed is NULLPTR. | |
| UnsupportedOperationException | if not called after FunctionService::onRegion(Region). |