|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.Application
databionics.runner.Runner
public class Runner
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 |
---|
protected static org.apache.log4j.Logger log
protected static Runner app
protected java.io.BufferedReader processReader
protected java.io.BufferedReader errorReader
Constructor Detail |
---|
public Runner()
Method Detail |
---|
public static Runner getInstance()
public void init(java.lang.String[] args)
init
in class Application
public void run(java.lang.String command)
public void run()
run
in interface java.lang.Runnable
run
in class Application
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |