entry point for function execution
More...
#include <FunctionService.hpp>
entry point for function execution
- See also
- Execution
◆ onRegion()
static Execution apache::geode::client::FunctionService::onRegion |
( |
const std::shared_ptr< Region > & |
region | ) |
|
|
static |
Returns a Execution
object that can be used to execute a data dependent function on the specified Region.
When invoked from a Geode client, the method returns an Execution instance that sends a message to one of the connected servers as specified by the Pool
for the region. Depending on the filters setup on the Execution
, the function is executed on all Geode members that define the data region, or a subset of members. Execution::withFilter(filter)
).
- Parameters
-
- Returns
- Execution
- Exceptions
-
◆ onServer() [1/2]
static Execution apache::geode::client::FunctionService::onServer |
( |
const std::shared_ptr< Pool > & |
pool | ) |
|
|
inlinestatic |
Returns a Execution
object that can be used to execute a data independent function on a server in the provided Pool
.
If the server goes down while dispatching or executing the function, an Exception will be thrown.
- Parameters
-
pool | from which to chose a server for execution |
- Returns
- Execution
- Exceptions
-
◆ onServer() [2/2]
Returns a Execution
object that can be used to execute a data independent function on a server where Cache is attached.
If the server goes down while dispatching or executing the function, an Exception will be thrown.
- Parameters
-
cache | cache from which to chose a server for execution |
- Returns
- Execution
- Exceptions
-
◆ onServers() [1/2]
static Execution apache::geode::client::FunctionService::onServers |
( |
const std::shared_ptr< Pool > & |
pool | ) |
|
|
inlinestatic |
Returns a Execution
object that can be used to execute a data independent function on all the servers in the provided Pool
.
If one of the servers goes down while dispatching or executing the function on the server, an Exception will be thrown.
- Parameters
-
pool | the set of servers to execute the function |
- Returns
- Execution
- Exceptions
-
◆ onServers() [2/2]
Returns a Execution
object that can be used to execute a data independent function on all the servers where Cache is attached.
If one of the servers goes down while dispatching or executing the function on the server, an Exception will be thrown.
- Parameters
-
cache | the Cache where function need to execute. |
- Returns
- Execution
- Exceptions
-