databionics.runner
Class Runner

java.lang.Object
  extended by databionics.Application
      extended by databionics.runner.Runner
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
MatlabRunner

public class Runner
extends Application
implements java.lang.Runnable

Application that runs an external program. Needs to be in own package, so log messages can be filtered.


Field Summary
protected static Runner app
          interface to log4j system
protected  java.io.BufferedReader errorReader
          error output of process
protected static org.apache.log4j.Logger log
          interface to log4j system
protected  java.io.BufferedReader processReader
          standard output of process
 
Fields inherited from class databionics.Application
banner, cmd, conf, done, env, exitCode, home, messages, msgfile, name, nf, options, project, standalone, thread, workdir
 
Constructor Summary
Runner()
          standard constructor.
 
Method Summary
static Runner getInstance()
          Returns the application instance
 void init(java.lang.String[] args)
          init
static void main(java.lang.String[] args)
          main method
 void run()
          run
 void run(java.lang.String command)
          run
 
Methods inherited from class databionics.Application
exit, exitOnInterruption, getBanner, getColorGradient, getColorPath, getConfigPath, getExitCode, getHelpFile, getHome, getLibPath, getMessage, getName, getProject, getThread, getWorkDir, init, interrupt, interrupted, isDone, printHelp, printVersion, setProject, setStandAlone, setWorkDir, sleep, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
interface to log4j system


app

protected static Runner app
interface to log4j system


processReader

protected java.io.BufferedReader processReader
standard output of process


errorReader

protected java.io.BufferedReader errorReader
error output of process

Constructor Detail

Runner

public Runner()
standard constructor.

Method Detail

getInstance

public static Runner getInstance()
Returns the application instance

Returns:
application

init

public void init(java.lang.String[] args)
init

Overrides:
init in class Application

run

public void run(java.lang.String command)
run


run

public void run()
run

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class Application

main

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



Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.