FlowRunner

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weka.gui.beans
Class FlowRunner

    java.lang.Object
      weka.gui.beans.FlowRunner

    public class FlowRunner

extends java.lang.Object

Small utility class for executing KnowledgeFlow flows outside of the KnowledgeFlow application

Version:
  $Revision: 4817 $
Author:
  Mark Hall (mhall{[at]}pentaho{[dot]}org

Constructor Summary
`FlowRunner()` Constructor

Method Summary
`java.util.Vector` | `getFlows()` Get the vector holding the flow(s)
`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` | `setFlows(java.util.Vector beans)` Set the vector holding the flows(s) to run
`void` | `setLog(Logger log)`
`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

### FlowRunner

    public FlowRunner()

  Constructor

Method Detail

### setLog

    public void setLog(Logger log)

### stopAllFlows

    public void stopAllFlows()

### waitUntilFinished

    public void waitUntilFinished()

  Waits until all flows have finished executing before returning

### load

    public void load(java.lang.String fileName)
              throws java.lang.Exception

  Load a serialized KnowledgeFlow (either binary or xml)

  Parameters:
    `fileName` - the name of the file to load from
  Throws:
    `java.lang.Exception` - if something goes wrong

### loadBinary

    public void loadBinary(java.lang.String fileName)
                    throws java.lang.Exception

  Load a binary serialized KnowledgeFlow

  Parameters:
    `fileName` - the name of the file to load from
  Throws:
    `java.lang.Exception` - if something goes wrong

### loadXML

    public void loadXML(java.lang.String fileName)
                 throws java.lang.Exception

  Load an XML serialized KnowledgeFlow

  Parameters:
    `fileName` - the name of the file to load from
  Throws:
    `java.lang.Exception` - if something goes wrong

### getFlows

    public java.util.Vector getFlows()

  Get the vector holding the flow(s)

  Returns:
    the Vector holding the flow(s)

### setFlows

    public void setFlows(java.util.Vector beans)

  Set the vector holding the flows(s) to run

  Parameters:
    `beans` - the Vector holding the flows to run

### run

    public void run()
             throws java.lang.Exception

  Launch all loaded KnowledgeFlow

  Throws:
    `java.lang.Exception` - if something goes wrong during execution

### main

    public static void main(java.lang.String[] args)

  Main method for testing this class.

  Usage:

      Usage:\n\nFlowRunner

  Parameters:
    `args` - command line arguments

Overview | Package | Class | Tree | Deprecated | Index | Help | Weka's home

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD