1 #ifndef __GEMFIRE_FUNCTION_SERVICE_H__ 2 #define __GEMFIRE_FUNCTION_SERVICE_H__ 16 #include "gfcpp_globals.hpp" 25 #define GF_TYPE_IS_POOL(T) \ 26 gemfire::TypeHelper::SuperSubclass<gemfire::Pool, T>::result 27 #define GF_TYPE_IS_POOL_TYPE(T) \ 28 gemfire::TypeHelper::YesNoType<GF_TYPE_IS_POOL(T)>::value 75 return onServerWithPool(pool);
94 return onServerWithCache(cache);
100 return onServer(poolOrCache, GF_TYPE_IS_POOL_TYPE(T));
118 return onServersWithPool(pool);
137 return onServersWithCache(cache);
140 template <
typename T>
143 return onServers(poolOrCache, GF_TYPE_IS_POOL_TYPE(T));
160 template <
typename T>
162 TypeHelper::yes_type isPool)
164 return onServerWithPool(pool);
167 template <
typename T>
169 TypeHelper::no_type isPool)
171 return onServerWithCache(cache);
174 template <
typename T>
176 TypeHelper::yes_type isPool)
178 return onServersWithPool(pool);
181 template <
typename T>
183 TypeHelper::no_type isPool)
185 return onServersWithCache(cache);
191 #endif //__GEMFIRE_FUNCTION_SERVICE_H__
static ExecutionPtr onServer(const PoolPtr &pool)
Returns a Execution object that can be used to execute a data independent function on a server in the...
Definition: FunctionService.hpp:73
static ExecutionPtr onServers(const RegionServicePtr &cache)
Returns a Execution object that can be used to execute a data independent function on all the servers...
Definition: FunctionService.hpp:135
static ExecutionPtr onServers(const PoolPtr &pool)
Returns a Execution object that can be used to execute a data independent function on all the servers...
Definition: FunctionService.hpp:116
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
entry point for function execution
Definition: FunctionService.hpp:37
static ExecutionPtr onServer(const RegionServicePtr &cache)
Returns a Execution object that can be used to execute a data independent function on a server where ...
Definition: FunctionService.hpp:92
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:31
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35