public abstract class CliFunction<T> extends Object implements org.apache.geode.internal.cache.execute.InternalFunction<T>
Constructor and Description |
---|
CliFunction() |
Modifier and Type | Method and Description |
---|---|
void |
execute(FunctionContext<T> context)
The method which contains the logic to be executed.
|
abstract org.apache.geode.management.internal.functions.CliFunctionResult |
executeFunction(FunctionContext<T> context) |
boolean |
isHA()
Specifies whether the function is eligible for re-execution (in case of failure).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredPermissions
getId, getRequiredPermissions, hasResult, optimizeForWrite
exists, find, remove
public final void execute(FunctionContext<T> context)
Function
Execution
. The context
provided to this function is the one which was built using Execution. The contexts
can be data dependent or data-independent so user should check to see if the context provided
in parameter is instance of RegionFunctionContext
.public boolean isHA()
Function
isHA
in interface Function<T>
FunctionContext.isPossibleDuplicate()
public abstract org.apache.geode.management.internal.functions.CliFunctionResult executeFunction(FunctionContext<T> context) throws Exception
Exception