use of com.emc.storageos.vasa.data.internal.Volume.Itls in project coprhd-controller by CoprHD.
the class SyncManager method fetchVolumeIdsByHostInitiators.
private List<String> fetchVolumeIdsByHostInitiators(String csvSeparatedInitiatorList) throws SOSFailure {
final String methodName = "fetchVolumeIdsByHostInitiators(): ";
log.trace(methodName + "Entry with input: csvSeparatedInitiatorList[" + csvSeparatedInitiatorList + "]");
Set<String> volumeIdSet = new HashSet<String>();
for (Itls itlObj : this.fetchExportITLS(csvSeparatedInitiatorList)) {
if (itlObj != null) {
for (Itl itl : itlObj.getItls()) {
Device device = itl.getDevice();
if (device != null && device.getId() != null) {
volumeIdSet.add(device.getId());
}
}
}
}
log.trace(methodName + "Exit returning volume ID list of size[" + volumeIdSet.size() + "]");
return new ArrayList<String>(volumeIdSet);
}
Aggregations