protected void _terminate() { }
public void run() {
try {
+ long lastStatus = System.currentTimeMillis();
while(!isTerminated()) {
flush();
+ long now = System.currentTimeMillis();
+ if (now - lastStatus > 2000 && !Log.quiet &&
+ !"false".equals(System.getProperty("fleet.log.state","false"))) {
+ System.out.println("== State Dump ===================================================");
+ for(InterpreterShip ship : ships.values())
+ for(Dock d : ship)
+ synchronized(this) {
+ ((InterpreterDock)d).dumpState();
+ }
+ lastStatus = now;
+ }
}
for(InterpreterShip ship : ships.values())
ship.reset();