|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.beans.FlowRunner
public class FlowRunner
Small utility class for executing KnowledgeFlow flows outside of the KnowledgeFlow application
Nested Class Summary | |
---|---|
static class |
FlowRunner.SimpleLogger
|
Constructor Summary | |
---|---|
FlowRunner()
Constructor |
Method Summary | |
---|---|
Environment |
getEnvironment()
Get the environment variables that are in use. |
java.util.Vector |
getFlows()
Get the vector holding the flow(s) |
java.lang.String |
getRevision()
Returns the revision string. |
boolean |
getStartSequentially()
Gets whether Startable beans will be launched sequentially or all in parallel. |
void |
load(java.lang.String fileName)
Load a serialized KnowledgeFlow (either binary or xml) |
void |
loadBinary(java.lang.String fileName)
Load a binary serialized KnowledgeFlow |
void |
loadXML(java.lang.String fileName)
Load an XML serialized KnowledgeFlow |
static void |
main(java.lang.String[] args)
Main method for testing this class. |
void |
run()
Launch all loaded KnowledgeFlow |
void |
setEnvironment(Environment env)
Set the environment variables to use. |
void |
setFlows(java.util.Vector beans)
Set the vector holding the flows(s) to run |
void |
setLog(Logger log)
|
void |
setStartSequentially(boolean s)
Set whether to launch Startable beans one after the other or all in parallel. |
void |
stopAllFlows()
|
void |
waitUntilFinished()
Waits until all flows have finished executing before returning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowRunner()
Method Detail |
---|
public void setLog(Logger log)
public void stopAllFlows()
public void waitUntilFinished()
public void load(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the file to load from
java.lang.Exception
- if something goes wrongpublic void loadBinary(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the file to load from
java.lang.Exception
- if something goes wrongpublic void loadXML(java.lang.String fileName) throws java.lang.Exception
fileName
- the name of the file to load from
java.lang.Exception
- if something goes wrongpublic java.util.Vector getFlows()
public void setFlows(java.util.Vector beans)
beans
- the Vector holding the flows to runpublic void setEnvironment(Environment env)
env
- the environment variables to use.public Environment getEnvironment()
public void setStartSequentially(boolean s)
s
- true if Startable beans are to be launched sequentiallypublic boolean getStartSequentially()
public void run() throws java.lang.Exception
java.lang.Exception
- if something goes wrong during executionpublic static void main(java.lang.String[] args)
Usage:
Usage:\n\nFlowRunner
args
- command line argumentspublic java.lang.String getRevision()
RevisionHandler
getRevision
in interface RevisionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |