public interface ClientCompute
ClientClusterGroup
Modifier and Type | Method and Description |
---|---|
ClientClusterGroup |
clusterGroup()
Gets cluster group to which this
ClientCompute instance belongs. |
<T,R> R |
execute(String taskName,
T arg)
Executes given task within the cluster group.
|
<T,R> Future<R> |
executeAsync(String taskName,
T arg)
Deprecated.
Use
executeAsync2(String, Object) instead.
This method calls executeAsync2(String, Object) internally, but returns a more limited
Future interface. |
<T,R> IgniteClientFuture<R> |
executeAsync2(String taskName,
T arg)
Executes given task asynchronously within the cluster group.
|
ClientCompute |
withNoFailover()
Sets no-failover flag for tasks executed by returned
ClientCompute instance. |
ClientCompute |
withNoResultCache()
Disables result caching for tasks executed by returned
ClientCompute instance. |
ClientCompute |
withTimeout(long timeout)
Sets timeout for tasks executed by returned
ClientCompute instance. |
ClientClusterGroup clusterGroup()
ClientCompute
instance belongs.ClientCompute
instance belongs.<T,R> R execute(String taskName, @Nullable T arg) throws ClientException, InterruptedException
ComputeTask
documentation.taskName
- Name of the task to execute.arg
- Optional argument of task execution, can be null
.ClientException
- If task failed.InterruptedException
- If the wait for task completion was interrupted.for information about task execution.
@Deprecated <T,R> Future<R> executeAsync(String taskName, @Nullable T arg) throws ClientException
executeAsync2(String, Object)
instead.
This method calls executeAsync2(String, Object)
internally, but returns a more limited
Future interface.ComputeTask
documentation.taskName
- Name of the task to execute.arg
- Optional argument of task execution, can be null
.ClientException
- If task failed.for information about task execution.
<T,R> IgniteClientFuture<R> executeAsync2(String taskName, @Nullable T arg) throws ClientException
ComputeTask
documentation.taskName
- Name of the task to execute.arg
- Optional argument of task execution, can be null
.ClientException
- If task failed.for information about task execution.
ClientCompute withTimeout(long timeout)
ClientCompute
instance.ClientCompute
instance with given timeout.ClientCompute withNoFailover()
ClientCompute
instance.
If flag is set, job will be never failed over even if remote node crashes or rejects execution.
See ComputeTask
documentation for more information about jobs failover.ClientCompute
instance with no-failover flag.ClientCompute withNoResultCache()
ClientCompute
instance.
See ComputeTask
documentation for more information tasks result caching.ClientCompute
instance with "no result cache" flag.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024