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,org.apache.druid.tasklogs.TaskPayloadManager
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 voidkillAll()voidkillOlderThan(long timestamp)voidpushTaskLog(String taskid, File logFile)voidpushTaskReports(String taskid, File reportFile)voidpushTaskStatus(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:
pushTaskLogin interfaceorg.apache.druid.tasklogs.TaskLogPusher
-
pushTaskReports
public void pushTaskReports(String taskid, File reportFile)
- Specified by:
pushTaskReportsin interfaceorg.apache.druid.tasklogs.TaskLogPusher
-
pushTaskStatus
public void pushTaskStatus(String taskid, File statusFile)
- Specified by:
pushTaskStatusin interfaceorg.apache.druid.tasklogs.TaskLogPusher
-
streamTaskLog
public com.google.common.base.Optional<InputStream> streamTaskLog(String taskid, long offset) throws IOException
- Specified by:
streamTaskLogin interfaceorg.apache.druid.tasklogs.TaskLogStreamer- Throws:
IOException
-
streamTaskReports
public com.google.common.base.Optional<InputStream> streamTaskReports(String taskid) throws IOException
- Specified by:
streamTaskReportsin interfaceorg.apache.druid.tasklogs.TaskLogStreamer- Throws:
IOException
-
streamTaskStatus
public com.google.common.base.Optional<InputStream> streamTaskStatus(String taskid) throws IOException
- Specified by:
streamTaskStatusin interfaceorg.apache.druid.tasklogs.TaskLogStreamer- Throws:
IOException
-
killAll
public void killAll() throws IOException- Specified by:
killAllin interfaceorg.apache.druid.tasklogs.TaskLogKiller- Throws:
IOException
-
killOlderThan
public void killOlderThan(long timestamp) throws IOException- Specified by:
killOlderThanin interfaceorg.apache.druid.tasklogs.TaskLogKiller- Throws:
IOException
-
-