Convenience adapter for IComputeJob<T> implementations. It provides the following functionality:
More...
Inherits GridGain.Compute.IComputeJob< T >.
|
| void | Cancel () |
| | This method is called when system detects that completion of this job can no longer alter the overall outcome (for example, when parent task has already reduced the results). More...
|
| |
| void | SetArguments (params object[] args) |
| | Sets given arguments. More...
|
| |
| TArg | Argument< TArg > (int idx) |
| | Sets given arguments. More...
|
| |
| abstract T | Execute () |
| | Executes this job. More...
|
| |
| T | Execute () |
| | Executes this job. More...
|
| |
| void | Cancel () |
| | This method is called when system detects that completion of this job can no longer alter the overall outcome (for example, when parent task has already reduced the results). More...
|
| |
- Parameters
-
| args | Optional job arguments. |
- Parameters
-
| idx | Index of the argument. |
Note that job cancellation is only a hint, and it is really up to the actual job instance to gracefully finish execution and exit.
- Returns
- Job execution result (possibly
null). This result will be returned in IComputeJobResult<T> object passed into IComputeTask<A,T,R>.Result on caller node.
- Returns
True if this job was cancelled, false otherwise.
- Parameters
-
| args | Optional job arguments to set. |