public NodeLocator getReadonlyCopy() {
    MemcachedNode[] n = new MemcachedNode[nodes.length];
    for (int i = 0; i < nodes.length; i++) {
      n[i] = new MemcachedNodeROImpl(nodes[i]);
    }
    return new ArrayModNodeLocator(n, hashAlg);
  }
Construct an ArraymodNodeLocator over the given array of nodes and using
the given hash algorithm.

@param n the array of nodes
@param alg the hash algorithm
src/main/java/net/spy/memcached/ArrayModNodeLocator.java