Search Results for

Show / Hide Table of Contents

# Interface IComputeJobResult<TRes>

Job execution result which gets passed to OnResult(IComputeJobResult<TJobRes>, IList<IComputeJobResult<TJobRes>>) method.

###### Namespace: Apache.Ignite.Core.Compute

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public interface IComputeJobResult<out TRes>

##### Type Parameters

Name | Description
--- | ---
TRes |

### Properties

#### Cancelled

Whether the job was cancelled.

##### Declaration

    bool Cancelled { get; }

##### Property Value

Type | Description
--- | ---
System.Boolean |

#### Data

Gets data returned by remote job if it didn't fail. This data is the object returned from Execute() method.

Note that if task is annotated with ComputeTaskNoResultCacheAttribute attribute, then job results will not be cached and will be available only in OnResult(IComputeJobResult<TJobRes>, IList<IComputeJobResult<TJobRes>>) method for every individual job, but not in Reduce(IList<IComputeJobResult<TJobRes>>) method.

##### Declaration

    TRes Data { get; }

##### Property Value

Type | Description
--- | ---
TRes | Data returned by job.

#### Exception

Gets exception produced by execution of remote job, or `null` if no exception was produced.

##### Declaration

    Exception Exception { get; }

##### Property Value

Type | Description
--- | ---
Exception | Exception or `null` in case of success.

#### Job

Gets local instance of remote job produced this result.

##### Declaration

    IComputeJob<TRes> Job { get; }

##### Property Value

Type | Description
--- | ---
IComputeJob<TRes> |

#### NodeId

ID of the node where actual job execution occurred.

##### Declaration

    Guid NodeId { get; }

##### Property Value

Type | Description
--- | ---
Guid |