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;
}
Aggregations