Class ExecutionResult<T>

java.lang.Object
weka.knowledgeflow.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the Exception generated during processing of a StepTask, or null if the task completed successfully.
    Get the result generated by the StepTask
    void
    Set an exception, in the case that an error occurred during the processing done by a StepTask
    void
    setResult(T result)
    Set the result generated by the StepTask

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExecutionResult

      public ExecutionResult()
  • Method Details

    • 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