log(Level.INFO, "skipping timer, empty");
return;
log(Level.DEBUG, "One collect is launched");
Date start = new Date();
try {
if(!collectMutex.tryAcquire(getTimeout(), TimeUnit.SECONDS)) {
log(Level.FATAL, "A collect failed because a start time out");
return;
log(Level.INFO, "A collect start was interrupted");
Thread.currentThread().interrupt();
return;
log(Level.DEBUG, "collector thread refused");
} catch (InterruptedException e) {
log(Level.INFO, "Collect interrupted");
Thread.currentThread().interrupt();
emergencystop = !tpool.awaitTermination(getTimeout(), TimeUnit.SECONDS);
} catch (InterruptedException e) {
log(Level.INFO, "Collect interrupted in last chance");
Thread.currentThread().interrupt();
log(Level.INFO, "Some task still alive, needs to be killed");
log(Level.ERROR, e, "problem while collecting data: %s", e);
} finally {
synchronized (running) {