|
GridGain 2.0.3
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Apache20LicenseCompatible public interface GridJobResult
Result of remote job which gets passed into GridTask.result(GridJobResult, List)
method.
See Also:
Documentation
Email Support
Online Forums
Issue Tracking
Author: 2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.0.3

| Method Summary | ||
|---|---|---|
|
getData()
Gets data returned by remote job if it didn't fail. |
|
GridException |
getException()
Gets exception produced by execution of remote job, or null if remote execution finished normally and did not produce any exceptions. |
|
|
getJob()
Gets local instance of remote job returned by GridTask.map(List, Object) method. |
|
GridJobContext |
getJobContext()
Gets job context. |
|
UUID |
getJobId()
Deprecated. |
|
GridNode |
getNode()
Gets node this job executed on. |
|
boolean |
isCancelled()
Gets job cancellation status. |
|
| Method Detail |
|---|
@Deprecated UUID getJobId()
GridJobResult.getJobContext() method which contains all job related
information in addition to job ID. See GridJobContext for more information.
GridJobContext getJobContext()
<T> T getData()
GridJob.execute() method.
Note that if task is annotated with GridTaskNoResultCache annotation,
then job results will not be cached and will be available only in
GridTask.result(GridJobResult, List) method for every individual job,
but not in GridTask.reduce(List) method. This feature was added to
avoid excessive storing of overly large results.
T - Type of the return value returning from GridJob.execute() method.
GridJob.execute() method if it didn't fail.GridException getException()
GridException produced by execution of remote job or null if
no exception was produced.
Note that if remote job resulted in RuntimeException
or Error then they will be wrapped into GridUserUndeclaredException
returned by this method.
If job on remote node was rejected (cancelled while it was on waiting queue), then
GridExecutionRejectedException will be returned.
If node on which job was computing failed, then GridTopologyException is
returned.
<T extends GridJob> T getJob()
GridTask.map(List, Object) method.
T - Type of GridJob that was sent to remote node.
GridTask.map(List, Object) method.GridNode getNode()
boolean isCancelled()
GridJobResult.getData() method may contain
execution result even if the job was canceled.
Job can receive cancellation request if the task was explicitly cancelled
from future (see GridTaskFuture.cancel()) or if task completed prior
to getting results from all remote jobs.
|
GridGain 2.0.3
Java API Specification |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
GridGain - Grid Computing Made Simple, ver. 2.0.3.20052008
2005-2008 Copyright © GridGain Systems. All Rights Reserved. |
|