Class AbstractPerformanceTest
- java.lang.Object
-
- de.hybris.platform.hac.performance.impl.AbstractPerformanceTest
-
- All Implemented Interfaces:
PerformanceTest
- Direct Known Subclasses:
AbstractJaloItemTest,ConfigGetDatabase,ConfigGetOracle,ConfigGetParameter,ConfigGetString,JaloFlexibleSearchWithCache,JaloFlexiblSearchWithoutCache,ModelGetPk,RegistryGetDataSource,SlFlexibleSearch
public abstract class AbstractPerformanceTest extends java.lang.Object implements PerformanceTest
-
-
Constructor Summary
Constructors Constructor Description AbstractPerformanceTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcleanup()Cleanup after test if needed.java.util.Map<java.lang.String,java.lang.Object>computeScores(int seconds)Compute scores and returns as map.abstract voidexecuteBlock()Executes block of code to be tested.abstract java.lang.StringgetTestName()Gets the test name.abstract voidprepare()Prepare test if needed.
-
-
-
Method Detail
-
executeBlock
public abstract void executeBlock() throws java.lang.ExceptionDescription copied from interface:PerformanceTestExecutes block of code to be tested.- Specified by:
executeBlockin interfacePerformanceTest- Throws:
java.lang.Exception
-
getTestName
public abstract java.lang.String getTestName()
Description copied from interface:PerformanceTestGets the test name.- Specified by:
getTestNamein interfacePerformanceTest- Returns:
- the test name
-
cleanup
public abstract void cleanup()
Description copied from interface:PerformanceTestCleanup after test if needed.- Specified by:
cleanupin interfacePerformanceTest
-
prepare
public abstract void prepare() throws java.lang.ExceptionDescription copied from interface:PerformanceTestPrepare test if needed.- Specified by:
preparein interfacePerformanceTest- Throws:
java.lang.Exception- the exception
-
computeScores
public java.util.Map<java.lang.String,java.lang.Object> computeScores(int seconds)
Description copied from interface:PerformanceTestCompute scores and returns as map.- Specified by:
computeScoresin interfacePerformanceTest- Parameters:
seconds- the seconds- Returns:
- the map with test scores
-
-