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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RelativeConstraint.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.plugins.performance.constraints.AbstractConstraint
AbstractConstraint.Escalation, AbstractConstraint.Metric, AbstractConstraint.Operator
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.plugins.performance.constraints.AbstractConstraint
ANY, NOW
-
-
Constructor Summary
Constructors Constructor Description RelativeConstraint(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, PreviousResultsBlock previousResultsBlock, double tolerance)
-
Method Summary
-
Methods inherited from class hudson.plugins.performance.constraints.AbstractConstraint
all, checkForDefectiveParams, checkMetredValueforPerfReport, checkMetredValueforUriReport, getDescriptor, getEscalationLevel, getJunitResult, getMeteredValue, getOperator, getRelatedPerfReport, getResultMessage, getSettings, getSuccess, getTestCase, getTestCaseBlock, isSpecifiedTestCase, setEscalationLevel, setJunitResult, setMeteredValue, setOperator, setRelatedPerfReport, setResultMessage, setSettings, setSpecifiedTestCase, setSuccess, setTestCase, setTestCaseBlock
-
-
-
-
Constructor Detail
-
RelativeConstraint
@DataBoundConstructor public RelativeConstraint(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, PreviousResultsBlock previousResultsBlock, double tolerance)
-
-
Method Detail
-
clone
public RelativeConstraint clone()
Cloning of a RelativeConstraint Note that this is not from the Interface Clonable- Specified by:
clone
in classAbstractConstraint
- 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 classAbstractConstraint
- 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)
-
-