use of com.emc.storageos.api.service.impl.resource.blockingestorchestration.context.IngestionRequestContext in project coprhd-controller by CoprHD.
the class RecoverPointVolumeIngestionContext method findExportGroup.
/*
* (non-Javadoc)
*
* @see com.emc.storageos.api.service.impl.resource.blockingestorchestration.context.IngestionRequestContext#findExportGroup(java.lang.
* String)
*/
@Override
public ExportGroup findExportGroup(String exportGroupLabel, URI project, URI varray, URI computeResource, String resourceType) {
if (exportGroupLabel != null) {
for (ExportGroup localExportGroup : getRpExportGroupMap().keySet()) {
if (null != localExportGroup && exportGroupLabel.equals(localExportGroup.getLabel())) {
if (VolumeIngestionUtil.verifyExportGroupMatches(localExportGroup, exportGroupLabel, project, varray, computeResource, resourceType)) {
_logger.info("Found existing local ExportGroup {} in RP ingestion request context", localExportGroup.forDisplay());
return localExportGroup;
}
}
}
}
ExportGroup nestedExportGroup = null;
for (VolumeIngestionContext volumeContext : getProcessedUnManagedVolumeMap().values()) {
if (volumeContext instanceof IngestionRequestContext) {
nestedExportGroup = ((IngestionRequestContext) volumeContext).findExportGroup(exportGroupLabel, project, varray, computeResource, resourceType);
}
if (null != nestedExportGroup) {
if (VolumeIngestionUtil.verifyExportGroupMatches(nestedExportGroup, exportGroupLabel, project, varray, computeResource, resourceType)) {
_logger.info("Found existing nested ExportGroup {} in volume context {}", nestedExportGroup.forDisplay(), volumeContext.getUnmanagedVolume().forDisplay());
return nestedExportGroup;
}
}
}
_logger.info("Could not find existing export group for label " + exportGroupLabel);
return null;
}
Aggregations