Package org.apache.druid.storage.azure
Class AzureTaskLogs
- java.lang.Object
-
- org.apache.druid.storage.azure.AzureTaskLogs
-
- All Implemented Interfaces:
org.apache.druid.tasklogs.TaskLogKiller
,org.apache.druid.tasklogs.TaskLogPusher
,org.apache.druid.tasklogs.TaskLogs
,org.apache.druid.tasklogs.TaskLogStreamer
public class AzureTaskLogs extends Object implements org.apache.druid.tasklogs.TaskLogs
Deals with reading and writing task logs stored in Azure.
-
-
Constructor Summary
Constructors Constructor Description AzureTaskLogs(AzureTaskLogsConfig config, AzureInputDataConfig inputDataConfig, AzureAccountConfig accountConfig, AzureStorage azureStorage, AzureCloudBlobIterableFactory azureCloudBlobIterableFactory, org.apache.druid.common.utils.CurrentTimeMillisSupplier timeSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
killAll()
void
killOlderThan(long timestamp)
void
pushTaskLog(String taskid, File logFile)
void
pushTaskReports(String taskid, File reportFile)
void
pushTaskStatus(String taskid, File statusFile)
com.google.common.base.Optional<InputStream>
streamTaskLog(String taskid, long offset)
com.google.common.base.Optional<InputStream>
streamTaskReports(String taskid)
com.google.common.base.Optional<InputStream>
streamTaskStatus(String taskid)
-
-
-
Constructor Detail
-
AzureTaskLogs
@Inject public AzureTaskLogs(AzureTaskLogsConfig config, AzureInputDataConfig inputDataConfig, AzureAccountConfig accountConfig, AzureStorage azureStorage, AzureCloudBlobIterableFactory azureCloudBlobIterableFactory, org.apache.druid.common.utils.CurrentTimeMillisSupplier timeSupplier)
-
-
Method Detail
-
pushTaskLog
public void pushTaskLog(String taskid, File logFile)
- Specified by:
pushTaskLog
in interfaceorg.apache.druid.tasklogs.TaskLogPusher
-
pushTaskReports
public void pushTaskReports(String taskid, File reportFile)
- Specified by:
pushTaskReports
in interfaceorg.apache.druid.tasklogs.TaskLogPusher
-
pushTaskStatus
public void pushTaskStatus(String taskid, File statusFile)
- Specified by:
pushTaskStatus
in interfaceorg.apache.druid.tasklogs.TaskLogPusher
-
streamTaskLog
public com.google.common.base.Optional<InputStream> streamTaskLog(String taskid, long offset) throws IOException
- Specified by:
streamTaskLog
in interfaceorg.apache.druid.tasklogs.TaskLogStreamer
- Throws:
IOException
-
streamTaskReports
public com.google.common.base.Optional<InputStream> streamTaskReports(String taskid) throws IOException
- Specified by:
streamTaskReports
in interfaceorg.apache.druid.tasklogs.TaskLogStreamer
- Throws:
IOException
-
streamTaskStatus
public com.google.common.base.Optional<InputStream> streamTaskStatus(String taskid) throws IOException
- Specified by:
streamTaskStatus
in interfaceorg.apache.druid.tasklogs.TaskLogStreamer
- Throws:
IOException
-
killAll
public void killAll() throws IOException
- Specified by:
killAll
in interfaceorg.apache.druid.tasklogs.TaskLogKiller
- Throws:
IOException
-
killOlderThan
public void killOlderThan(long timestamp) throws IOException
- Specified by:
killOlderThan
in interfaceorg.apache.druid.tasklogs.TaskLogKiller
- Throws:
IOException
-
-