Class AbsoluteConstraint
- java.lang.Object
-
- hudson.plugins.performance.constraints.AbstractConstraint
-
- hudson.plugins.performance.constraints.AbsoluteConstraint
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<AbstractConstraint>
public class AbsoluteConstraint extends AbstractConstraint
Absolute Constraints compare the result of a new load test against some user defined values.- Author:
- Rene Kugel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbsoluteConstraint.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 AbsoluteConstraint(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteConstraint
clone()
Cloning of a AbsoluteConstraint Note that this is not from the Interface ClonableConstraintEvaluation
evaluate(List<? extends Run<?,?>> builds)
Evaluates whether the constraint is fulfilled or violatedlong
getValue()
void
setValue(long value)
-
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
-
AbsoluteConstraint
@DataBoundConstructor public AbsoluteConstraint(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, long value)
-
-
Method Detail
-
clone
public AbsoluteConstraint clone()
Cloning of a AbsoluteConstraint 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 InvocationTargetException, AbortException
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:
InvocationTargetException
AbortException
-
getValue
public long getValue()
-
setValue
public void setValue(long value)
-
-