@KFStep(name="Job", category="Flow", toolTipText="Execute a flow as a \'job\' and wait for it to finish", iconPath="weka/gui/knowledgeflow/icons/Job.gif") public class Job extends BaseStep
| Modifier and Type | Field and Description |
|---|---|
protected FlowExecutor |
m_flowExecutor |
protected java.io.File |
m_flowToRun |
protected LoggingLevel |
m_logLevel |
m_stepIsResourceIntensive, m_stepManager, m_stepName| Constructor and Description |
|---|
Job() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustomEditorForStep()
Get the custom editor for this step
|
java.io.File |
getFlowFile() |
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
protected void |
runFlow(java.util.Map<java.lang.String,java.lang.String> varsToSet,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> propsToSet,
java.util.Map<java.lang.String,java.util.LinkedHashSet<Data>> results)
Run the sub-flow using the supplied environment variables (if any)
|
void |
setFlowFile(java.io.File flowFile) |
void |
start()
Start processing.
|
void |
stepInit()
Initialize the step.
|
environmentSubstitute, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, stepMustRunSingleThreaded, stopprotected java.io.File m_flowToRun
protected transient FlowExecutor m_flowExecutor
protected LoggingLevel m_logLevel
@FilePropertyMetadata(fileChooserDialogType=0, directoriesOnly=false) @OptionMetadata(displayName="Flow file", description="The flow to execute", displayOrder=0) public void setFlowFile(java.io.File flowFile)
public java.io.File getFlowFile()
public void stepInit()
throws WekaException
StepWekaException - if a problem occurs during initializationpublic void start()
throws WekaException
BaseStepstart in interface BaseStepExtenderstart in interface Stepstart in class BaseStepWekaException - if a problem occurspublic void processIncoming(Data data) throws WekaException
BaseStepprocessIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the payload to processWekaException - if a problem occursprotected void runFlow(java.util.Map<java.lang.String,java.lang.String> varsToSet,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> propsToSet,
java.util.Map<java.lang.String,java.util.LinkedHashSet<Data>> results)
throws WekaException
varsToSet - variables to set before executing the sub-flow. Can be
null.propsToSet - property values for target steps (only scheme-based steps
can be targets)results - results (if any) to pass in to the sub-flowWekaException - if a problem occurspublic java.util.List<java.lang.String> getIncomingConnectionTypes()
Steppublic java.util.List<java.lang.String> getOutgoingConnectionTypes()
Steppublic java.lang.String getCustomEditorForStep()
getCustomEditorForStep in interface StepgetCustomEditorForStep in class BaseStep