Class RelativeConstraint

java.lang.Object
hudson.plugins.performance.constraints.AbstractConstraint
hudson.plugins.performance.constraints.RelativeConstraint
All Implemented Interfaces:
ExtensionPoint, Describable<AbstractConstraint>

public class RelativeConstraint extends AbstractConstraint
Compares new load test results with 1 or more load test results in the past in a dynamically manner.
Author:
Rene Kugel
  • Constructor Details

  • Method Details

    • clone

      public RelativeConstraint clone()
      Cloning of a RelativeConstraint Note that this is not from the Interface Clonable
      Specified by:
      clone in class AbstractConstraint
      Returns:
      clone of this object
    • evaluate

      public ConstraintEvaluation evaluate(List<? extends Run<?,?>> builds) throws AbortException, ParseException
      Description copied from class: AbstractConstraint
      Evaluates whether the constraint is fulfilled or violated
      Specified by:
      evaluate in class AbstractConstraint
      Parameters:
      builds - all builds that are saved in Jenkins
      Returns:
      Throws:
      AbortException
      ParseException
    • getPreviousResults

      public int getPreviousResults()
    • setPreviousResults

      public void setPreviousResults(int previousResults)
    • getTolerance

      public double getTolerance()
    • setTolerance

      public void setTolerance(double d)
    • getChoicePreviousResults

      public boolean getChoicePreviousResults()
    • setChoicePreviousResults

      public void setChoicePreviousResults(boolean choicePreviousResults)
    • getTimeframeStartString

      public String getTimeframeStartString()
    • setTimeframeStartString

      public void setTimeframeStartString(String timeframeStartString)
    • getTimeframeEndString

      public String getTimeframeEndString()
    • setTimeframeEndString

      public void setTimeframeEndString(String timeframeEndString)
    • getTimeframeStart

      public Date getTimeframeStart()
    • setTimeframeStart

      public void setTimeframeStart(Date timeframeStart)
    • getTimeframeEnd

      public Date getTimeframeEnd()
    • setTimeframeEnd

      public void setTimeframeEnd(Date timeframeEnd)
    • getPreviousResultsBlock

      public PreviousResultsBlock getPreviousResultsBlock()
    • setPreviousResultsBlock

      public void setPreviousResultsBlock(PreviousResultsBlock previousResultsBlock)
    • getPreviousResultsString

      public String getPreviousResultsString()
    • setPreviousResultsString

      public void setPreviousResultsString(String previousResultsString)