private synchronized void fetchClusterWideStatsIfNeeded() { if (launchNewDistTask()) { try { List<CompletableFuture<Map<String, Number>>> responseList = des.submitEverywhere(new DistributedCacheStatsCallable()); updateFieldsFromResponseMap(responseList); } catch (Exception e) { log.warn("Could not execute cluster wide cache stats operation ", e); } finally { statsUpdateTimestamp = ts.time(); } } }
@Stop public void stop() { if (des != null && !des.isShutdown()) { des.shutdownNow(); } }