@ComputeTaskNoResultCache public final class PlatformFullTask extends PlatformAbstractTask
ctx, done, lock, taskPtr| Constructor and Description |
|---|
PlatformFullTask(PlatformContext ctx,
ClusterGroup grp,
long taskPtr,
long topVer,
String taskName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Map<? extends ComputeJob,ClusterNode> |
map(List<ClusterNode> subgrid,
@Nullable Object arg)
This method is called to map or split grid task into multiple grid jobs.
|
onDone, reduce, resultpublic PlatformFullTask(PlatformContext ctx, ClusterGroup grp, long taskPtr, long topVer, String taskName)
ctx - Platform context.grp - Cluster group.taskPtr - Pointer to the task in the native platform.topVer - Initial topology version.taskName - Task name.@NotNull public @NotNull Map<? extends ComputeJob,ClusterNode> map(List<ClusterNode> subgrid, @Nullable @Nullable Object arg)
subgrid - Nodes available for this task execution. Note that order of nodes is
guaranteed to be randomized by container. This ensures that every time
you simply iterate through grid nodes, the order of nodes will be random which
over time should result into all nodes being used equally.arg - Task execution argument. Can be null. This is the same argument
as the one passed into Grid#execute(...) methods.ComputeTaskContinuousMapper is
injected into task, if null or empty map is returned, exception will be thrown.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023