Class PlatformAbstractFunc
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.compute.PlatformAbstractFunc
-
- All Implemented Interfaces:
Serializable,PlatformSecurityAwareJob
- Direct Known Subclasses:
PlatformCallable,PlatformRunnable
public abstract class PlatformAbstractFunc extends Object implements PlatformSecurityAwareJob, Serializable
Base class for simple computations (Callable, Runnable). Cleaner alternative toPlatformClosureJob, uses less wrapping for the underlying object, and a single callback.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPlatformAbstractFunc(Object func, long ptr, String funcName)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Objectinvoke()Invokes this instance.Stringname()protected abstract voidplatformCallback(PlatformCallbackGateway gate, long memPtr)Performs platform callback.
-
-
-
Field Detail
-
ignite
@IgniteInstanceResource protected transient Ignite ignite
Ignite instance.
-
-
Method Detail
-
invoke
protected Object invoke() throws IgniteCheckedException
Invokes this instance.- Returns:
- Invocation result.
- Throws:
IgniteCheckedException
-
name
public String name()
- Specified by:
namein interfacePlatformSecurityAwareJob- Returns:
- The name of the Platform Compute Job that will be used when authorizing its start and cancellation.
-
platformCallback
protected abstract void platformCallback(PlatformCallbackGateway gate, long memPtr)
Performs platform callback.- Parameters:
gate- Gateway.memPtr- Pointer.
-
-