Class AbsoluteConstraint
java.lang.Object
hudson.plugins.performance.constraints.AbstractConstraint
hudson.plugins.performance.constraints.AbsoluteConstraint
- All Implemented Interfaces:
ExtensionPoint
,Describable<AbstractConstraint>
Absolute Constraints compare the result of a new load test against some user defined values.
- Author:
- Rene Kugel
-
Nested Class Summary
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
ConstructorDescriptionAbsoluteConstraint
(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, long value) -
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 Details
-
AbsoluteConstraint
@DataBoundConstructor public AbsoluteConstraint(AbstractConstraint.Metric meteredValue, AbstractConstraint.Operator operator, String relatedPerfReport, AbstractConstraint.Escalation escalationLevel, boolean success, TestCaseBlock testCaseBlock, long value)
-
-
Method Details
-
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, AbortExceptionDescription 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)
-