Search in sources :

Example 1 with WorkerWebUIInit

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

the class AlluxioWorkerRestServiceHandler method getWebUIInit.

/**
 * Gets Web UI initialization data.
 *
 * @return the response object
 */
@GET
@Path(WEBUI_INIT)
public Response getWebUIInit() {
    return RestUtils.call(() -> {
        WorkerWebUIInit response = new WorkerWebUIInit();
        response.setDebug(ServerConfiguration.getBoolean(PropertyKey.DEBUG)).setWebFileInfoEnabled(ServerConfiguration.getBoolean(PropertyKey.WEB_FILE_INFO_ENABLED)).setSecurityAuthorizationPermissionEnabled(ServerConfiguration.getBoolean(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_ENABLED)).setMasterHostname(NetworkAddressUtils.getConnectHost(NetworkAddressUtils.ServiceType.MASTER_WEB, ServerConfiguration.global())).setMasterPort(ServerConfiguration.getInt(PropertyKey.MASTER_WEB_PORT)).setRefreshInterval((int) ServerConfiguration.getMs(PropertyKey.WEB_REFRESH_INTERVAL));
        return response;
    }, ServerConfiguration.global());
}
Also used : WorkerWebUIInit(alluxio.wire.WorkerWebUIInit) Path(javax.ws.rs.Path) GET(javax.ws.rs.GET)

Aggregations

WorkerWebUIInit (alluxio.wire.WorkerWebUIInit)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1