public List<NodeInfo> getNodes() {
    final URI uri = uriWithPath("./nodes/");
    return Arrays.asList(this.rt.getForObject(uri, NodeInfo[].class));
  }
public List < NodeInfo > getNodes ( ) { final URI uri = uriWithPath ( "./nodes/" ) ; return Arrays . asList ( this . rt . getForObject ( uri , NodeInfo [ ] . class ) ) ; }
Retrieves state and metrics information for all nodes in the cluster.

@return list of nodes in the cluster