
Defines executable unit for IComputeTask<A,T,R>. Grid task gets split into jobs when IComputeTask<A,T,R>.Map(IList<IClusterNode>, A) method is called. This method returns all jobs for the task mapped to their corresponding grid nodes for execution. Grid will then serialize this jobs and send them to requested nodes for execution. More...
Public Member Functions | |
| 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... | |
Once job execution is complete, the return value will be sent back to parent task and will be passed into IComputeTask<A,T,R>.Result(IComputeJobResult<T>, IList<IComputeJobResult<T>>) method via IComputeJobResult<T> instance.
Grid job implementation can be injected with GridGain.IGrid using InstanceResourceAttribute attribute.
| void GridGain.Compute.IComputeJob< out out T >.Cancel | ( | ) |
Note that job cancellation is only a hint, and it is really up to the actual job instance to gracefully finish execution and exit.
| T GridGain.Compute.IComputeJob< out out T >.Execute | ( | ) |
null). This result will be returned in IComputeJobResult<T> object passed into IComputeTask<A,T,R>.Result(IComputeJobResult<T>, IList<IComputeJobResult<T>>) on caller node.
1.8.11