private void printAsyncIndexInfo(PrintWriter pw) { List<String> asyncLanes = ImmutableList.copyOf(asyncIndexInfoService.getAsyncLanes()); String title = "Async Indexers State"; printTitle(pw, title); pw.printf("Number of async indexer lanes : %d%n", asyncLanes.size()); pw.println(); for (String lane : asyncLanes) { pw.println(lane); AsyncIndexInfo info = asyncIndexInfoService.getInfo(lane); if (info != null) { pw.printf(" Last indexed to : %s%n", formatTime(info.getLastIndexedTo())); IndexStatsMBean stats = info.getStatsMBean(); if (stats != null) { pw.printf(" Status : %s%n", stats.getStatus()); pw.printf(" Failing : %s%n", stats.isFailing()); pw.printf(" Paused : %s%n", stats.isPaused()); if (stats.isFailing()) { pw.printf(" Failing since : %s%n", stats.getFailingSince()); pw.printf(" Latest error : %s%n", stats.getLatestError()); } } pw.println(); } } }
private void printAsyncIndexInfo(PrintWriter pw) { List<String> asyncLanes = ImmutableList.copyOf(asyncIndexInfoService.getAsyncLanes()); String title = "Async Indexers State"; printTitle(pw, title); pw.printf("Number of async indexer lanes : %d%n", asyncLanes.size()); pw.println(); for (String lane : asyncLanes) { pw.println(lane); AsyncIndexInfo info = asyncIndexInfoService.getInfo(lane); if (info != null) { pw.printf(" Last indexed to : %s%n", formatTime(info.getLastIndexedTo())); IndexStatsMBean stats = info.getStatsMBean(); if (stats != null) { pw.printf(" Status : %s%n", stats.getStatus()); pw.printf(" Failing : %s%n", stats.isFailing()); pw.printf(" Paused : %s%n", stats.isPaused()); if (stats.isFailing()) { pw.printf(" Failing since : %s%n", stats.getFailingSince()); pw.printf(" Latest error : %s%n", stats.getLatestError()); } } pw.println(); } } }
private void printAsyncIndexInfo(PrintWriter pw) { List<String> asyncLanes = ImmutableList.copyOf(asyncIndexInfoService.getAsyncLanes()); String title = "Async Indexers State"; printTitle(pw, title); pw.printf("Number of async indexer lanes : %d%n", asyncLanes.size()); pw.println(); for (String lane : asyncLanes) { pw.println(lane); AsyncIndexInfo info = asyncIndexInfoService.getInfo(lane); if (info != null) { pw.printf(" Last indexed to : %s%n", formatTime(info.getLastIndexedTo())); IndexStatsMBean stats = info.getStatsMBean(); if (stats != null) { pw.printf(" Status : %s%n", stats.getStatus()); pw.printf(" Failing : %s%n", stats.isFailing()); pw.printf(" Paused : %s%n", stats.isPaused()); if (stats.isFailing()) { pw.printf(" Failing since : %s%n", stats.getFailingSince()); pw.printf(" Latest error : %s%n", stats.getLatestError()); } } pw.println(); } } }