@NotThreadSafe @Path(value="worker") @Produces(value="application/json") public final class AlluxioWorkerRestServiceHandler 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_BLOCKINFO |
static String |
WEBUI_INIT |
static String |
WEBUI_LOGS |
static String |
WEBUI_METRICS |
static String |
WEBUI_OVERVIEW |
Constructor and Description |
---|
AlluxioWorkerRestServiceHandler(javax.servlet.ServletContext context) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getInfo(Boolean rawConfiguration) |
javax.ws.rs.core.Response |
getWebUIBlockInfo(String requestPath,
String requestOffset,
String requestLimit)
Gets web ui block info 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 |
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_LOGS
public static final String WEBUI_BLOCKINFO
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 AlluxioWorkerRestServiceHandler(@Context javax.servlet.ServletContext context)
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_blockinfo") public javax.ws.rs.core.Response getWebUIBlockInfo(@QueryParam(value="path") String requestPath, @DefaultValue(value="0") @QueryParam(value="offset") String requestOffset, @DefaultValue(value="20") @QueryParam(value="limit") String requestLimit)
requestPath
- the request pathrequestOffset
- the request offsetrequestLimit
- the request limit@GET @Path(value="webui_metrics") public javax.ws.rs.core.Response getWebUIMetrics()
@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, @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 limitCopyright © 2023. All Rights Reserved.