private void verifyExportMaskOnSystem(ExportMask mask,StorageSystem array){
  VplexBackEndMaskingOrchestrator maskingOrchestrator=getOrch(array);
  BlockStorageDevice storageDevice=_blockDeviceController.getDevice(array.getSystemType());
  List<Initiator> initiators=new ArrayList<Initiator>();
  initiators.addAll(ExportMaskUtils.getInitiatorsForExportMask(_dbClient,mask,Transport.FC));
  if (initiators.isEmpty()) {
    initiators.addAll(ExportMaskUtils.getExistingInitiatorsForExportMask(_dbClient,mask,Transport.FC));
  }
  Map<URI,ExportMask> maskSet=maskingOrchestrator.readExistingExportMasks(array,storageDevice,initiators);
  if (maskSet.containsKey(mask.getId())) {
    _log.info(String.format("Verified ExportMask %s present on %s",mask.getMaskName(),array.getNativeGuid()));
    return;
  }
  _log.info(String.format("ExportMask %s not present on %s; checking if renamed...",mask.getMaskName(),array.getNativeGuid()));
  checkForRenamedExportMasks(maskSet);
}

private void verifyExportMaskOnSystem ( ExportMask mask , StorageSystem array ) { VplexBackEndMaskingOrchestrator maskingOrchestrator = getOrch ( array ) ; BlockStorageDevice storageDevice = _blockDeviceController . getDevice ( array . getSystemType ( ) ) ; List < Initiator > initiators = new ArrayList < Initiator > ( ) ; initiators . addAll ( ExportMaskUtils . getInitiatorsForExportMask ( _dbClient , mask , Transport . FC ) ) ; if ( initiators . isEmpty ( ) ) { initiators . addAll ( ExportMaskUtils . getExistingInitiatorsForExportMask ( _dbClient , mask , Transport . FC ) ) ; } Map < URI , ExportMask > maskSet = maskingOrchestrator . readExistingExportMasks ( array , storageDevice , initiators ) ; if ( maskSet . containsKey ( mask . getId ( ) ) ) { _log . info ( String . format ( "Verified ExportMask %s present on %s" , mask . getMaskName ( ) , array . getNativeGuid ( ) ) ) ; return ; } _log . info ( String . format ( "ExportMask %s not present on %s; checking if renamed..." , mask . getMaskName ( ) , array . getNativeGuid ( ) ) ) ; checkForRenamedExportMasks ( maskSet ) ; }
verify that an exportmask that is going to be used is on the storagesystem .
