Class CommitOutputHandler

java.lang.Object
com.atlassian.utils.process.BaseOutputHandler
com.atlassian.utils.process.LineOutputHandler
com.atlassian.bamboo.plugins.git.CommitOutputHandler
All Implemented Interfaces:
com.atlassian.utils.process.OutputHandler

@NotThreadSafe public class CommitOutputHandler extends com.atlassian.utils.process.LineOutputHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.atlassian.utils.process.LineOutputHandler

    com.atlassian.utils.process.LineOutputHandler.BufferReaderLineReader
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommitOutputHandler(@NotNull Set<String> shallows)
     
    CommitOutputHandler(@NotNull Set<String> shallows, int maxCommitNumber)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
     
    protected void
    processLine(int lineNum, String line)
     

    Methods inherited from class com.atlassian.utils.process.LineOutputHandler

    createReader, getEncoding, process, process, processEndByException, processInputEnd

    Methods inherited from class com.atlassian.utils.process.BaseOutputHandler

    cancelProcess, complete, isCanceled, resetWatchdog, setWatchdog

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.utils.process.OutputHandler

    complete, process, setWatchdog
  • Field Details

  • Constructor Details

    • CommitOutputHandler

      public CommitOutputHandler(@NotNull @NotNull Set<String> shallows)
    • CommitOutputHandler

      public CommitOutputHandler(@NotNull @NotNull Set<String> shallows, int maxCommitNumber)
  • Method Details

    • getStdout

      public String getStdout()
    • processLine

      protected void processLine(int lineNum, String line)
      Specified by:
      processLine in class com.atlassian.utils.process.LineOutputHandler
    • getExtractedCommits

      public List<CommitContext> getExtractedCommits()
    • getSkippedCommitCount

      public int getSkippedCommitCount()