public class FileTaskLogs extends Object implements io.druid.tasklogs.TaskLogs
| Constructor and Description |
|---|
FileTaskLogs(FileTaskLogsConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
killAll() |
void |
killOlderThan(long timestamp) |
void |
pushTaskLog(String taskid,
File file) |
com.google.common.base.Optional<com.google.common.io.ByteSource> |
streamTaskLog(String taskid,
long offset) |
@Inject public FileTaskLogs(FileTaskLogsConfig config)
public void pushTaskLog(String taskid, File file) throws IOException
pushTaskLog in interface io.druid.tasklogs.TaskLogPusherIOExceptionpublic com.google.common.base.Optional<com.google.common.io.ByteSource> streamTaskLog(String taskid, long offset) throws IOException
streamTaskLog in interface io.druid.tasklogs.TaskLogStreamerIOExceptionpublic void killAll()
throws IOException
killAll in interface io.druid.tasklogs.TaskLogKillerIOExceptionpublic void killOlderThan(long timestamp)
throws IOException
killOlderThan in interface io.druid.tasklogs.TaskLogKillerIOExceptionCopyright © 2011–2018. All rights reserved.