public class GridClosureProcessor extends GridProcessorAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
GridClosureProcessor.C1MLAV2<T,R> |
static class |
GridClosureProcessor.C1V2<T,R> |
static class |
GridClosureProcessor.C2MLAV2<R> |
static class |
GridClosureProcessor.C2V2<R> |
static class |
GridClosureProcessor.C4MLAV2 |
static class |
GridClosureProcessor.C4V2 |
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static IgniteProductVersion |
BINARYLIZABLE_CLOSURES_SINCE
Ignite version in which binarylizable versions of closures were introduced.
|
ctx, log| Constructor and Description |
|---|
GridClosureProcessor(GridKernalContext ctx) |
assertParameter, collectDiscoveryData, discoveryDataType, onDisconnected, onDiscoveryDataReceived, onKernalStart, onReconnected, printMemoryStats, stop, toString, validateNodepublic static final IgniteProductVersion BINARYLIZABLE_CLOSURES_SINCE
public GridClosureProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public ComputeTaskInternalFuture<?> runAsync(GridClosureCallMode mode, @Nullable Collection<? extends Runnable> jobs, @Nullable Collection<ClusterNode> nodes)
mode - Distribution mode.jobs - Closures to execute.nodes - Grid nodes.public ComputeTaskInternalFuture<?> runAsync(GridClosureCallMode mode, Collection<? extends Runnable> jobs, @Nullable Collection<ClusterNode> nodes, boolean sys)
mode - Distribution mode.jobs - Closures to execute.nodes - Grid nodes.sys - If true, then system pool will be used.public ComputeTaskInternalFuture<?> runAsync(GridClosureCallMode mode, Runnable job, @Nullable Collection<ClusterNode> nodes)
mode - Distribution mode.job - Closure to execute.nodes - Grid nodes.public ComputeTaskInternalFuture<?> runAsync(GridClosureCallMode mode, Runnable job, @Nullable Collection<ClusterNode> nodes, boolean sys)
mode - Distribution mode.job - Closure to execute.nodes - Grid nodes.sys - If true, then system pool will be used.public <R1,R2> ComputeTaskInternalFuture<R2> forkjoinAsync(GridClosureCallMode mode, Collection<? extends Callable<R1>> jobs, IgniteReducer<R1,R2> rdc, @Nullable Collection<ClusterNode> nodes)
R1 - Type.R2 - Type.mode - Distribution mode.jobs - Closures to execute.rdc - Reducer.nodes - Grid nodes.public <R> ComputeTaskInternalFuture<Collection<R>> callAsync(GridClosureCallMode mode, @Nullable Collection<? extends Callable<R>> jobs, @Nullable Collection<ClusterNode> nodes)
R - Type.mode - Distribution mode.jobs - Closures to execute.nodes - Grid nodes.public <R> ComputeTaskInternalFuture<Collection<R>> callAsync(GridClosureCallMode mode, Collection<? extends Callable<R>> jobs, @Nullable Collection<ClusterNode> nodes, boolean sys)
R - Type.mode - Distribution mode.jobs - Closures to execute.nodes - Grid nodes.sys - If true, then system pool will be used.public <R> ComputeTaskInternalFuture<R> callAsync(GridClosureCallMode mode, @Nullable Callable<R> job, @Nullable Collection<ClusterNode> nodes)
R - Type.mode - Distribution mode.job - Closure to execute.nodes - Grid nodes.public <R> ComputeTaskInternalFuture<R> affinityCall(@NotNull Collection<String> cacheNames, int partId, @Nullable Object affKey, Callable<R> job, @Nullable Collection<ClusterNode> nodes) throws IgniteCheckedException
cacheNames - Cache names.partId - Partition.affKey - Affinity key.job - Closure to execute.nodes - Grid nodes.IgniteCheckedException - If failed.public ComputeTaskInternalFuture<?> affinityRun(@NotNull Collection<String> cacheNames, int partId, @Nullable Object affKey, Runnable job, @Nullable Collection<ClusterNode> nodes) throws IgniteCheckedException
cacheNames - Cache names.partId - Partition.affKey - Affinity key.job - Job.nodes - Grid nodes.IgniteCheckedException - If failed.public <R> IgniteInternalFuture<R> callAsyncNoFailover(GridClosureCallMode mode, @Nullable Callable<R> job, @Nullable Collection<ClusterNode> nodes, boolean sys, long timeout)
R - Type.mode - Distribution mode.job - Closure to execute.nodes - Grid nodes.sys - If true, then system pool will be used.public <R> IgniteInternalFuture<Collection<R>> callAsyncNoFailover(GridClosureCallMode mode, @Nullable Collection<? extends Callable<R>> jobs, @Nullable Collection<ClusterNode> nodes, boolean sys, long timeout)
R - Type.mode - Distribution mode.jobs - Closures to execute.nodes - Grid nodes.sys - If true, then system pool will be used.timeout - If greater than 0 limits task execution. Cannot be negative.public <R> ComputeTaskInternalFuture<R> callAsync(GridClosureCallMode mode, Callable<R> job, @Nullable Collection<ClusterNode> nodes, boolean sys)
R - Type.mode - Distribution mode.job - Closure to execute.nodes - Grid nodes.sys - If true, then system pool will be used.public <T,R> ComputeTaskInternalFuture<R> callAsync(IgniteClosure<T,R> job, @Nullable T arg, @Nullable Collection<ClusterNode> nodes)
job - Job closure.arg - Optional job argument.nodes - Grid nodes.public <T,R> IgniteInternalFuture<Collection<R>> broadcast(IgniteClosure<T,R> job, @Nullable T arg, @Nullable Collection<ClusterNode> nodes)
job - Job closure.arg - Optional job argument.nodes - Grid nodes.public <T,R> IgniteInternalFuture<Collection<R>> broadcastNoFailover(IgniteClosure<T,R> job, @Nullable T arg, @Nullable Collection<ClusterNode> nodes)
job - Job closure.arg - Optional job argument.nodes - Grid nodes.public <T,R> ComputeTaskInternalFuture<Collection<R>> callAsync(IgniteClosure<T,R> job, @Nullable Collection<? extends T> args, @Nullable Collection<ClusterNode> nodes)
job - Job closure.args - Job arguments.nodes - Grid nodes.public <T,R1,R2> ComputeTaskInternalFuture<R2> callAsync(IgniteClosure<T,R1> job, Collection<? extends T> args, IgniteReducer<R1,R2> rdc, @Nullable Collection<ClusterNode> nodes)
job - Job closure.args - Job arguments.rdc - Reducer.nodes - Grid nodes.public IgniteInternalFuture<?> runLocal(@Nullable Runnable c, byte plc) throws IgniteCheckedException
c - Closure to execute.plc - Whether to run on system or public pool.IgniteCheckedException - Thrown in case of any errors.public IgniteInternalFuture<?> runLocalSafe(Runnable c)
runLocal(Runnable, boolean) but
in case of rejected execution re-runs the closure in the current thread (blocking).c - Closure to execute.public IgniteInternalFuture<?> runLocalSafe(Runnable c, boolean sys)
runLocal(Runnable, boolean) but in case of rejected execution re-runs
the closure in the current thread (blocking).c - Closure to execute.sys - If true, then system pool will be used, otherwise public pool will be used.public IgniteInternalFuture<?> runLocalSafe(Runnable c, byte plc)
runLocal(Runnable, boolean) but in case of rejected execution re-runs
the closure in the current thread (blocking).c - Closure to execute.plc - Policy to choose executor pool.public <R> IgniteInternalFuture<R> callLocal(@Nullable Callable<R> c, byte plc) throws IgniteCheckedException
R - Type of closure return value.c - Closure to execute.plc - Whether to run on system or public pool.IgniteCheckedException - Thrown in case of any errors.public <R> IgniteInternalFuture<R> callLocalSafe(Callable<R> c)
callLocal(Callable, boolean)
but in case of rejected execution re-runs the closure in the current thread (blocking).c - Closure to execute.public <R> IgniteInternalFuture<R> callLocalSafe(Callable<R> c, boolean sys)
callLocal(Callable, boolean)
but in case of rejected execution re-runs the closure in the current thread (blocking).c - Closure to execute.sys - If true, then system pool will be used, otherwise public pool will be used.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017