Class 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.
    • Method Detail

      • pushTaskLog

        public void pushTaskLog​(String taskid,
                                File logFile)
        Specified by:
        pushTaskLog in interface org.apache.druid.tasklogs.TaskLogPusher
      • pushTaskReports

        public void pushTaskReports​(String taskid,
                                    File reportFile)
        Specified by:
        pushTaskReports in interface org.apache.druid.tasklogs.TaskLogPusher
      • pushTaskStatus

        public void pushTaskStatus​(String taskid,
                                   File statusFile)
        Specified by:
        pushTaskStatus in interface org.apache.druid.tasklogs.TaskLogPusher
      • streamTaskLog

        public com.google.common.base.Optional<InputStream> streamTaskLog​(String taskid,
                                                                          long offset)
                                                                   throws IOException
        Specified by:
        streamTaskLog in interface org.apache.druid.tasklogs.TaskLogStreamer
        Throws:
        IOException
      • streamTaskReports

        public com.google.common.base.Optional<InputStream> streamTaskReports​(String taskid)
                                                                       throws IOException
        Specified by:
        streamTaskReports in interface org.apache.druid.tasklogs.TaskLogStreamer
        Throws:
        IOException
      • streamTaskStatus

        public com.google.common.base.Optional<InputStream> streamTaskStatus​(String taskid)
                                                                      throws IOException
        Specified by:
        streamTaskStatus in interface org.apache.druid.tasklogs.TaskLogStreamer
        Throws:
        IOException
      • killAll

        public void killAll()
                     throws IOException
        Specified by:
        killAll in interface org.apache.druid.tasklogs.TaskLogKiller
        Throws:
        IOException
      • killOlderThan

        public void killOlderThan​(long timestamp)
                           throws IOException
        Specified by:
        killOlderThan in interface org.apache.druid.tasklogs.TaskLogKiller
        Throws:
        IOException