public void start() { if (t.isAlive()) { log.warn(t + " is already started..."); return; } t.start(); }
public void stop() { CountDownLatch stopped = t.stopped; t.done = true; try { stopped.await(); } catch (InterruptedException e) { log.error("Problem waiting for CheckpointManager to stop", e); t.interrupt(); } }