private Set<StoragePort> filterAllocationDisqualifiedPorts(List<StoragePort> candidatePorts){
  Set<StoragePort> allocationDisqualifiedPorts=Sets.newHashSet();
  for (  StoragePort storagePort : candidatePorts) {
    boolean disqualifiedPort=MetricsKeys.getBoolean(MetricsKeys.allocationDisqualified,storagePort.getMetrics());
    if (disqualifiedPort) {
      allocationDisqualifiedPorts.add(storagePort);
    }
  }
  return allocationDisqualifiedPorts;
}

private Set < StoragePort > filterAllocationDisqualifiedPorts ( List < StoragePort > candidatePorts ) { Set < StoragePort > allocationDisqualifiedPorts = Sets . newHashSet ( ) ; for ( StoragePort storagePort : candidatePorts ) { boolean disqualifiedPort = MetricsKeys . getBoolean ( MetricsKeys . allocationDisqualified , storagePort . getMetrics ( ) ) ; if ( disqualifiedPort ) { allocationDisqualifiedPorts . add ( storagePort ) ; } } return allocationDisqualifiedPorts ; }
get only disqualified ports from given list of ports .
