@NotThreadSafe @Path(value="master") @Produces(value="application/json") public final class AlluxioMasterRestServiceHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GET_INFO |
static String |
LOG_ARGUMENT_LEVEL |
static String |
LOG_ARGUMENT_NAME |
static String |
LOG_LEVEL |
static String |
QUERY_RAW_CONFIGURATION |
static String |
SERVICE_PREFIX |
static String |
WEBUI_BROWSE |
static String |
WEBUI_CONFIG |
static String |
WEBUI_DATA |
static String |
WEBUI_INIT |
static String |
WEBUI_LOGS |
static String |
WEBUI_METRICS |
static String |
WEBUI_OVERVIEW |
static String |
WEBUI_WORKERS |
Constructor and Description |
---|
AlluxioMasterRestServiceHandler(javax.servlet.ServletContext context)
Constructs a new
AlluxioMasterRestServiceHandler . |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getInfo(Boolean rawConfiguration) |
javax.ws.rs.core.Response |
getWebUIBrowse(String requestPath,
String requestOffset,
String requestEnd,
String requestLimit)
Gets Web UI browse page data.
|
javax.ws.rs.core.Response |
getWebUIConfiguration()
Gets Web UI ServerConfiguration page data.
|
javax.ws.rs.core.Response |
getWebUIData(String requestOffset,
String requestLimit)
Gets Web UI data page data.
|
javax.ws.rs.core.Response |
getWebUIInit()
Gets Web UI initialization data.
|
javax.ws.rs.core.Response |
getWebUILogs(String requestPath,
String requestOffset,
String requestEnd,
String requestLimit)
Gets Web UI logs page data.
|
javax.ws.rs.core.Response |
getWebUIMetrics()
Gets Web UI metrics page data.
|
javax.ws.rs.core.Response |
getWebUIOverview()
Gets Web UI overview page data.
|
javax.ws.rs.core.Response |
getWebUIWorkers()
Gets Web UI workers page data.
|
javax.ws.rs.core.Response |
logLevel(String logName,
String level) |
public static final String SERVICE_PREFIX
public static final String GET_INFO
public static final String WEBUI_INIT
public static final String WEBUI_OVERVIEW
public static final String WEBUI_BROWSE
public static final String WEBUI_DATA
public static final String WEBUI_LOGS
public static final String WEBUI_CONFIG
public static final String WEBUI_WORKERS
public static final String WEBUI_METRICS
public static final String QUERY_RAW_CONFIGURATION
public static final String LOG_LEVEL
public static final String LOG_ARGUMENT_NAME
public static final String LOG_ARGUMENT_LEVEL
public AlluxioMasterRestServiceHandler(@Context javax.servlet.ServletContext context)
AlluxioMasterRestServiceHandler
.context
- context for the servlet@GET @Path(value="info") public javax.ws.rs.core.Response getInfo(@QueryParam(value="raw_configuration") Boolean rawConfiguration)
rawConfiguration
- if it's true, raw configuration values are returned,
otherwise, they are looked up; if it's not provided in URL queries, then
it is null, which means false.@GET @Path(value="webui_init") public javax.ws.rs.core.Response getWebUIInit()
@GET @Path(value="webui_overview") public javax.ws.rs.core.Response getWebUIOverview()
@GET @Path(value="webui_browse") public javax.ws.rs.core.Response getWebUIBrowse(@DefaultValue(value="/") @QueryParam(value="path") String requestPath, @DefaultValue(value="0") @QueryParam(value="offset") String requestOffset, @DefaultValue(value="") @QueryParam(value="end") String requestEnd, @DefaultValue(value="20") @QueryParam(value="limit") String requestLimit)
requestPath
- the request pathrequestOffset
- the request offsetrequestEnd
- the request endrequestLimit
- the request limit@GET @Path(value="webui_data") public javax.ws.rs.core.Response getWebUIData(@DefaultValue(value="0") @QueryParam(value="offset") String requestOffset, @DefaultValue(value="20") @QueryParam(value="limit") String requestLimit)
requestOffset
- the request offsetrequestLimit
- the request limit@GET @Path(value="webui_logs") public javax.ws.rs.core.Response getWebUILogs(@DefaultValue(value="") @QueryParam(value="path") String requestPath, @DefaultValue(value="0") @QueryParam(value="offset") String requestOffset, @DefaultValue(value="") @QueryParam(value="end") String requestEnd, @DefaultValue(value="20") @QueryParam(value="limit") String requestLimit)
requestPath
- the request pathrequestOffset
- the request offsetrequestEnd
- the request endrequestLimit
- the request limit@GET @Path(value="webui_config") public javax.ws.rs.core.Response getWebUIConfiguration()
@GET @Path(value="webui_workers") public javax.ws.rs.core.Response getWebUIWorkers()
@GET @Path(value="webui_metrics") public javax.ws.rs.core.Response getWebUIMetrics()
Copyright © 2023. All Rights Reserved.