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
Modifier and TypeMethodDescriptionvoid
taskFailed
(StepTask<T> failedTask, ExecutionResult<T> failedResult) Gets called if theStepTask
fails for some reasonvoid
taskFinished
(ExecutionResult<T> result) Gets called when theStepTask
finishes processing
-
Method Details
-
taskFinished
Gets called when theStepTask
finishes processing- Parameters:
result
- theExecutionrRsult
produced by the task- Throws:
Exception
- if a problem occurs
-
taskFailed
Gets called if theStepTask
fails for some reason- Parameters:
failedTask
- the that failedfailedResult
- the produced by the failed task (might contain information pertaining to the failure)- Throws:
Exception
- if a problem occurs
-