Executing Functions
Using the function execution service, you can execute application functions on a single server member, in parallel on a subset of server members, or in parallel on all server members of a distributed system.
In these procedures, it is assumed that you have defined your client and server regions, and that you have coded and configured your servers to run your functions. See the server-side function execution information at Function Execution.
-
In this section you create an
Execution
object and use its methods to define and run the function. To run a function with high availability, you callgetResult
from the results collector returned from theexecute
method. Programming to Get Function Results
GemFire provides a default result collector. If you need special results handling, code a custom
ResultsCollector
implementation to replace the provided default. Use theExecution::withCollector
method to define your custom collector.-
The function execution service provides solutions for various application use cases.