Package weka.knowledgeflow
Class DelayedCallbackNotifierDelegate
- java.lang.Object
-
- weka.knowledgeflow.DelayedCallbackNotifierDelegate
-
- All Implemented Interfaces:
CallbackNotifierDelegate
public class DelayedCallbackNotifierDelegate extends java.lang.Object implements CallbackNotifierDelegate
Implementation of a CallbackNotifierDelegate that stores the ExecutionResult and only notifies the callback when the notifyNow() method is called.- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
-
Constructor Summary
Constructors Constructor Description DelayedCallbackNotifierDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotifyCallback(StepTaskCallback callback, StepTask taskExecuted, ExecutionResult result)Notify the callback.voidnotifyNow()Do the notification now
-
-
-
Method Detail
-
notifyCallback
public void notifyCallback(StepTaskCallback callback, StepTask taskExecuted, ExecutionResult result) throws java.lang.Exception
Notify the callback. This implementation stores the result, and only notifies the callback when the notifyNow() method is called.- Specified by:
notifyCallbackin interfaceCallbackNotifierDelegate- Parameters:
callback- the callback to notifytaskExecuted- the StepTask that was executedresult- the ExecutionResult that was produced- Throws:
java.lang.Exception- if a problem occurs
-
notifyNow
public void notifyNow() throws java.lang.ExceptionDo the notification now- Throws:
java.lang.Exception- if a problem occurs
-
-