public Collection<MemcachedNode> getAll() {
    return allNodes;
  }
Create a new KetamaNodeLocator with specific nodes, hash, node key format,
and weight

@param nodes The List of nodes to use in the Ketama consistent hash
         continuum
@param alg The hash algorithm to use when choosing a node in the Ketama
         consistent hash continuum
@param weights node weights for ketama, a map from InetSocketAddress to
         weight as Integer
@param configuration node locator configuration
src/main/java/net/spy/memcached/KetamaNodeLocator.java