public class GridClosureProcessor extends GridProcessorAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
GridClosureProcessor.C1<T,R> |
static class |
GridClosureProcessor.C1MLA<T,R> |
static class |
GridClosureProcessor.C2<R> |
static class |
GridClosureProcessor.C2MLA<R> |
static class |
GridClosureProcessor.C4 |
static class |
GridClosureProcessor.C4MLA |
GridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
GridClosureProcessor(GridKernalContext ctx) |
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onReconnected, printMemoryStats, stop, toString, validateNode, validateNodepublic 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, Collection<? extends Runnable> jobs, TaskExecutionOptions opts)
mode - Distribution mode.jobs - Closures to execute.opts - Task execution options.public ComputeTaskInternalFuture<?> runAsync(GridClosureCallMode mode, Runnable job, TaskExecutionOptions opts)
mode - Distribution mode.job - Closure to execute.opts - Task execution options.public <R1,R2> ComputeTaskInternalFuture<R2> forkjoinAsync(GridClosureCallMode mode, Collection<? extends Callable<R1>> jobs, IgniteReducer<R1,R2> rdc, TaskExecutionOptions opts)
R1 - Type.R2 - Type.mode - Distribution mode.jobs - Closures to execute.rdc - Reducer.opts - Task execution options.public <R> IgniteInternalFuture<Collection<R>> callAsync(GridClosureCallMode mode, Collection<? extends Callable<R>> jobs, TaskExecutionOptions opts)
R - Type.mode - Distribution mode.jobs - Closures to execute.opts - Task execution options.public <R> ComputeTaskInternalFuture<R> affinityCall(Collection<String> cacheNames, Object affKey, IgniteCallable<R> job, TaskExecutionOptions opts) throws IgniteCheckedException
cacheNames - Cache names.affKey - Affinity key.job - Closure to execute.opts - Task execution options.IgniteCheckedException - If failed.public <R> ComputeTaskInternalFuture<R> affinityCall(@NotNull @NotNull Collection<String> cacheNames, int partId, Callable<R> job, TaskExecutionOptions opts) throws IgniteCheckedException
cacheNames - Cache names.partId - Partition.job - Closure to execute.opts - Task execution options.IgniteCheckedException - If failed.public ComputeTaskInternalFuture<?> affinityRun(@NotNull @NotNull Collection<String> cacheNames, Object affKey, Runnable job, TaskExecutionOptions opts) throws IgniteCheckedException
cacheNames - Cache names.affKey - Affinity key.job - Job.opts - Task execution options.IgniteCheckedException - If failed.public ComputeTaskInternalFuture<?> affinityRun(@NotNull @NotNull Collection<String> cacheNames, int partId, Runnable job, TaskExecutionOptions opts) throws IgniteCheckedException
cacheNames - Cache names.partId - Partition.job - Job.opts - Task execution options.IgniteCheckedException - If failed.public <R> IgniteInternalFuture<R> callAsync(GridClosureCallMode mode, Callable<R> job, TaskExecutionOptions opts)
R - Type.mode - Distribution mode.job - Closure to execute.opts - Task execution options.public <T,R> ComputeTaskInternalFuture<R> callAsync(IgniteClosure<T,R> job, @Nullable T arg, TaskExecutionOptions opts)
job - Job closure.arg - Optional job argument.opts - Task execution options.public <T,R> IgniteInternalFuture<Collection<R>> broadcast(IgniteClosure<T,R> job, @Nullable T arg, TaskExecutionOptions opts)
job - Job closure.arg - Optional job argument.opts - Task execution options.public <T,R> ComputeTaskInternalFuture<Collection<R>> callAsync(IgniteClosure<T,R> job, @Nullable @Nullable Collection<? extends T> args, TaskExecutionOptions opts)
job - Job closure.args - Job arguments.opts - Task execution options.public <T,R1,R2> ComputeTaskInternalFuture<R2> callAsync(IgniteClosure<T,R1> job, Collection<? extends T> args, IgniteReducer<R1,R2> rdc, TaskExecutionOptions opts)
job - Job closure.args - Job arguments.rdc - Reducer.opts - Task execution options.public void runLocalWithThreadPolicy(IgniteThread thread, Runnable c)
thread - Thread.c - Closure.public IgniteInternalFuture<?> runLocal(@Nullable @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)
c - Closure to execute.public IgniteInternalFuture<?> runLocalSafe(Runnable c, boolean sys)
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)
c - Closure to execute.plc - Policy to choose executor pool.public <R> IgniteInternalFuture<R> callLocal(@Nullable @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.public <R> IgniteInternalFuture<R> callLocalSafe(Callable<R> c, byte plc)
callLocal(Callable, 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.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023