Search in sources :

Example 1 with MountPoint

use of com.emc.aix.model.MountPoint in project coprhd-controller by CoprHD.

the class ListMountPointsCommand method parseOutput.

@Override
public void parseOutput() {
    results = Maps.newHashMap();
    if (getOutput() != null && getOutput().getStdout() != null) {
        String stdout = getOutput().getStdout();
        TextOutputUnmarshaller parser = TextOutputUnmarshaller.instance();
        List<MountPoint> mountPoints = parser.with(stdout).parse(MountPoint.class);
        for (MountPoint m : mountPoints) {
            results.put(m.getPath(), m);
        }
    }
}
Also used : MountPoint(com.emc.aix.model.MountPoint) TextOutputUnmarshaller(com.emc.aix.command.parse.TextOutputUnmarshaller)

Example 2 with MountPoint

use of com.emc.aix.model.MountPoint in project coprhd-controller by CoprHD.

the class TestMountPointMarshaller method main.

public static void main(String[] args) {
    TextOutputUnmarshaller parser = TextOutputUnmarshaller.instance();
    List<MountPoint> mountPoints = parser.with(output).parse(MountPoint.class);
    System.out.println(mountPoints);
    for (MountPoint m : mountPoints) {
        addMountPointToFilesystems(m);
    }
}
Also used : MountPoint(com.emc.aix.model.MountPoint) TextOutputUnmarshaller(com.emc.aix.command.parse.TextOutputUnmarshaller)

Example 3 with MountPoint

use of com.emc.aix.model.MountPoint in project coprhd-controller by CoprHD.

the class FindMountPointsForVolumes method executeTask.

@Override
public Void executeTask() throws Exception {
    ListMountPointsCommand command = new ListMountPointsCommand();
    Map<String, MountPoint> results = executeCommand(command, SHORT_TIMEOUT);
    for (VolumeSpec volume : volumes) {
        volume.mountPoint = AixUtils.getMountPoint(hostId, results, volume.viprVolume);
    }
    return null;
}
Also used : ListMountPointsCommand(com.emc.aix.command.ListMountPointsCommand) MountPoint(com.emc.aix.model.MountPoint) VolumeSpec(com.emc.sa.service.aix.UnmountBlockVolumeHelper.VolumeSpec)

Aggregations

MountPoint (com.emc.aix.model.MountPoint)3 TextOutputUnmarshaller (com.emc.aix.command.parse.TextOutputUnmarshaller)2 ListMountPointsCommand (com.emc.aix.command.ListMountPointsCommand)1 VolumeSpec (com.emc.sa.service.aix.UnmountBlockVolumeHelper.VolumeSpec)1