Search in sources :

Example 1 with DiskParser

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);
    }
}
Also used : DiskParser(com.iwave.ext.windows.parser.DiskParser) Disk(com.iwave.ext.windows.model.Disk)

Aggregations

Disk (com.iwave.ext.windows.model.Disk)1 DiskParser (com.iwave.ext.windows.parser.DiskParser)1