code: protected void refreshPeers ()
      {
          if (_adHoc) {
              return;
          }
  
          // load up information on our nodes
          _invoker.postUnit(new RepositoryUnit("refreshPeers") {
              @Override
              public void invokePersist () throws Exception {
                  // let the world know that we're alive
                  _noderepo.heartbeatNode(_nodeName);
  
                  // then load up all the peer records
                  _nodes = Maps.newHashMap();
                  for (NodeRecord record : _noderepo.loadNodes(_nodeNamespace)) {
                      _nodes.put(record.nodeName, record);
                  }
              }
              @Override
              public void handleSuccess () {
                  // refresh peers with loaded records
                  long now = System.currentTimeMillis();
                  for (Iterator<NodeRecord> it = _nodes.values().iterator(); it.hasNext(); ) {
                      NodeRecord record = it.next();
                      if (Objects.equal(record.nodeName, _nodeName)) {
                          continue;
                      }
                      if ((now - record.lastUpdated.getTime()) > PeerNode.STALE_INTERVAL) {
                          it.remove();
                          continue;
                      }
                      try {
                          refreshPeer(record);
                      } catch (Exception e) {
                          log.warning("Failure refreshing peer " + record + ".", e);
                      }
                  }
  
                  // remove peers for which we no longer have up-to-date records
                  for (Iterator<PeerNode> it = _peers.values().iterator(); it.hasNext(); ) {
                      PeerNode peer = it.next();
                      if (!_nodes.containsKey(peer.getNodeName())) {
                          peer.shutdown();
                          it.remove();
                      }
                  }
              }
              @Override
              public long getLongThreshold () {
                  return 700L;
              }
              protected Map<String, NodeRecord> _nodes;
          });
      }
docs: Reloads the list of peer nodes from our table and refreshes each with a call to {@link
  #refreshPeer}.