public class LogviewerLogDownloadHandler extends Object
Constructor and Description |
---|
LogviewerLogDownloadHandler(String logRoot,
String daemonLogRoot,
WorkerLogs workerLogs,
ResourceAuthorizer resourceAuthorizer,
StormMetricsRegistry metricsRegistry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
downloadDaemonLogFile(String host,
String fileName,
String user)
Download a daemon log.
|
javax.ws.rs.core.Response |
downloadLogFile(String host,
String fileName,
String user)
Download an worker log.
|
public LogviewerLogDownloadHandler(String logRoot, String daemonLogRoot, WorkerLogs workerLogs, ResourceAuthorizer resourceAuthorizer, StormMetricsRegistry metricsRegistry)
logRoot
- root worker log directorydaemonLogRoot
- root daemon log directoryworkerLogs
- WorkerLogs
resourceAuthorizer
- ResourceAuthorizer
metricsRegistry
- The logviewer metrics registrypublic javax.ws.rs.core.Response downloadLogFile(String host, String fileName, String user) throws IOException
host
- host addressfileName
- file to downloaduser
- usernameIOException
LogFileDownloader#downloadFile(String, String, String, boolean)}
public javax.ws.rs.core.Response downloadDaemonLogFile(String host, String fileName, String user) throws IOException
host
- host addressfileName
- file to downloaduser
- usernameIOException
LogFileDownloader#downloadFile(String, String, String, boolean)}
Copyright © 2023 The Apache Software Foundation. All rights reserved.