Search in sources :

Example 1 with GetUnmanagedCGsForProtectionSystem

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

the class DiscoverUnmanagedCGsService method countUnmanagedCGs.

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

Aggregations

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