Record Class PipelineLogExtractor.ExtractionResult

java.lang.Object
java.lang.Record
io.jenkins.plugins.explain_error.PipelineLogExtractor.ExtractionResult
Enclosing class:
PipelineLogExtractor

public static record PipelineLogExtractor.ExtractionResult(List<String> logLines, String url, boolean fallbackToBuildLog, boolean foundFailingNode, String primaryNodeId, boolean downstreamCollectionEnabled, int downstreamMatchedCount, int downstreamReusedExplanationCount, int downstreamPermissionSkippedCount, int failedStepCount, boolean logPatternMatchedNothing) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtractionResult(List<String> logLines, String url, boolean fallbackToBuildLog, boolean foundFailingNode, String primaryNodeId, boolean downstreamCollectionEnabled, int downstreamMatchedCount, int downstreamReusedExplanationCount, int downstreamPermissionSkippedCount, int failedStepCount, boolean logPatternMatchedNothing)
    Creates an instance of a ExtractionResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the downstreamCollectionEnabled record component.
    int
    Returns the value of the downstreamMatchedCount record component.
    int
    Returns the value of the downstreamPermissionSkippedCount record component.
    int
    Returns the value of the downstreamReusedExplanationCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the failedStepCount record component.
    boolean
    Returns the value of the fallbackToBuildLog record component.
    boolean
    Returns the value of the foundFailingNode record component.
    int
     
    final int
    Returns a hash code value for this object.
    Returns the value of the logLines record component.
    boolean
    Returns the value of the logPatternMatchedNothing record component.
    Returns the value of the primaryNodeId record component.
    final String
    Returns a string representation of this record class.
    url()
    Returns the value of the url record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ExtractionResult

      public ExtractionResult(List<String> logLines, @CheckForNull String url, boolean fallbackToBuildLog, boolean foundFailingNode, @CheckForNull String primaryNodeId, boolean downstreamCollectionEnabled, int downstreamMatchedCount, int downstreamReusedExplanationCount, int downstreamPermissionSkippedCount, int failedStepCount, boolean logPatternMatchedNothing)
      Creates an instance of a ExtractionResult record class.
      Parameters:
      logLines - the value for the logLines record component
      url - the value for the url record component
      fallbackToBuildLog - the value for the fallbackToBuildLog record component
      foundFailingNode - the value for the foundFailingNode record component
      primaryNodeId - the value for the primaryNodeId record component
      downstreamCollectionEnabled - the value for the downstreamCollectionEnabled record component
      downstreamMatchedCount - the value for the downstreamMatchedCount record component
      downstreamReusedExplanationCount - the value for the downstreamReusedExplanationCount record component
      downstreamPermissionSkippedCount - the value for the downstreamPermissionSkippedCount record component
      failedStepCount - the value for the failedStepCount record component
      logPatternMatchedNothing - the value for the logPatternMatchedNothing record component
  • Method Details

    • getExtractedLineCount

      public int getExtractedLineCount()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • logLines

      public List<String> logLines()
      Returns the value of the logLines record component.
      Returns:
      the value of the logLines record component
    • url

      @CheckForNull public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • fallbackToBuildLog

      public boolean fallbackToBuildLog()
      Returns the value of the fallbackToBuildLog record component.
      Returns:
      the value of the fallbackToBuildLog record component
    • foundFailingNode

      public boolean foundFailingNode()
      Returns the value of the foundFailingNode record component.
      Returns:
      the value of the foundFailingNode record component
    • primaryNodeId

      @CheckForNull public String primaryNodeId()
      Returns the value of the primaryNodeId record component.
      Returns:
      the value of the primaryNodeId record component
    • downstreamCollectionEnabled

      public boolean downstreamCollectionEnabled()
      Returns the value of the downstreamCollectionEnabled record component.
      Returns:
      the value of the downstreamCollectionEnabled record component
    • downstreamMatchedCount

      public int downstreamMatchedCount()
      Returns the value of the downstreamMatchedCount record component.
      Returns:
      the value of the downstreamMatchedCount record component
    • downstreamReusedExplanationCount

      public int downstreamReusedExplanationCount()
      Returns the value of the downstreamReusedExplanationCount record component.
      Returns:
      the value of the downstreamReusedExplanationCount record component
    • downstreamPermissionSkippedCount

      public int downstreamPermissionSkippedCount()
      Returns the value of the downstreamPermissionSkippedCount record component.
      Returns:
      the value of the downstreamPermissionSkippedCount record component
    • failedStepCount

      public int failedStepCount()
      Returns the value of the failedStepCount record component.
      Returns:
      the value of the failedStepCount record component
    • logPatternMatchedNothing

      public boolean logPatternMatchedNothing()
      Returns the value of the logPatternMatchedNothing record component.
      Returns:
      the value of the logPatternMatchedNothing record component