Class LogviewerResource
- java.lang.Object
-
- org.apache.storm.daemon.logviewer.webapp.LogviewerResource
-
@Path("/") public class LogviewerResource extends ObjectHandles HTTP requests for Logviewer.
-
-
Constructor Summary
Constructors Constructor Description LogviewerResource(LogviewerLogPageHandler logviewerParam, LogviewerProfileHandler profileHandler, LogviewerLogDownloadHandler logDownloadHandler, LogviewerLogSearchHandler logSearchHandler, IHttpCredentialsPlugin httpCredsHandler, StormMetricsRegistry metricsRegistry)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.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 Detail
-
LogviewerResource
public LogviewerResource(LogviewerLogPageHandler logviewerParam, LogviewerProfileHandler profileHandler, LogviewerLogDownloadHandler logDownloadHandler, LogviewerLogSearchHandler logSearchHandler, IHttpCredentialsPlugin httpCredsHandler, StormMetricsRegistry metricsRegistry)
Constructor.- Parameters:
logviewerParam-LogviewerLogPageHandlerprofileHandler-LogviewerProfileHandlerlogDownloadHandler-LogviewerLogDownloadHandlerlogSearchHandler-LogviewerLogSearchHandlerhttpCredsHandler-IHttpCredentialsPluginmetricsRegistry- The metrics registry
-
-
Method Detail
-
log
@GET @Path("/log") public jakarta.ws.rs.core.Response log(@Context jakarta.servlet.http.HttpServletRequest request) throws IOExceptionHandles '/log' request.- Throws:
IOException
-
daemonLog
@GET @Path("/daemonlog") public jakarta.ws.rs.core.Response daemonLog(@Context jakarta.servlet.http.HttpServletRequest request) throws IOExceptionHandles '/daemonlog' request.- Throws:
IOException
-
searchLogs
@GET @Path("/searchLogs") public jakarta.ws.rs.core.Response searchLogs(@Context jakarta.servlet.http.HttpServletRequest request) throws IOExceptionHandles '/searchLogs' request.- Throws:
IOException
-
listLogs
@GET @Path("/listLogs") public jakarta.ws.rs.core.Response listLogs(@Context jakarta.servlet.http.HttpServletRequest request) throws IOExceptionHandles '/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 IOExceptionHandles '/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 IOExceptionHandles '/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 IOExceptionHandles '/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 IOExceptionHandles '/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 IOExceptionHandles '/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 IOExceptionHandles '/deepSearch' request.- Throws:
IOException
-
-