/** * Get mapping of labels to nodes for all the labels. * * @return labels to nodes map */ public Map<String, Set<NodeId>> getLabelsToNodes() { try { readLock.lock(); return getLabelsToNodes(labelCollections.keySet()); } finally { readLock.unlock(); } }
/** * Get mapping of labels to nodes for all the labels. * * @return labels to nodes map */ public Map<String, Set<NodeId>> getLabelsToNodes() { try { readLock.lock(); return getLabelsToNodes(labelCollections.keySet()); } finally { readLock.unlock(); } }
/** * Get mapping of labels to nodes for all the labels. * * @return labels to nodes map */ public Map<String, Set<NodeId>> getLabelsToNodes() { try { readLock.lock(); return getLabelsToNodes(labelCollections.keySet()); } finally { readLock.unlock(); } }