@PublicAPI public interface JobResult extends Serializable
Modifier and Type | Method and Description |
---|---|
Map<String,TaskResult> |
getAllResults()
Return every task results of this job as a mapping between
user task name (in XML job description) and its task result.
User that wants to get a specific result may get this map and ask for a specific mapping or use the getResult(String) method. |
Map<String,TaskResult> |
getExceptionResults()
Return only the task results that have generated an exception.
User that wants to get a specific result may get this map and ask for a specific mapping. |
JobId |
getJobId()
To get the id of the job corresponding to this result.
|
JobInfo |
getJobInfo()
Return the information of the corresponding job
|
String |
getName()
To get the name of the job that has generate this result.
|
Map<String,TaskResult> |
getPreciousResults()
Return only the precious results of this job as a mapping between
user task name (in XML job description) and its task result.
User that wants to get a specific result may get this map and ask for a specific mapping. |
TaskResult |
getResult(String taskName)
Return the task Result corresponding to the given name.
|
Map<String,Serializable> |
getResultMap()
Each task can contribute to this map.
|
boolean |
hadException()
Returns true if the job has generated an exception, false if not.
|
void |
removeResult(String taskName)
Remove the result of the given task in this jobResult.
|
JobId getJobId()
String getName()
JobInfo getJobInfo()
Map<String,TaskResult> getAllResults()
getResult(String)
method.Map<String,TaskResult> getPreciousResults()
Map<String,Serializable> getResultMap()
Map<String,TaskResult> getExceptionResults()
TaskResult getResult(String taskName) throws UnknownTaskException
taskName
- the task name of the result to get.UnknownTaskException
- if the given task name does not exist in this jobvoid removeResult(String taskName) throws UnknownTaskException
taskName
- the identification name of the task.UnknownTaskException
- if the given task name does not exist in this jobboolean hadException()