public static void reconcileHLUs(DbClient dbClient,ExportGroup exportGroup,ExportMask exportMask,Map<URI,Integer> volumeMap){
  if (exportMask.getCreatedBySystem() && exportMask.getVolumes() != null) {
    for (    URI boURI : volumeMap.keySet()) {
      String hlu=exportMask.returnVolumeHLU(boURI);
      _log.info(String.format("ExportGroup %s (%s) update volume HLU: %s -> %s",exportGroup.getLabel(),exportGroup.getId(),boURI,hlu));
      exportGroup.addVolume(boURI,Integer.parseInt(hlu));
    }
    reconcileExportGroupsHLUs(dbClient,exportGroup);
  }
}

public static void reconcileHLUs ( DbClient dbClient , ExportGroup exportGroup , ExportMask exportMask , Map < URI , Integer > volumeMap ) { if ( exportMask . getCreatedBySystem ( ) && exportMask . getVolumes ( ) != null ) { for ( URI boURI : volumeMap . keySet ( ) ) { String hlu = exportMask . returnVolumeHLU ( boURI ) ; _log . info ( String . format ( "ExportGroup %s (%s) update volume HLU: %s -> %s" , exportGroup . getLabel ( ) , exportGroup . getId ( ) , boURI , hlu ) ) ; exportGroup . addVolume ( boURI , Integer . parseInt ( hlu ) ) ; } reconcileExportGroupsHLUs ( dbClient , exportGroup ) ; } }
this routine will examine the exportgroup and exportmask and attempt to reconcile its hlus . this would include volumes in ' volumemap ' and any that appear to not have their hlus filled in . for this routine we only care about exportmasks that were created by the system . note : exportgroup is not persisted here .
