Package weka.knowledgeflow.steps
Class Block
java.lang.Object
weka.knowledgeflow.steps.BaseStep
weka.knowledgeflow.steps.Block
- All Implemented Interfaces:
Serializable
,BaseStepExtender
,Step
@KFStep(name="Block",
category="Flow",
toolTipText="Block until a specific step has finished procesing",
iconPath="weka/gui/knowledgeflow/icons/DiamondPlain.gif")
public class Block
extends BaseStep
A step that waits for a specified step to finish processing before allowing
incoming data to proceed downstream.
- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the fully qualified class name of the custom editor for this stepGet a list of incoming connection types that this step can accept at this timeGet a list of outgoing connection types that this step can produce at this timeGet the step to wait forvoid
processIncoming
(Data data) Process incoming datavoid
setStepToWaitFor
(String stepToWaitFor) Set the step to wait forvoid
stepInit()
Initialize the stepMethods inherited from class weka.knowledgeflow.steps.BaseStep
environmentSubstitute, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
-
Constructor Details
-
Block
public Block()
-
-
Method Details
-
setStepToWaitFor
@OptionMetadata(displayName="Wait until this step has completed", description="This step will prevent data from passing downstream until the specified step has finished processing") public void setStepToWaitFor(String stepToWaitFor) Set the step to wait for- Parameters:
stepToWaitFor
- the step to wait for
-
getStepToWaitFor
Get the step to wait for- Returns:
- the step to wait for
-
stepInit
Initialize the step- Throws:
WekaException
- if a problem occurs
-
processIncoming
Process incoming data- Specified by:
processIncoming
in interfaceBaseStepExtender
- Specified by:
processIncoming
in interfaceStep
- Overrides:
processIncoming
in classBaseStep
- Parameters:
data
- the data to process- Throws:
WekaException
- if a problem occurs
-
getIncomingConnectionTypes
Get a list of incoming connection types that this step can accept at this time- Returns:
- a list of incoming connection types
-
getOutgoingConnectionTypes
Get a list of outgoing connection types that this step can produce at this time- Returns:
- a list of outgoing connection types
-
getCustomEditorForStep
Get the fully qualified class name of the custom editor for this step- Specified by:
getCustomEditorForStep
in interfaceStep
- Overrides:
getCustomEditorForStep
in classBaseStep
- Returns:
- the class name of the custom editor
-