Public Member Functions | Properties | List of all members
GridGain.Compute.IComputeJobResult< out out T > Interface Template Reference

Job execution result which gets passed to IComputeTask<A,T,R>.Result(IComputeJobResult<T>, IList<IComputeJobResult<T>>) method. More...

Public Member Functions

T Data ()
 Gets data returned by remote job if it didn't fail. This data is the object returned from IComputeJob<T>.Execute() method. More...
 
IComputeJob< T > Job ()
 Gets local instance of remote job produced this result. More...
 
Exception Exception ()
 Gets exception produced by execution of remote job, or null if no exception was produced. More...
 

Properties

Guid NodeId [get]
 ID of the node where actual job execution occurred. More...
 
bool Cancelled [get]
 Whether the job was cancelled. More...
 

Detailed Description

Member Function Documentation

T GridGain.Compute.IComputeJobResult< out out T >.Data ( )

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

Returns
Data returned by job.
Exception GridGain.Compute.IComputeJobResult< out out T >.Exception ( )
Returns
Exception or null in case of success.
Returns

Property Documentation

bool GridGain.Compute.IComputeJobResult< out out T >.Cancelled
get
Guid GridGain.Compute.IComputeJobResult< out out T >.NodeId
get