public class IgniteComputeHandler extends Object
GridTaskProcessor and
GridClosureProcessor internal processors. It also provides a built-in mechanism for accumulating execution
options that are automatically applied to computations.TaskExecutionOptions,
IgniteComputeImpl,
PlatformCompute| Constructor and Description |
|---|
IgniteComputeHandler(GridKernalContext ctx,
Function<TaskExecutionOptions,TaskExecutionOptions> optsTransformer) |
IgniteComputeHandler(IgniteComputeHandler other,
Function<TaskExecutionOptions,TaskExecutionOptions> optsTransformer)
Creates copy of specified computation handler.
|
public IgniteComputeHandler(IgniteComputeHandler other, Function<TaskExecutionOptions,TaskExecutionOptions> optsTransformer)
optsTransformer applied to them.other - Ignite computation handler.optsTransformer - Function for initial execution options customization.public IgniteComputeHandler(GridKernalContext ctx, Function<TaskExecutionOptions,TaskExecutionOptions> optsTransformer)
ctx - Kernal context.optsTransformer - Function for initial execution options customization.public IgniteInternalFuture<?> affinityRunAsync(String cacheName, Object affKey, IgniteRunnable job)
cacheName - Cache name.affKey - Affinity key.job - Job.public IgniteInternalFuture<?> affinityRunAsync(@NotNull @NotNull Collection<String> cacheNames, Object affKey, IgniteRunnable job)
cacheNames - Cache names collection.affKey - Affinity key.job - Job.public IgniteInternalFuture<?> affinityRunAsync(@NotNull @NotNull Collection<String> cacheNames, int partId, IgniteRunnable job)
cacheNames - Cache names collection.partId - partition ID.job - Job.public <R> IgniteInternalFuture<R> affinityCallAsync(String cacheName, Object affKey, IgniteCallable<R> job)
cacheName - Cache name.affKey - Affinity key.job - Job.public <R> IgniteInternalFuture<R> affinityCallAsync(@NotNull @NotNull Collection<String> cacheNames, Object affKey, IgniteCallable<R> job)
cacheNames - Cache names collection.affKey - Affinity key.job - Job.public <R> IgniteInternalFuture<R> affinityCallAsync(@NotNull @NotNull Collection<String> cacheNames, int partId, IgniteCallable<R> job)
cacheNames - Cache names collection.partId - Partition ID.job - Job.public <T,R> IgniteInternalFuture<R> executeAsync(String taskName, @Nullable T arg)
taskName - Task name.arg - Argument.public <T,R> IgniteInternalFuture<R> executeAsync(Class<? extends ComputeTask<T,R>> taskCls, @Nullable T arg)
taskCls - Task class.arg - Argument.public <T,R> ComputeTaskInternalFuture<R> executeAsync(ComputeTask<T,R> task, @Nullable T arg)
task - Task.arg - Task argument.public IgniteInternalFuture<?> broadcastAsync(IgniteRunnable job)
job - Job.public <R> IgniteInternalFuture<Collection<R>> broadcastAsync(IgniteCallable<R> job)
job - Job.public <R,T> IgniteInternalFuture<Collection<R>> broadcastAsync(IgniteClosure<T,R> job, @Nullable T arg)
job - Job.arg - Argument.public IgniteInternalFuture<?> runAsync(IgniteRunnable job)
job - Job.public IgniteInternalFuture<?> runAsync(Collection<? extends IgniteRunnable> jobs)
jobs - Jobs.public <R,T> IgniteInternalFuture<R> applyAsync(IgniteClosure<T,R> job, @Nullable T arg)
job - Job.arg - Argument.public <R> IgniteInternalFuture<R> callAsync(IgniteCallable<R> job)
job - Job.public <R> IgniteInternalFuture<Collection<R>> callAsync(Collection<? extends IgniteCallable<R>> jobs)
jobs - Jobs.public <T,R> IgniteInternalFuture<Collection<R>> applyAsync(IgniteClosure<T,R> job, @Nullable @Nullable Collection<? extends T> args)
job - Job.args - Arguments/public <R1,R2> IgniteInternalFuture<R2> callAsync(Collection<? extends IgniteCallable<R1>> jobs, IgniteReducer<R1,R2> rdc)
jobs - Jobs.rdc - Reducer.public <R1,R2,T> IgniteInternalFuture<R2> applyAsync(IgniteClosure<T,R1> job, Collection<? extends T> args, IgniteReducer<R1,R2> rdc)
job - Jobargs - Arguments.rdc - Reducer.public IgniteComputeHandler withName(String taskName)
public IgniteComputeHandler withTimeout(long timeout)
public IgniteComputeHandler withNoFailover()
public IgniteComputeHandler withProjection(Collection<ClusterNode> prj)
public IgniteComputeHandler withNoResultCache()
public IgniteComputeHandler withExecutor(String execName)
public IgniteComputeHandler withProjectionPredicate(IgnitePredicate<ClusterNode> predicate)
public IgniteComputeHandler asPublicRequest()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023