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