code: private synchronized void reloadLocations() {
      map.clear();
      for (HadoopServer location : ServerRegistry.getInstance().getServers())
        map.put(location, new DFSLocation(provider, location));
    }
docs: Recompute the map of Hadoop locations