程序包 weka.gui.beans
类 FlowRunner
java.lang.Object
weka.gui.beans.FlowRunner
- 所有已实现的接口:
RevisionHandler
Small utility class for executing KnowledgeFlow
flows outside of the KnowledgeFlow application
- 版本:
- $Revision: 7059 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}org)
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get the environment variables that are in use.getFlows()
Get the vector holding the flow(s)Returns the revision string.boolean
Gets whether Startable beans will be launched sequentially or all in parallel.void
Load a serialized KnowledgeFlow (either binary or xml)void
loadBinary
(String fileName) Load a binary serialized KnowledgeFlowvoid
Load an XML serialized KnowledgeFlowstatic void
Main method for testing this class.void
run()
Launch all loaded KnowledgeFlowvoid
Set the environment variables to use.void
Set the vector holding the flows(s) to runvoid
void
setStartSequentially
(boolean s) Set whether to launch Startable beans one after the other or all in parallel.void
void
Waits until all flows have finished executing before returning
-
构造器详细资料
-
FlowRunner
public FlowRunner()Constructor
-
-
方法详细资料
-
setLog
-
stopAllFlows
public void stopAllFlows() -
waitUntilFinished
public void waitUntilFinished()Waits until all flows have finished executing before returning -
load
Load a serialized KnowledgeFlow (either binary or xml)- 参数:
fileName
- the name of the file to load from- 抛出:
Exception
- if something goes wrong
-
loadBinary
Load a binary serialized KnowledgeFlow- 参数:
fileName
- the name of the file to load from- 抛出:
Exception
- if something goes wrong
-
loadXML
Load an XML serialized KnowledgeFlow- 参数:
fileName
- the name of the file to load from- 抛出:
Exception
- if something goes wrong
-
getFlows
Get the vector holding the flow(s)- 返回:
- the Vector holding the flow(s)
-
setFlows
Set the vector holding the flows(s) to run- 参数:
beans
- the Vector holding the flows to run
-
setEnvironment
Set the environment variables to use. NOTE: this needs to be called BEFORE a load method is invoked to ensure that the ${Internal.knowledgeflow.directory} variable get set in the supplied Environment object.- 参数:
env
- the environment variables to use.
-
getEnvironment
Get the environment variables that are in use.- 返回:
- the environment variables that are in ues.
-
setStartSequentially
public void setStartSequentially(boolean s) Set whether to launch Startable beans one after the other or all in parallel.- 参数:
s
- true if Startable beans are to be launched sequentially
-
getStartSequentially
public boolean getStartSequentially()Gets whether Startable beans will be launched sequentially or all in parallel.- 返回:
- true if Startable beans will be launched sequentially
-
run
Launch all loaded KnowledgeFlow- 抛出:
Exception
- if something goes wrong during execution
-
main
Main method for testing this class.
Usage:
Usage:\n\nFlowRunner
- 参数:
args
- command line arguments
-
getRevision
从接口复制的说明:RevisionHandler
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-