Class RunGameInOwnJVM.NullDumper
java.lang.Object
net.sf.colossus.webserver.RunGameInOwnJVM.NullDumper
- All Implemented Interfaces:
Runnable
- Enclosing class:
RunGameInOwnJVM
NullDumper is a dummy reader that just consumes all the output
produced by a Game's process - similar to /dev/null. That is needed
because we have to take care to read all what comes on the
Game's processes stdout and stderr, otherwise the game would block
at some point.
If the boolean argument toNull to constructor is false, it will
send the produced output to the log instead.
TODO rename to toLog instead. Should toLog be default nowadays that
there is not much output any more?
- Author:
- Clemens Katzer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
process
Process process -
toNull
boolean toNull -
reader
BufferedReader reader -
prefix
String prefix -
thread
Thread thread
-
-
Constructor Details
-
NullDumper
-
-
Method Details
-
start
-
run
-
done
public void done()
-