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