Package net.sf.colossus.webserver
Class RunGameInOwnJVM.NullDumper
- java.lang.Object
-
- net.sf.colossus.webserver.RunGameInOwnJVM.NullDumper
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- RunGameInOwnJVM
private static class RunGameInOwnJVM.NullDumper extends java.lang.Object implements java.lang.Runnable
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?
-
-
Constructor Summary
Constructors Constructor Description NullDumper(java.lang.Process p, boolean toNull, java.io.InputStream is, java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
done()
void
run()
RunGameInOwnJVM.NullDumper
start()
-
-
-
Method Detail
-
start
public RunGameInOwnJVM.NullDumper start()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
done
public void done()
-
-