/** Should we query task states? (i.e. run a command to see if tasks are still alive) */ protected boolean shouldCheck() { if (time == null) time = new Timer(); if (time.elapsedSecs() > CHECK_TASK_RUNNING_INTERVAL) { time.start(); // Restart timer return true; } return false; }