CrawlStatSnapshot snapshot = stats.getSnapshot();
Map<String,Number> map = new LinkedHashMap<String,Number>();
map.put("busyThreads", snapshot.busyThreads);
map.put("totalThreads", stats.threadCount());
map.put("congestionRatio", snapshot.congestionRatio);
map.put("averageQueueDepth", snapshot.averageDepth);
map.put("deepestQueueDepth", snapshot.deepestUri);
return map;
}