public static void setBadHostsAndRacks(Set<String> racks,
                                         Set<String> hosts) {
    badRacks = racks;
    badHosts = hosts;
  }
public static void setBadHostsAndRacks ( Set < String > racks , Set < String > hosts ) { badRacks = racks ; badHosts = hosts ; }
A function to be used by unit tests only