}
for (OutputWriter outputWriter : outputWriters) {
outputWriter.start();
}
collectScheduledExecutor = Executors.newScheduledThreadPool(getNumQueryThreads(), new NamedThreadFactory("jmxtrans-collect-", true));
exportScheduledExecutor = Executors.newScheduledThreadPool(getNumExportThreads(), new NamedThreadFactory("jmxtrans-export-", true));
for (final Query query : getQueries()) {
collectScheduledExecutor.scheduleWithFixedDelay(new Runnable() {
@Override
public void run() {