Search in sources :

Example 1 with GetUnmanagedVolumesForStorageSystem

use of com.emc.sa.service.vipr.block.tasks.GetUnmanagedVolumesForStorageSystem in project coprhd-controller by CoprHD.

the class DiscoverUnmanagedVolumesService method countUnmanagedVolumes.

private int countUnmanagedVolumes(String storageSystem) {
    int total = 0;
    List<RelatedResourceRep> unmanaged = execute(new GetUnmanagedVolumesForStorageSystem(storageSystem));
    if (unmanaged != null) {
        total = unmanaged.size();
    }
    return total;
}
Also used : GetUnmanagedVolumesForStorageSystem(com.emc.sa.service.vipr.block.tasks.GetUnmanagedVolumesForStorageSystem) RelatedResourceRep(com.emc.storageos.model.RelatedResourceRep)

Aggregations

GetUnmanagedVolumesForStorageSystem (com.emc.sa.service.vipr.block.tasks.GetUnmanagedVolumesForStorageSystem)1 RelatedResourceRep (com.emc.storageos.model.RelatedResourceRep)1