Search in sources :

Example 1 with IngestUnexportedUnmanagedVolumes

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);
}
Also used : GetUnmanagedVolumes(com.emc.sa.service.vipr.block.tasks.GetUnmanagedVolumes) IngestUnexportedUnmanagedVolumes(com.emc.sa.service.vipr.block.tasks.IngestUnexportedUnmanagedVolumes) UnManagedVolumeRestRep(com.emc.storageos.model.block.UnManagedVolumeRestRep)

Aggregations

GetUnmanagedVolumes (com.emc.sa.service.vipr.block.tasks.GetUnmanagedVolumes)1 IngestUnexportedUnmanagedVolumes (com.emc.sa.service.vipr.block.tasks.IngestUnexportedUnmanagedVolumes)1 UnManagedVolumeRestRep (com.emc.storageos.model.block.UnManagedVolumeRestRep)1