public class LogviewerProfileHandler extends Object
Modifier and Type | Field and Description |
---|---|
static String |
WORKER_LOG_FILENAME |
Constructor and Description |
---|
LogviewerProfileHandler(String logRoot,
ResourceAuthorizer resourceAuthorizer,
StormMetricsRegistry metricsRegistry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
downloadDumpFile(String topologyId,
String hostPort,
String fileName,
String user)
Download a dump file.
|
javax.ws.rs.core.Response |
listDumpFiles(String topologyId,
String hostPort,
String user)
Enumerate dump (profile) files for given worker.
|
public static final String WORKER_LOG_FILENAME
public LogviewerProfileHandler(String logRoot, ResourceAuthorizer resourceAuthorizer, StormMetricsRegistry metricsRegistry)
Constructor.
logRoot
- worker log root directoryresourceAuthorizer
- ResourceAuthorizer
metricsRegistry
- The logviewer metrisc registrypublic javax.ws.rs.core.Response listDumpFiles(String topologyId, String hostPort, String user) throws IOException
Enumerate dump (profile) files for given worker.
topologyId
- topology IDhostPort
- host and port of workeruser
- usernameIOException
public javax.ws.rs.core.Response downloadDumpFile(String topologyId, String hostPort, String fileName, String user) throws IOException
Download a dump file.
topologyId
- topology IDhostPort
- host and port of workerfileName
- dump file nameuser
- usernameIOException
org.apache.storm.daemon.logviewer.utils.LogFileDownloader#downloadFile(String, String, String, boolean)}
Copyright © 2022 The Apache Software Foundation. All rights reserved.