Search in sources :

Example 1 with FindBlockVolumeHlus

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

the class BlockStorageUtils method findBlockVolumeHLUs.

public static Map<URI, Integer> findBlockVolumeHLUs(Collection<URI> volumeIds) {
    List<ITLRestRep> bulkResponse = execute(new FindBlockVolumeHlus(volumeIds));
    Map<URI, Integer> volumeHLUs = Maps.newHashMap();
    for (ITLRestRep export : bulkResponse) {
        ExportGroupRestRep exportGroup = getExport(export.getExport().getId());
        if (!exportGroup.getInternal()) {
            volumeHLUs.put(export.getBlockObject().getId(), export.getHlu());
        }
    }
    return volumeHLUs;
}
Also used : FindBlockVolumeHlus(com.emc.sa.service.vipr.block.tasks.FindBlockVolumeHlus) ExportGroupRestRep(com.emc.storageos.model.block.export.ExportGroupRestRep) ITLRestRep(com.emc.storageos.model.block.export.ITLRestRep) URI(java.net.URI)

Aggregations

FindBlockVolumeHlus (com.emc.sa.service.vipr.block.tasks.FindBlockVolumeHlus)1 ExportGroupRestRep (com.emc.storageos.model.block.export.ExportGroupRestRep)1 ITLRestRep (com.emc.storageos.model.block.export.ITLRestRep)1 URI (java.net.URI)1