use of com.emc.sa.service.vipr.block.tasks.IngestUnexportedUnmanagedVolumes in project coprhd-controller by CoprHD.
the class IngestUnexportedUnmanagedVolumesService method execute.
@Override
public void execute() throws Exception {
List<UnManagedVolumeRestRep> unmanagedVolumes = execute(new GetUnmanagedVolumes(storageSystem, virtualPool));
if (ingestionMethod == null || ingestionMethod.isEmpty()) {
ingestionMethod = IngestionMethodEnum.FULL.toString();
}
execute(new IngestUnexportedUnmanagedVolumes(virtualPool, virtualArray, project, uris(volumeIds), ingestionMethod));
// Requery and produce a log of what was ingested or not
int failed = execute(new GetUnmanagedVolumes(storageSystem, virtualPool)).size();
logInfo("ingest.unexported.unmanaged.volume.service.ingested", unmanagedVolumes.size() - failed);
logInfo("ingest.unexported.unmanaged.volume.service.skipped", failed);
}
Aggregations