Search in sources :

Example 1 with MasterWebUIMountTable

use of alluxio.wire.MasterWebUIMountTable in project alluxio by Alluxio.

the class AlluxioMasterRestServiceHandler method getWebUIMountTable.

/**
 * Gets Web UI mount table page data.
 *
 * @return the response object
 */
@GET
@Path(WEBUI_MOUNTTABLE)
public Response getWebUIMountTable() {
    return RestUtils.call(() -> {
        MasterWebUIMountTable response = new MasterWebUIMountTable();
        response.setDebug(ServerConfiguration.getBoolean(PropertyKey.DEBUG));
        Map<String, MountPointInfo> mountPointInfo = getMountPointsInternal();
        response.setMountPointInfos(mountPointInfo);
        return response;
    }, ServerConfiguration.global());
}
Also used : MasterWebUIMountTable(alluxio.wire.MasterWebUIMountTable) MountPointInfo(alluxio.wire.MountPointInfo) Path(javax.ws.rs.Path) GET(javax.ws.rs.GET)

Aggregations

MasterWebUIMountTable (alluxio.wire.MasterWebUIMountTable)1 MountPointInfo (alluxio.wire.MountPointInfo)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1