public static AbstractTopology getTopology(Map<Integer, HostInfo> hostInfos, Set<Integer> missingHosts,
            int kfactor) {
        return getTopology(hostInfos, missingHosts, kfactor, false);
    }
public static AbstractTopology getTopology ( Map < Integer , HostInfo > hostInfos , Set < Integer > missingHosts , int kfactor ) { return getTopology ( hostInfos , missingHosts , kfactor , false ) ; }
Create a new topology using {@code hosts}

@param hostInfos    hosts to put in topology
@param missingHosts set of missing host IDs
@param kfactor      for cluster
@return {@link AbstractTopology} for cluster
@throws RuntimeException if hosts are not valid for topology