Class LogviewerResource
java.lang.Object
org.apache.storm.daemon.logviewer.webapp.LogviewerResource
Handles HTTP requests for Logviewer.
- 
Constructor SummaryConstructorsConstructorDescriptionLogviewerResource(LogviewerLogPageHandler logviewerParam, LogviewerProfileHandler profileHandler, LogviewerLogDownloadHandler logDownloadHandler, LogviewerLogSearchHandler logSearchHandler, IHttpCredentialsPlugin httpCredsHandler, StormMetricsRegistry metricsRegistry) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedaemonLog(jakarta.servlet.http.HttpServletRequest request) Handles '/daemonlog' request.jakarta.ws.rs.core.ResponsedeepSearch(String topologyId, jakarta.servlet.http.HttpServletRequest request) Handles '/deepSearch' request.jakarta.ws.rs.core.ResponsedownloadDaemonLogFile(jakarta.servlet.http.HttpServletRequest request) Handles '/daemondownload' (downloading specific daemon log file) request.jakarta.ws.rs.core.ResponsedownloadDumpFile(String topologyId, String hostPort, String fileName, jakarta.servlet.http.HttpServletRequest request) Handles '/dumps' (downloading specific dump file) request.jakarta.ws.rs.core.ResponsedownloadLogFile(jakarta.servlet.http.HttpServletRequest request) Handles '/download' (downloading specific log file) request.jakarta.ws.rs.core.ResponselistDumpFiles(String topologyId, String hostPort, jakarta.servlet.http.HttpServletRequest request) Handles '/dumps' (listing dump files) request.jakarta.ws.rs.core.ResponselistLogs(jakarta.servlet.http.HttpServletRequest request) Handles '/listLogs' request.jakarta.ws.rs.core.Responselog(jakarta.servlet.http.HttpServletRequest request) Handles '/log' request.jakarta.ws.rs.core.Responsesearch(jakarta.servlet.http.HttpServletRequest request) Handles '/search' (searching from specific worker or daemon log file) request.jakarta.ws.rs.core.ResponsesearchLogs(jakarta.servlet.http.HttpServletRequest request) Handles '/searchLogs' request.
- 
Constructor Details- 
LogviewerResourcepublic LogviewerResource(LogviewerLogPageHandler logviewerParam, LogviewerProfileHandler profileHandler, LogviewerLogDownloadHandler logDownloadHandler, LogviewerLogSearchHandler logSearchHandler, IHttpCredentialsPlugin httpCredsHandler, StormMetricsRegistry metricsRegistry) Constructor.- Parameters:
- logviewerParam-- LogviewerLogPageHandler
- profileHandler-- LogviewerProfileHandler
- logDownloadHandler-- LogviewerLogDownloadHandler
- logSearchHandler-- LogviewerLogSearchHandler
- httpCredsHandler-- IHttpCredentialsPlugin
- metricsRegistry- The metrics registry
 
 
- 
- 
Method Details- 
log@GET @Path("/log") public jakarta.ws.rs.core.Response log(@Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/log' request.- Throws:
- IOException
 
- 
daemonLog@GET @Path("/daemonlog") public jakarta.ws.rs.core.Response daemonLog(@Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/daemonlog' request.- Throws:
- IOException
 
- 
searchLogs@GET @Path("/searchLogs") public jakarta.ws.rs.core.Response searchLogs(@Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/searchLogs' request.- Throws:
- IOException
 
- 
listLogs@GET @Path("/listLogs") public jakarta.ws.rs.core.Response listLogs(@Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/listLogs' request.- Throws:
- IOException
 
- 
listDumpFiles@GET @Path("/dumps/{topo-id}/{host-port}") public jakarta.ws.rs.core.Response listDumpFiles(@PathParam("topo-id") String topologyId, @PathParam("host-port") String hostPort, @Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/dumps' (listing dump files) request.- Throws:
- IOException
 
- 
downloadDumpFile@GET @Path("/dumps/{topo-id}/{host-port}/{filename}") public jakarta.ws.rs.core.Response downloadDumpFile(@PathParam("topo-id") String topologyId, @PathParam("host-port") String hostPort, @PathParam("filename") String fileName, @Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/dumps' (downloading specific dump file) request.- Throws:
- IOException
 
- 
downloadLogFile@GET @Path("/download") public jakarta.ws.rs.core.Response downloadLogFile(@Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/download' (downloading specific log file) request.- Throws:
- IOException
 
- 
downloadDaemonLogFile@GET @Path("/daemondownload") public jakarta.ws.rs.core.Response downloadDaemonLogFile(@Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/daemondownload' (downloading specific daemon log file) request.- Throws:
- IOException
 
- 
search@GET @Path("/search") public jakarta.ws.rs.core.Response search(@Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/search' (searching from specific worker or daemon log file) request.- Throws:
- IOException
 
- 
deepSearch@GET @Path("/deepSearch/{topoId}") public jakarta.ws.rs.core.Response deepSearch(@PathParam("topoId") String topologyId, @Context jakarta.servlet.http.HttpServletRequest request) throws IOException Handles '/deepSearch' request.- Throws:
- IOException
 
 
-