public void triggerVpoolMatcherIfPortAllocationQualificationChanged(URI storageSystemId,List<StoragePort> storagePorts){
  StorageSystem storageSystem=_dbClient.queryObject(StorageSystem.class,storageSystemId);
  Set<StoragePort> disqualifiedPortBeforeCompute=filterAllocationDisqualifiedPorts(storagePorts);
  computeStoragePortUsage(storagePorts,storageSystem,true);
  Set<StoragePort> disqualifiedPortAfterCompute=filterAllocationDisqualifiedPorts(storagePorts);
  if (!disqualifiedPortAfterCompute.equals(disqualifiedPortBeforeCompute)) {
    StringBuffer errorMessage=new StringBuffer();
    ImplicitPoolMatcher.matchStorageSystemPoolsToVPools(storageSystem.getId(),_dbClient,_coordinator,errorMessage);
  }
}

public void triggerVpoolMatcherIfPortAllocationQualificationChanged ( URI storageSystemId , List < StoragePort > storagePorts ) { StorageSystem storageSystem = _dbClient . queryObject ( StorageSystem . class , storageSystemId ) ; Set < StoragePort > disqualifiedPortBeforeCompute = filterAllocationDisqualifiedPorts ( storagePorts ) ; computeStoragePortUsage ( storagePorts , storageSystem , true ) ; Set < StoragePort > disqualifiedPortAfterCompute = filterAllocationDisqualifiedPorts ( storagePorts ) ; if ( ! disqualifiedPortAfterCompute . equals ( disqualifiedPortBeforeCompute ) ) { StringBuffer errorMessage = new StringBuffer ( ) ; ImplicitPoolMatcher . matchStorageSystemPoolsToVPools ( storageSystem . getId ( ) , _dbClient , _coordinator , errorMessage ) ; } }
run storage system vpool matcher if ports allocation qualification changed
