Pivotal GemFire Native .NET Reference  10.2.0
Apache::Geode::Client::FunctionService< TResult > Class Template Reference

A factory class used to create Execute object for function execution More...

Static Public Member Functions

template<class TKey , class TValue >
static Execution< TResult > ^ OnRegion (IRegion< TKey, TValue >^ rg)
 Creates a new region Execution object More...
 
static Execution< TResult > ^ OnServer (IRegionService^ cache)
 Creates a new Execution object on one server. More...
 
static Execution< TResult > ^ OnServer (Pool^ pl)
 Creates a new Execution object on one server More...
 
static Execution< TResult > ^ OnServers (IRegionService^ cache)
 Creates a new Execution object on all servers in the pool. More...
 
static Execution< TResult > ^ OnServers (Pool^ pl)
 Creates a new Execution object on all servers in the pool More...
 

Detailed Description

template<class TResult>
class Apache::Geode::Client::FunctionService< TResult >

A factory class used to create Execute object for function execution

Member Function Documentation

◆ OnRegion()

template<class TResult >
template<class TKey , class TValue >
static Execution<TResult> ^ Apache::Geode::Client::FunctionService< TResult >::OnRegion ( IRegion< TKey, TValue >^  rg)
static

Creates a new region Execution object

If Pool is multiusersecure mode then one need to pass logical instance of Region Pool->CreateSecureUserCache(<credentials>)->getRegion(<regionPath>).

◆ OnServer() [1/2]

template<class TResult >
static Execution<TResult> ^ Apache::Geode::Client::FunctionService< TResult >::OnServer ( IRegionService cache)
static

Creates a new Execution object on one server.

Exceptions
IllegalStateExceptionwhen Pool has been closed.

◆ OnServer() [2/2]

template<class TResult >
static Execution<TResult> ^ Apache::Geode::Client::FunctionService< TResult >::OnServer ( Pool pl)
static

Creates a new Execution object on one server

Exceptions
UnsupportedOperationExceptionunsupported operation exception, when Pool is in multiusersecure mode.

◆ OnServers() [1/2]

template<class TResult >
static Execution<TResult> ^ Apache::Geode::Client::FunctionService< TResult >::OnServers ( IRegionService cache)
static

Creates a new Execution object on all servers in the pool.

Exceptions
IllegalStateExceptionwhen Pool has been closed.

◆ OnServers() [2/2]

template<class TResult >
static Execution<TResult> ^ Apache::Geode::Client::FunctionService< TResult >::OnServers ( Pool pl)
static

Creates a new Execution object on all servers in the pool

Exceptions
UnsupportedOperationExceptionunsupported operation exception, when Pool is in multiusersecure mode.

Apache Geode C++ Cache .NET API Documentation