Package weka.knowledgeflow
Interface StepTaskCallback<T>
-
- Type Parameters:
T- the result return type (gets encapsulated in an ExecutionResult)
public interface StepTaskCallback<T>Callback that Steps can use when executing StepTasks via EnvironmentManager.submitTask().- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtaskFailed(StepTask<T> failedTask, ExecutionResult<T> failedResult)Gets called if theStepTaskfails for some reasonvoidtaskFinished(ExecutionResult<T> result)Gets called when theStepTaskfinishes processing
-
-
-
Method Detail
-
taskFinished
void taskFinished(ExecutionResult<T> result) throws java.lang.Exception
Gets called when theStepTaskfinishes processing- Parameters:
result- theExecutionrRsultproduced by the task- Throws:
java.lang.Exception- if a problem occurs
-
taskFailed
void taskFailed(StepTask<T> failedTask, ExecutionResult<T> failedResult) throws java.lang.Exception
Gets called if theStepTaskfails for some reason- Parameters:
failedTask- the that failedfailedResult- the produced by the failed task (might contain information pertaining to the failure)- Throws:
java.lang.Exception- if a problem occurs
-
-