Class ExecutionResult<T>

  • Type Parameters:
    T - the type of the result stored
    All Implemented Interfaces:
    Serializable

    public class ExecutionResult<T>
    extends Object
    implements Serializable
    Stores the result generated by a StepTask.
    Version:
    $Revision: $
    Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)
    See Also:
    Serialized Form
    • Constructor Detail

      • ExecutionResult

        public ExecutionResult()
    • Method Detail

      • setError

        public void setError​(Exception error)
        Set an exception, in the case that an error occurred during the processing done by a StepTask
        Parameters:
        error -
      • getError

        public Exception getError()
        Get the Exception generated during processing of a StepTask, or null if the task completed successfully.
        Returns:
        the Exception generated, or null if the task completed successfully
      • setResult

        public void setResult​(T result)
        Set the result generated by the StepTask
        Parameters:
        result - the result generated by the StepTask
      • getResult

        public T getResult()
        Get the result generated by the StepTask
        Returns:
        the result generated by the StepTask