|
GemFire 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Execution
Provides methods to build the context for the execution of a Function.
FunctionService,
Function| Method Summary | |
|---|---|
ResultCollector |
execute(Function function)
Executes the function instance provided. |
ResultCollector |
execute(String functionId)
Executes the function using its id Function.execute(FunctionContext) is called on the instance retrieved using FunctionService.getFunction(String) on the
executing member. |
Execution |
withArgs(Serializable arguments)
Specifies the user data passed to the function when it is executed. |
Execution |
withCollector(ResultCollector rs)
Specifies the ResultCollector that will receive the results after
the function has been executed. |
Execution |
withFilter(Set routingObjects)
Specifies a data filter of routing objects for selecting the GemFire members to execute the function. |
| Method Detail |
|---|
Execution withFilter(Set routingObjects)
If the filter set is empty the function is executed on all members that have the region defined.
routingObjects - Set defining the data filter to be used for executing the function
IllegalArgumentException - if filter passed is null.
UnsupportedOperationException - if not called after
FunctionService.onRegion(com.gemstone.gemfire.cache.Region)Execution withArgs(Serializable arguments)
FunctionContext.getArguments()
arguments - user data passed to the function execution
IllegalArgumentException - if the input parameter is nullExecution withCollector(ResultCollector rs)
ResultCollector that will receive the results after
the function has been executed.
IllegalArgumentException - if ResultCollector is nullResultCollector
ResultCollector execute(String functionId)
throws Exception
Function.execute(FunctionContext) is called on the instance retrieved using FunctionService.getFunction(String) on the
executing member.
functionId - the Function.getId() of the function
withCollector(ResultCollector)
Exception - if there is an error during function execution
ResultCollector execute(Function function)
throws Exception
Function.execute(FunctionContext) is called on the de-serialized instance on the
executing member.
function - instance to execute
withCollector(ResultCollector)
Exception - if there is an error during function execution
|
GemFire 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||