@GET
  @Path(WEBUI_INIT)
  @ReturnType("alluxio.wire.WorkerWebUIInit")
  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(ServerConfiguration.getInt(PropertyKey.WEBUI_REFRESH_INTERVAL_MS));

      return response;
    }, ServerConfiguration.global());
  }
@ GET @ Path ( WEBUI_INIT ) @ ReturnType ( "alluxio.wire.WorkerWebUIInit" ) 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 ( ServerConfiguration . getInt ( PropertyKey . WEBUI_REFRESH_INTERVAL_MS ) ) ; return response ; } , ServerConfiguration . global ( ) ) ; }
Gets Web UI initialization data.

@return the response object