|
GemFire 6.5.1 | ||||||||
| 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
. A Context describes the environment in which the Execution will
take place.
FunctionService,
Function| Method Summary | |
|---|---|
ResultCollector<? extends Serializable,? extends Serializable> |
execute(Function function)
Executes the function instance provided. |
ResultCollector<? extends Serializable,? extends Serializable> |
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. |
ResultCollector<? extends Serializable,? extends Serializable> |
execute(String functionId,
boolean hasResult)
Executes the function instance provided. |
ResultCollector<? extends Serializable,? extends Serializable> |
execute(String functionId,
boolean hasResult,
boolean isHA)
Executes the function instance provided. |
ResultCollector<? extends Serializable,? extends Serializable> |
execute(String functionId,
boolean hasResult,
boolean isHA,
boolean optimizeForWrite)
Executes the function instance provided. |
Execution |
withArgs(Serializable args)
Specifies the user data passed to the function when it is executed. |
Execution |
withCollector(ResultCollector<? extends Serializable,? extends Serializable> rc)
Specifies the ResultCollector that will receive the results after
the function has been executed. |
Execution |
withFilter(Set<?> filter)
Specifies a data filter of routing objects for selecting the GemFire members to execute the function on. |
| Method Detail |
|---|
Execution withFilter(Set<?> filter)
If the filter set is empty the function is executed on all members that have the region defined.
In case of theDataPolicy.PARTITION it will execute on a set of
members which has all the data.
filter - 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 args)
FunctionContext.getArguments()
args - user data passed to the function execution
IllegalArgumentException - if the input parameter is nullExecution withCollector(ResultCollector<? extends Serializable,? extends Serializable> rc)
ResultCollector that will receive the results after
the function has been executed. Collector will receive results as they are sent
from the Function.execute(FunctionContext) using ResultSender.
IllegalArgumentException - if ResultCollector is nullResultCollector
ResultCollector<? extends Serializable,? extends Serializable> execute(String functionId)
throws FunctionException
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). User has to use
this reference to retrieve results.
LowMemoryException - if the Function.optimizeForWrite() returns true and there
is a low memory condition
FunctionException
ResultCollector<? extends Serializable,? extends Serializable> execute(Function function)
throws FunctionException
Function.execute(FunctionContext) is called on the de-serialized
instance on the executing member.
function - instance to execute
withCollector(ResultCollector). User has to use
this reference to retrieve results.
LowMemoryException - if the Function.optimizeForWrite() returns true and there
is a low memory condition
FunctionException
ResultCollector<? extends Serializable,? extends Serializable> execute(String functionId,
boolean hasResult)
throws FunctionException
Function.execute(FunctionContext) is called on the de-serialized
instance on the executing member.
functionId - the Function.getId() of the functionhasResult - Whether the function returns any result
withCollector(ResultCollector). User has to use
this reference to retrieve results.
LowMemoryException - if the Function.optimizeForWrite() returns true and there
is a low memory condition
FunctionException
ResultCollector<? extends Serializable,? extends Serializable> execute(String functionId,
boolean hasResult,
boolean isHA)
throws FunctionException
Function.execute(FunctionContext) is called on the de-serialized
instance on the executing member.
functionId - the Function.getId() of the functionhasResult - Whether the function returns any resultisHA - Whether the given function is HA
withCollector(ResultCollector). User has to use
this reference to retrieve results.
LowMemoryException - if the Function.optimizeForWrite() returns true and there
is a low memory condition
FunctionException
ResultCollector<? extends Serializable,? extends Serializable> execute(String functionId,
boolean hasResult,
boolean isHA,
boolean optimizeForWrite)
throws FunctionException
Function.execute(FunctionContext) is called on the de-serialized
instance on the executing member.
functionId - the Function.getId() of the functionhasResult - Whether the function returns any resultisHA - Whether the given function is HAoptimizeForWrite - Whether the function should be optmized for write operations
withCollector(ResultCollector). User has to use
this reference to retrieve results.
LowMemoryException - if the Function.optimizeForWrite() returns true and there
is a low memory condition
FunctionException
|
GemFire 6.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||