public interface ComparisonStrategy<T>
Modifier and Type | Method and Description |
---|---|
StrategyResult<T> |
doCompare(BuildInfo benchMarkBuild,
BuildInfo currentBuild)
This method compares the performance of current build with the benchmark build.
|
void |
setConfiguration(StrategyConfiguration strategyConfiguration)
This method is called automatically by plug-in run, whose main object is to provide you a
comparison strategy attribute entity, which have complete information about the particular
comparison strategy in question, You can create a local variable in your implemented class to
get hold of the properties required by you for executing the comparison strategy
|
void setConfiguration(StrategyConfiguration strategyConfiguration)
strategyConfiguration
- The comparison-strategy specific configuration provided in the
properties fileStrategyResult<T> doCompare(BuildInfo benchMarkBuild, BuildInfo currentBuild) throws BuildComparatorException, BuildExecutionException
benchMarkBuild
- This object contains build number, start time and end time of benchmark
build number selectedcurrentBuild
- This object contains build number, start time and end time of the current
buildBuildComparatorException
- ComparisonStrategyResult object is returned, which contain
detailed transaction to transaction metric comparison valuesBuildExecutionException
Copyright © 2016–2019. All rights reserved.