use of alluxio.wire.MountPointInfo in project alluxio by Alluxio.
the class AlluxioMasterRestServiceHandler method getMountPointsInternal.
private Map<String, MountPointInfo> getMountPointsInternal() {
SortedMap<String, MountPointInfo> mountPoints = new TreeMap<>();
for (Map.Entry<String, MountInfo> mountPoint : mFileSystemMaster.getMountTable().entrySet()) {
MountInfo mountInfo = mountPoint.getValue();
MountPointInfo info = new MountPointInfo();
info.setUfsInfo(mountInfo.getUfsUri().toString());
info.setReadOnly(mountInfo.getOptions().isReadOnly());
info.setProperties(mountInfo.getOptions().getProperties());
info.setShared(mountInfo.getOptions().isShared());
mountPoints.put(mountPoint.getKey(), info);
}
return mountPoints;
}
Aggregations