use of com.emc.aix.command.PowerPathInquiry in project coprhd-controller by CoprHD.
the class FindPowerPathEntriesForMountPoint method executeTask.
@Override
public Void executeTask() throws Exception {
List<PowerPathDevice> powerPathDevices = executeCommand(new PowerPathInquiry());
for (VolumeSpec volume : volumes) {
volume.powerpathDevices = Lists.newArrayList();
String device = volume.mountPoint.getDevice();
for (PowerPathDevice powerpathDevice : powerPathDevices) {
if (StringUtils.equals(device, powerpathDevice.getDevice())) {
volume.powerpathDevices.add(powerpathDevice);
break;
}
}
if (volume.powerpathDevices.size() == 0) {
warn("No PowerPath devices for %s", volume.mountPoint.getPath());
}
}
return null;
}
Aggregations