/** * Print the history to the log. This is for testing and diagnostics */ public synchronized void dump() { for (ProviderRole role : providerRoles) { log.info(role.toString()); List<NodeInstance> instances = listRecentNodesForRoleId(role.id); log.info(" available: " + instances.size() + " " + SliderUtils.joinWithInnerSeparator(" ", instances)); } log.info("Nodes in Cluster: {}", getClusterSize()); for (NodeInstance node : nodemap.values()) { log.info(node.toFullString()); } }
/** * Print the history to the log. This is for testing and diagnostics */ public synchronized void dump() { for (ProviderRole role : providerRoles) { log.info(role.toString()); List<NodeInstance> instances = listRecentNodesForRoleId(role.id); log.info(" available: " + instances.size() + " " + SliderUtils.joinWithInnerSeparator(" ", instances)); } log.info("Nodes in Cluster: {}", getClusterSize()); for (NodeInstance node : nodemap.values()) { log.info(node.toFullString()); } }