Class OverallLog

java.lang.Object
org.kohsuke.stapler.framework.io.LargeText
hudson.console.AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
io.jenkins.plugins.opentelemetry.job.log.OverallLog

public class OverallLog extends AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
  • Field Summary

    Fields inherited from class org.kohsuke.stapler.framework.io.LargeText

    charset
  • Constructor Summary

    Constructors
    Constructor
    Description
    OverallLog(org.kohsuke.stapler.framework.io.ByteBuffer memory, LogsViewHeader logsViewHeader, Charset charset, boolean completed, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable context, io.opentelemetry.api.trace.Tracer tracer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Writer
    createWriter(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, long size)
     
    void
    doProgressiveHtml(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
    Invoked by `/job/:jobFullName/:runNumber/logText/progressiveHtml
    void
    doProgressiveText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
     
    void
    doProgressText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
     
    void
     
     
    long
    writeHtmlTo(long start, Writer w)
    Inspired by io.jenkins.plugins.pipeline_cloudwatch_logs.CloudWatchRetriever.OverallLog#writeHtmlTo
    long
    writeLogTo(long start, OutputStream out)
    Called by `/job/:jobFullName/:runNumber/consoleText` or `/blue/rest/organizations/:organization/pipelines/:pipeline/branches/:branch/runs/:runNumber/log?start=0` with `complete=true`
    long
    writeLogTo(long start, Writer w)
     
    long
    writeRawLogTo(long start, OutputStream out)
    Invoked by: * /job/:jobFullName/:runNumber/console * WorkflowRun.getLogInputStream()

    Methods inherited from class hudson.console.AnnotatedLargeText

    setContentType

    Methods inherited from class org.kohsuke.stapler.framework.io.LargeText

    isComplete, length

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OverallLog

      public OverallLog(org.kohsuke.stapler.framework.io.ByteBuffer memory, LogsViewHeader logsViewHeader, Charset charset, boolean completed, org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable context, io.opentelemetry.api.trace.Tracer tracer)
  • Method Details

    • doProgressiveHtml

      public void doProgressiveHtml(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
      Invoked by `/job/:jobFullName/:runNumber/logText/progressiveHtml
      Overrides:
      doProgressiveHtml in class AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
      Throws:
      IOException
    • doProgressiveText

      public void doProgressiveText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
      Overrides:
      doProgressiveText in class AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
      Throws:
      IOException
    • writeLogTo

      public long writeLogTo(long start, Writer w) throws IOException
      Overrides:
      writeLogTo in class AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
      Throws:
      IOException
    • writeLogTo

      public long writeLogTo(long start, OutputStream out) throws IOException
      Called by `/job/:jobFullName/:runNumber/consoleText` or `/blue/rest/organizations/:organization/pipelines/:pipeline/branches/:branch/runs/:runNumber/log?start=0` with `complete=true`
      Overrides:
      writeLogTo in class AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
      Throws:
      IOException
    • writeRawLogTo

      public long writeRawLogTo(long start, OutputStream out) throws IOException
      Invoked by: * /job/:jobFullName/:runNumber/console * WorkflowRun.getLogInputStream()
      Overrides:
      writeRawLogTo in class AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
      Throws:
      IOException
    • writeHtmlTo

      public long writeHtmlTo(long start, Writer w) throws IOException
      Inspired by io.jenkins.plugins.pipeline_cloudwatch_logs.CloudWatchRetriever.OverallLog#writeHtmlTo
      Overrides:
      writeHtmlTo in class AnnotatedLargeText<org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner.Executable>
      Throws:
      IOException
    • readAll

      public Reader readAll() throws IOException
      Overrides:
      readAll in class org.kohsuke.stapler.framework.io.LargeText
      Throws:
      IOException
    • doProgressText

      public void doProgressText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
      Overrides:
      doProgressText in class org.kohsuke.stapler.framework.io.LargeText
      Throws:
      IOException
    • createWriter

      protected Writer createWriter(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, long size) throws IOException
      Overrides:
      createWriter in class org.kohsuke.stapler.framework.io.LargeText
      Throws:
      IOException
    • markAsComplete

      public void markAsComplete()
      Overrides:
      markAsComplete in class org.kohsuke.stapler.framework.io.LargeText