public static void matchModifiedStoragePoolsWithVirtualPools(List<StoragePool> updatedPoolList,List<URI> vpoolURIs,DbClient dbClient,CoordinatorClient coordinator,String matcherGroupName,StringBuffer errorMessage){
  Iterator<VirtualPool> vpoolListItr=dbClient.queryIterativeObjects(VirtualPool.class,vpoolURIs);
  List<VirtualPool> vPoolsToUpdate=new ArrayList<VirtualPool>();
  while (vpoolListItr.hasNext()) {
    VirtualPool vpool=vpoolListItr.next();
    matchvPoolWithStoragePools(vpool,updatedPoolList,dbClient,coordinator,matcherGroupName,errorMessage);
    vPoolsToUpdate.add(vpool);
  }
  if (!vPoolsToUpdate.isEmpty()) {
    persistUpdatedVpoolList(vPoolsToUpdate,dbClient);
  }
}

public static void matchModifiedStoragePoolsWithVirtualPools ( List < StoragePool > updatedPoolList , List < URI > vpoolURIs , DbClient dbClient , CoordinatorClient coordinator , String matcherGroupName , StringBuffer errorMessage ) { Iterator < VirtualPool > vpoolListItr = dbClient . queryIterativeObjects ( VirtualPool . class , vpoolURIs ) ; List < VirtualPool > vPoolsToUpdate = new ArrayList < VirtualPool > ( ) ; while ( vpoolListItr . hasNext ( ) ) { VirtualPool vpool = vpoolListItr . next ( ) ; matchvPoolWithStoragePools ( vpool , updatedPoolList , dbClient , coordinator , matcherGroupName , errorMessage ) ; vPoolsToUpdate . add ( vpool ) ; } if ( ! vPoolsToUpdate . isEmpty ( ) ) { persistUpdatedVpoolList ( vPoolsToUpdate , dbClient ) ; } }
matches given set of virtual pools with list of storage pools .
