public static Pair < AbstractTopology , Set < Integer > > mutateRemoveHosts ( AbstractTopology currentTopology , Set < Integer > removalHosts ) { Set < Integer > removalPartitionIds = getPartitionIdsForHosts ( currentTopology , removalHosts ) ; return Pair . of ( new AbstractTopology ( currentTopology , removalHosts , removalPartitionIds ) , removalPartitionIds ) ; }
Remove hosts from an existing topology