Search in sources :

Example 1 with MountPointInfo

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;
}
Also used : MountPointInfo(alluxio.wire.MountPointInfo) TreeMap(java.util.TreeMap) MountInfo(alluxio.master.file.meta.options.MountInfo) Map(java.util.Map) TreeMap(java.util.TreeMap) SortedMap(java.util.SortedMap)

Aggregations

MountInfo (alluxio.master.file.meta.options.MountInfo)1 MountPointInfo (alluxio.wire.MountPointInfo)1 Map (java.util.Map)1 SortedMap (java.util.SortedMap)1 TreeMap (java.util.TreeMap)1