@Path(value="/") public class LogviewerResource extends Object
Handles HTTP requests for Logviewer.
Constructor and Description |
---|
LogviewerResource(LogviewerLogPageHandler logviewerParam,
LogviewerProfileHandler profileHandler,
LogviewerLogDownloadHandler logDownloadHandler,
LogviewerLogSearchHandler logSearchHandler,
IHttpCredentialsPlugin httpCredsHandler,
StormMetricsRegistry metricsRegistry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
daemonLog(javax.servlet.http.HttpServletRequest request)
Handles ‘/daemonlog’ request.
|
javax.ws.rs.core.Response |
deepSearch(String topologyId,
javax.servlet.http.HttpServletRequest request)
Handles ‘/deepSearch’ request.
|
javax.ws.rs.core.Response |
downloadDaemonLogFile(javax.servlet.http.HttpServletRequest request)
Handles ‘/daemondownload’ (downloading specific daemon log file) request.
|
javax.ws.rs.core.Response |
downloadDumpFile(String topologyId,
String hostPort,
String fileName,
javax.servlet.http.HttpServletRequest request)
Handles ‘/dumps’ (downloading specific dump file) request.
|
javax.ws.rs.core.Response |
downloadLogFile(javax.servlet.http.HttpServletRequest request)
Handles ‘/download’ (downloading specific log file) request.
|
javax.ws.rs.core.Response |
listDumpFiles(String topologyId,
String hostPort,
javax.servlet.http.HttpServletRequest request)
Handles ‘/dumps’ (listing dump files) request.
|
javax.ws.rs.core.Response |
listLogs(javax.servlet.http.HttpServletRequest request)
Handles ‘/listLogs’ request.
|
javax.ws.rs.core.Response |
log(javax.servlet.http.HttpServletRequest request)
Handles ‘/log’ request.
|
javax.ws.rs.core.Response |
search(javax.servlet.http.HttpServletRequest request)
Handles ‘/search’ (searching from specific worker or daemon log file) request.
|
javax.ws.rs.core.Response |
searchLogs(javax.servlet.http.HttpServletRequest request)
Handles ‘/searchLogs’ request.
|
public LogviewerResource(LogviewerLogPageHandler logviewerParam, LogviewerProfileHandler profileHandler, LogviewerLogDownloadHandler logDownloadHandler, LogviewerLogSearchHandler logSearchHandler, IHttpCredentialsPlugin httpCredsHandler, StormMetricsRegistry metricsRegistry)
Constructor.
logviewerParam
- LogviewerLogPageHandler
profileHandler
- LogviewerProfileHandler
logDownloadHandler
- LogviewerLogDownloadHandler
logSearchHandler
- LogviewerLogSearchHandler
httpCredsHandler
- IHttpCredentialsPlugin
metricsRegistry
- The metrics registry@GET @Path(value="/log") public javax.ws.rs.core.Response log(@Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/log’ request.
IOException
@GET @Path(value="/daemonlog") public javax.ws.rs.core.Response daemonLog(@Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/daemonlog’ request.
IOException
@GET @Path(value="/searchLogs") public javax.ws.rs.core.Response searchLogs(@Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/searchLogs’ request.
IOException
@GET @Path(value="/listLogs") public javax.ws.rs.core.Response listLogs(@Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/listLogs’ request.
IOException
@GET @Path(value="/dumps/{topo-id}/{host-port}") public javax.ws.rs.core.Response listDumpFiles(@PathParam(value="topo-id") String topologyId, @PathParam(value="host-port") String hostPort, @Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/dumps’ (listing dump files) request.
IOException
@GET @Path(value="/dumps/{topo-id}/{host-port}/{filename}") public javax.ws.rs.core.Response downloadDumpFile(@PathParam(value="topo-id") String topologyId, @PathParam(value="host-port") String hostPort, @PathParam(value="filename") String fileName, @Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/dumps’ (downloading specific dump file) request.
IOException
@GET @Path(value="/download") public javax.ws.rs.core.Response downloadLogFile(@Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/download’ (downloading specific log file) request.
IOException
@GET @Path(value="/daemondownload") public javax.ws.rs.core.Response downloadDaemonLogFile(@Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/daemondownload’ (downloading specific daemon log file) request.
IOException
@GET @Path(value="/search") public javax.ws.rs.core.Response search(@Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/search’ (searching from specific worker or daemon log file) request.
IOException
@GET @Path(value="/deepSearch/{topoId}") public javax.ws.rs.core.Response deepSearch(@PathParam(value="topoId") String topologyId, @Context javax.servlet.http.HttpServletRequest request) throws IOException
Handles ‘/deepSearch’ request.
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.