Apache Ignite.NET
Apache.Ignite.Core.Compute.IComputeJob< out out TRes > Interface Template Reference

Defines executable unit for IComputeTask<A,T,R>. Ignite 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 Ignite nodes for execution. Grid will then serialize this jobs and send them to requested nodes for execution. More...

Public Member Functions

TRes 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...
 

Detailed Description

Once job execution is complete, the return value will be sent back to parent task and will be passed into IComputeTask<TA,T,TR>.OnResult method via IComputeJobResult<T> instance.

Ignite job implementation can be injected with IIgnite using InstanceResourceAttribute attribute.

Member Function Documentation

void Apache.Ignite.Core.Compute.IComputeJob< out out TRes >.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.

TRes Apache.Ignite.Core.Compute.IComputeJob< out out TRes >.Execute ( )
Returns
Job execution result (possibly null). This result will be returned in IComputeJobResult<T> object passed into IComputeTask<TA,T,TR>.OnResult on caller node.