Package weka.knowledgeflow
Class StepInjectorFlowRunner
java.lang.Object
weka.knowledgeflow.FlowRunner
weka.knowledgeflow.StepInjectorFlowRunner
- All Implemented Interfaces:
CommandlineRunnable
,FlowExecutor
A flow runner that runs a flow by injecting data into a target step
- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
Nested Class Summary
Nested classes/interfaces inherited from class weka.knowledgeflow.FlowRunner
FlowRunner.SimpleLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFind a step in the flowvoid
injectStreaming
(Data toInject, Step target, boolean lastData) Inject streaming data into the target step in the flowvoid
injectWithExecutionFinishedCallback
(Data toInject, ExecutionFinishedCallback callback, Step target) Inject data into the flowvoid
reset()
Rest the runnerMethods inherited from class weka.knowledgeflow.FlowRunner
addExecutionFinishedCallback, flowBusy, getExecutionEnvironment, getFlow, getLaunchStartPointsSequentially, getLogger, getLoggingLevel, getSettings, main, postExecution, preExecution, removeExecutionFinishedCallback, run, run, runParallel, runSequentially, setEnvironment, setExecutionEnvironment, setFlow, setLaunchStartPointsSequentially, setLogger, setLoggingLevel, setSettings, stopProcessing, waitUntilFinished, wasStopped
-
Constructor Details
-
StepInjectorFlowRunner
public StepInjectorFlowRunner()
-
-
Method Details
-
reset
public void reset()Rest the runner -
injectWithExecutionFinishedCallback
public void injectWithExecutionFinishedCallback(Data toInject, ExecutionFinishedCallback callback, Step target) throws WekaException Inject data into the flow- Parameters:
toInject
- the data to injectcallback
- aExecutionFinishedCallback
to notify when execution completestarget
- the targetStep
to inject to- Throws:
WekaException
- if a problem occurs
-
findStep
Find a step in the flow- Parameters:
stepName
- the name of the Step to findstepClass
- the class of the step to find- Returns:
- the named step
- Throws:
WekaException
- if the named step is not in the flow or the found step is not of the supplied class
-
injectStreaming
Inject streaming data into the target step in the flow- Parameters:
toInject
- a streamingData
object to injecttarget
- the target step to inject tolastData
- true if this is the last piece of data in the stream- Throws:
WekaException
- if a problem occurs
-