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);
}
}
}
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);
}
}
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;
}
Aggregations