code: public List<String> getRacks() {
      netlock.readLock().lock();
      try {
        return new ArrayList<String>(racks);
      } finally {
        netlock.readLock().unlock();
      }
    }
docs: Get a copy of the racks list.