public void populateAntiHostList(PTContainer c,List<String> antiHosts){
  for (  PTContainer container : c.getStrictAntiPrefs()) {
    if (antiAffinityMapping.containsKey(container)) {
      antiHosts.add(antiAffinityMapping.get(container));
    }
 else {
      String antiHost=getHostForContainer(container);
      if (antiHost != null) {
        antiHosts.add(antiHost);
      }
    }
  }
}

public void populateAntiHostList ( PTContainer c , List < String > antiHosts ) { for ( PTContainer container : c . getStrictAntiPrefs ( ) ) { if ( antiAffinityMapping . containsKey ( container ) ) { antiHosts . add ( antiAffinityMapping . get ( container ) ) ; } else { String antiHost = getHostForContainer ( container ) ; if ( antiHost != null ) { antiHosts . add ( antiHost ) ; } } } }
populate list of nodes where container cannot be allocated due to anti - affinity constraints
