ConcurrentHashMap<String, IndexLocation> indexTable = indexer.getIndexes();
indexTable = indexer.getIndexes();
ResponseWriter writer = new ResponseWriter(response.getWriter());
for (Entry<String, IndexLocation> e : indexTable.entrySet()) {
if (showAll || e.getKey().equalsIgnoreCase(index)) {
IndexLocation loc = e.getValue();
IndexJobQueue queue = loc.getQueue();
Map<String, CRConfigUtil> map = loc.getCRMap();
if (queue != null && queue.isRunning()) {
writer.write(e.getKey(), ".WorkerThread: OK\n");
} else {
writer.write(e.getKey(), ".WorkerThread: NOK\n");
}
writer.write(e.getKey(), ".ObjectsInIndex: ", loc.getDocCount() + "", "\n");
if (queue != null) {
AbstractUpdateCheckerJob j = queue.getCurrentJob();
if (j != null) {
writer.write(e.getKey(), ".CurrentJobObjectsToIndex: ", j.getObjectsToIndex() + "", "\n");
writer.write(e.getKey(), ".CurrentJobStarted: ", j.getStart() + "", "\n");