public static Set<URI> fetchRPTargetVirtualPools(DbClient dbClient){
  Set<URI> rpProtectedTargetVPools=new HashSet<URI>();
  try {
    List<URI> vpoolProtectionSettingsURIs=dbClient.queryByType(VpoolProtectionVarraySettings.class,true);
    Iterator<VpoolProtectionVarraySettings> vPoolProtectionSettingsItr=dbClient.queryIterativeObjects(VpoolProtectionVarraySettings.class,vpoolProtectionSettingsURIs,true);
    while (vPoolProtectionSettingsItr.hasNext()) {
      VpoolProtectionVarraySettings rSetting=vPoolProtectionSettingsItr.next();
      if (null != rSetting && !NullColumnValueGetter.isNullURI(rSetting.getVirtualPool())) {
        rpProtectedTargetVPools.add(rSetting.getVirtualPool());
      }
    }
  }
 catch (  Exception ex) {
    _log.error("Exception occurred while fetching RP enabled virtualpools",ex);
  }
  return rpProtectedTargetVPools;
}

public static Set < URI > fetchRPTargetVirtualPools ( DbClient dbClient ) { Set < URI > rpProtectedTargetVPools = new HashSet < URI > ( ) ; try { List < URI > vpoolProtectionSettingsURIs = dbClient . queryByType ( VpoolProtectionVarraySettings . class , true ) ; Iterator < VpoolProtectionVarraySettings > vPoolProtectionSettingsItr = dbClient . queryIterativeObjects ( VpoolProtectionVarraySettings . class , vpoolProtectionSettingsURIs , true ) ; while ( vPoolProtectionSettingsItr . hasNext ( ) ) { VpoolProtectionVarraySettings rSetting = vPoolProtectionSettingsItr . next ( ) ; if ( null != rSetting && ! NullColumnValueGetter . isNullURI ( rSetting . getVirtualPool ( ) ) ) { rpProtectedTargetVPools . add ( rSetting . getVirtualPool ( ) ) ; } } } catch ( Exception ex ) { _log . error ( "Exception occurred while fetching RP enabled virtualpools" , ex ) ; } return rpProtectedTargetVPools ; }
fetch the rp protected target virtual pool uris .
