Class PerformanceTestResultImpl
java.lang.Object
org.apache.uima.test.junit_extension.PerformanceTestResultImpl
- All Implemented Interfaces:
PerformanceTestResult
PerformanceTestResultImpl implements the PerformanceTestResult interface and provides the results of a performance
test run.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
long
boolean
boolean
void
setAeDescFilePath
(File aeDescFile) void
setCleanupTime
(TimeSpan cleanupTime) void
setDatapath
(String datapath) void
setDocumentPreparationTime
(TimeSpan documentPreparationTime) void
setDoWarmup
(boolean doWarmup) void
setInitTime
(TimeSpan initTime) void
void
setNumberOfCharacters
(int numberOfCharacters) void
setNumberOfCreatedAnnotations
(int numberOfCreatedAnnotations) void
setNumberOfFiles
(int numberOfFiles) void
setNumsToRun
(int numsToRun) void
setOverallTime
(TimeSpan overallTime) void
setProcessingTime
(TimeSpan processingTime) void
setRepeatSingleMode
(boolean repeatSingleMode) void
setTestFileDir
(File testFileDir) void
setTotalFileSize
(long collectionFileSize) void
setWarmupTime
(TimeSpan warmupTime) toString()
returns a performance report with the current performance results.void
writePerfResultsAsColumn
(String level, File file) write performance results as colum.
-
Constructor Details
-
PerformanceTestResultImpl
public PerformanceTestResultImpl()
-
-
Method Details
-
getNumberOfProcessedCharacters
public int getNumberOfProcessedCharacters()- Specified by:
getNumberOfProcessedCharacters
in interfacePerformanceTestResult
- Returns:
- Returns the number of processed characters.
-
setNumberOfCharacters
public void setNumberOfCharacters(int numberOfCharacters) - Parameters:
numberOfCharacters
- The number of characters.
-
getNumberOfProcessedFiles
public int getNumberOfProcessedFiles()- Specified by:
getNumberOfProcessedFiles
in interfacePerformanceTestResult
- Returns:
- Returns the number of processed files.
-
setNumberOfFiles
public void setNumberOfFiles(int numberOfFiles) - Parameters:
numberOfFiles
- The number of files.
-
getUIMADatapath
- Specified by:
getUIMADatapath
in interfacePerformanceTestResult
- Returns:
- Returns the UIMA datapath setting used for the performance test.
-
setDatapath
- Parameters:
datapath
- The UIMA datapath.
-
getAeInitTime
- Specified by:
getAeInitTime
in interfacePerformanceTestResult
- Returns:
- Returns the analysis engine initialization time.
-
setInitTime
- Parameters:
initTime
- The analysis engine init time.
-
getFileIoTime
- Specified by:
getFileIoTime
in interfacePerformanceTestResult
- Returns:
- Returns the file I/O time.
-
setIoTime
- Parameters:
ioTime
- The file io time to set.
-
getNumberOfCreatedAnnotations
public int getNumberOfCreatedAnnotations()- Specified by:
getNumberOfCreatedAnnotations
in interfacePerformanceTestResult
- Returns:
- Returns the number of created annotations.
-
setNumberOfCreatedAnnotations
public void setNumberOfCreatedAnnotations(int numberOfCreatedAnnotations) - Parameters:
numberOfCreatedAnnotations
- The number of created annotations to set.
-
getNumberOfRepeatedRuns
public int getNumberOfRepeatedRuns()- Specified by:
getNumberOfRepeatedRuns
in interfacePerformanceTestResult
- Returns:
- Returns the setting for the number of repeated runs.
-
setNumsToRun
public void setNumsToRun(int numsToRun) - Parameters:
numsToRun
- The number of repeated runs.
-
getOverallTime
- Specified by:
getOverallTime
in interfacePerformanceTestResult
- Returns:
- Returns the overall time of the performance run
-
setOverallTime
- Parameters:
overallTime
- The overall processing time.
-
getAeProcessingTime
- Specified by:
getAeProcessingTime
in interfacePerformanceTestResult
- Returns:
- Returns the analysis engine processing time.
-
setProcessingTime
- Parameters:
processingTime
- The analysis engine processing time.
-
isRepeatSingleMode
public boolean isRepeatSingleMode()- Specified by:
isRepeatSingleMode
in interfacePerformanceTestResult
- Returns:
- Returns the setting of the repeat mode mode.
-
setRepeatSingleMode
public void setRepeatSingleMode(boolean repeatSingleMode) - Parameters:
repeatSingleMode
- The repeat single mode setting
-
getAeDescFilePath
- Specified by:
getAeDescFilePath
in interfacePerformanceTestResult
- Returns:
- Returns the analysis engine descriptor file path.
-
setAeDescFilePath
- Parameters:
aeDescFile
- The analysis engine descriptor file.
-
getTestFileDirectoryPath
- Specified by:
getTestFileDirectoryPath
in interfacePerformanceTestResult
- Returns:
- Returns the test file directory used for the performance run.
-
setTestFileDir
- Parameters:
testFileDir
- The test file directory.
-
getAeWarmupTime
- Specified by:
getAeWarmupTime
in interfacePerformanceTestResult
- Returns:
- Returns the analysis engine warmup time.
-
setWarmupTime
- Parameters:
warmupTime
- The analysis engine warmup time.
-
isDoAeWarmup
public boolean isDoAeWarmup()- Specified by:
isDoAeWarmup
in interfacePerformanceTestResult
- Returns:
- Returns the setting the the analysis engine warmup.
-
setDoWarmup
public void setDoWarmup(boolean doWarmup) - Parameters:
doWarmup
- the doWarmup setting
-
toString
returns a performance report with the current performance results. -
writePerfResultsAsColumn
write performance results as colum.- Specified by:
writePerfResultsAsColumn
in interfacePerformanceTestResult
- Parameters:
level
- Test level name of the performance testfile
- Output file where the results are written to- Throws:
Exception
- passthru
-
getAeCleanupTime
- Specified by:
getAeCleanupTime
in interfacePerformanceTestResult
- Returns:
- Returns the analysis engine cleanup time.
-
setCleanupTime
- Parameters:
cleanupTime
- the analysis engine cleanup time
-
getDocumentPreparationTime
- Specified by:
getDocumentPreparationTime
in interfacePerformanceTestResult
- Returns:
- Returns the document preparation time.
-
setDocumentPreparationTime
- Parameters:
documentPreparationTime
- the document preparation time
-
getProcessedFileSize
public long getProcessedFileSize()- Specified by:
getProcessedFileSize
in interfacePerformanceTestResult
- Returns:
- Returns the processed file collection size.
-
setTotalFileSize
public void setTotalFileSize(long collectionFileSize) - Parameters:
collectionFileSize
- the collection file size
-