@PublicAPI public interface TaskResult extends Serializable
hadException()
method.Modifier and Type | Method and Description |
---|---|
FlowAction |
getAction()
If a FlowScript was executed on this task, its result
is stored it so that the action can be performed later when
processed by the core.
|
Throwable |
getException()
Retrieve the exception threw by the task.
|
Map<String,String> |
getMetadata()
Get metadata associated with this result.
|
TaskLogs |
getOutput()
Return the output of the execution, including stdout and stderr.
|
Map<String,byte[]> |
getPropagatedVariables()
Return the content of propagated variables, in byte array format
|
Map<String,Serializable> |
getResultMap()
Returns a map of job results
|
byte[] |
getSerializedValue()
Get the serialized value of the task.
|
TaskId |
getTaskId()
To get the id of the task.
|
Serializable |
getValue()
Get the value of the task.
|
Map<String,Serializable> |
getVariables()
Returns the deserialized version of the propagated variables
|
boolean |
hadException()
To know if an exception has occurred on this task.
|
boolean |
isRaw()
Returns true if this result contains raw data (i.e.
|
Serializable |
value()
Get the value of the task.
|
boolean hadException()
TaskId getTaskId()
Serializable value() throws Throwable
Throwable
- If the value has generate an exception.Serializable getValue() throws Throwable
Throwable
byte[] getSerializedValue()
Map<String,String> getMetadata()
FlowAction getAction()
Throwable getException()
TaskLogs getOutput()
Map<String,byte[]> getPropagatedVariables()
Map<String,Serializable> getVariables() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
boolean isRaw()
Map<String,Serializable> getResultMap()