use of com.emc.storageos.vplex.api.VPlexDeviceInfo in project coprhd-controller by CoprHD.
the class VplexBackendIngestionContext method mapDevices.
/**
* Creates a Map of slot numbers to VPlexDeviceInfo child objects of a
* given top level device VPlexDeviceInfo, for use in creating the
* VPLEX native mirror map.
*
* @param parentDevice the top level device of this virtual volume
*
* @return a Map of slot numbers to VPlexDeviceInfo child objects
*/
private Map<String, VPlexDeviceInfo> mapDevices(VPlexDeviceInfo parentDevice) {
_logger.info("\tmapping device " + parentDevice.getName());
Map<String, VPlexDeviceInfo> mirrorDevices = new TreeMap<String, VPlexDeviceInfo>();
for (VPlexDeviceInfo dev : parentDevice.getChildDeviceInfo()) {
mirrorDevices.put(dev.getSlotNumber(), dev);
}
return mirrorDevices;
}
Aggregations