use of com.iwave.ext.windows.parser.DiskParser in project coprhd-controller by CoprHD.
the class WindowsSystemWinRM method detailDisk.
public Disk detailDisk(int diskNumber) throws WinRMException {
String output = diskPart(WindowsUtils.getDetailDiskCommands(diskNumber));
DiskParser parser = new DiskParser();
List<Disk> disks = parser.parseDisks(output);
if (disks.isEmpty()) {
return null;
} else {
return disks.get(0);
}
}
Aggregations