Interface TaskLogStreamer

  • All Known Subinterfaces:
    TaskLogs
    All Known Implementing Classes:
    NoopTaskLogs

    public interface TaskLogStreamer
    Something that knows how to stream logs for tasks.
    • Method Detail

      • streamTaskLog

        com.google.common.base.Optional<InputStream> streamTaskLog​(String taskid,
                                                                   long offset)
                                                            throws IOException
        Stream log for a task.
        Parameters:
        offset - If zero, stream the entire log. If positive, attempt to read from this position onwards. If negative, attempt to read this many bytes from the end of the file (like tail -n).
        Returns:
        inputStream for this log, if available
        Throws:
        IOException