public class GridClosureProcessor extends GridProcessorAdapter
GridComponent.DiscoveryDataExchangeTypectx, log| Constructor and Description |
|---|
GridClosureProcessor(GridKernalContext ctx) |
assertParameter, collectDiscoveryData, discoveryDataType, onDiscoveryDataReceived, onKernalStart, printMemoryStats, stop, toString, 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, @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(@Nullable String cacheName, Object affKey, Callable<R> job, @Nullable Collection<ClusterNode> nodes)
cacheName - Cache name.affKey - Affinity key.job - Job.nodes - Grid nodes.public ComputeTaskInternalFuture<?> affinityRun(@Nullable String cacheName, Object affKey, Runnable job, @Nullable Collection<ClusterNode> nodes)
cacheName - Cache name.affKey - Affinity key.job - Job.nodes - Grid nodes.public <R> IgniteInternalFuture<R> callAsyncNoFailover(GridClosureCallMode mode, @Nullable 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 <R> IgniteInternalFuture<Collection<R>> callAsyncNoFailover(GridClosureCallMode mode, @Nullable 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, 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<?> 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, GridClosurePolicy 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> 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, GridClosurePolicy 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 Fabric : ver. 1.2.0-incubating Release Date : June 16 2015