Class PerformanceTestResultImpl
- java.lang.Object
-
- org.apache.uima.test.junit_extension.PerformanceTestResultImpl
-
- All Implemented Interfaces:
PerformanceTestResult
public class PerformanceTestResultImpl extends Object implements PerformanceTestResult
PerformanceTestResultImpl implements the PerformanceTestResult interface and provides the results of a performance test run.
-
-
Constructor Summary
Constructors Constructor Description PerformanceTestResultImpl()
-
Method Summary
-
-
-
Method Detail
-
getNumberOfProcessedCharacters
public int getNumberOfProcessedCharacters()
- Specified by:
getNumberOfProcessedCharactersin 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:
getNumberOfProcessedFilesin interfacePerformanceTestResult- Returns:
- Returns the number of processed files.
-
setNumberOfFiles
public void setNumberOfFiles(int numberOfFiles)
- Parameters:
numberOfFiles- The number of files.
-
getUIMADatapath
public String getUIMADatapath()
- Specified by:
getUIMADatapathin interfacePerformanceTestResult- Returns:
- Returns the UIMA datapath setting used for the performance test.
-
setDatapath
public void setDatapath(String datapath)
- Parameters:
datapath- The UIMA datapath.
-
getAeInitTime
public TimeSpan getAeInitTime()
- Specified by:
getAeInitTimein interfacePerformanceTestResult- Returns:
- Returns the analysis engine initialization time.
-
setInitTime
public void setInitTime(TimeSpan initTime)
- Parameters:
initTime- The analysis engine init time.
-
getFileIoTime
public TimeSpan getFileIoTime()
- Specified by:
getFileIoTimein interfacePerformanceTestResult- Returns:
- Returns the file I/O time.
-
setIoTime
public void setIoTime(TimeSpan ioTime)
- Parameters:
ioTime- The file io time to set.
-
getNumberOfCreatedAnnotations
public int getNumberOfCreatedAnnotations()
- Specified by:
getNumberOfCreatedAnnotationsin 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:
getNumberOfRepeatedRunsin 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
public TimeSpan getOverallTime()
- Specified by:
getOverallTimein interfacePerformanceTestResult- Returns:
- Returns the overall time of the performance run
-
setOverallTime
public void setOverallTime(TimeSpan overallTime)
- Parameters:
overallTime- The overall processing time.
-
getAeProcessingTime
public TimeSpan getAeProcessingTime()
- Specified by:
getAeProcessingTimein interfacePerformanceTestResult- Returns:
- Returns the analysis engine processing time.
-
setProcessingTime
public void setProcessingTime(TimeSpan processingTime)
- Parameters:
processingTime- The analysis engine processing time.
-
isRepeatSingleMode
public boolean isRepeatSingleMode()
- Specified by:
isRepeatSingleModein interfacePerformanceTestResult- Returns:
- Returns the setting of the repeat mode mode.
-
setRepeatSingleMode
public void setRepeatSingleMode(boolean repeatSingleMode)
- Parameters:
repeatSingleMode- The repeat single mode setting
-
getAeDescFilePath
public String getAeDescFilePath()
- Specified by:
getAeDescFilePathin interfacePerformanceTestResult- Returns:
- Returns the analysis engine descriptor file path.
-
setAeDescFilePath
public void setAeDescFilePath(File aeDescFile)
- Parameters:
aeDescFile- The analysis engine descriptor file.
-
getTestFileDirectoryPath
public String getTestFileDirectoryPath()
- Specified by:
getTestFileDirectoryPathin interfacePerformanceTestResult- Returns:
- Returns the test file directory used for the performance run.
-
setTestFileDir
public void setTestFileDir(File testFileDir)
- Parameters:
testFileDir- The test file directory.
-
getAeWarmupTime
public TimeSpan getAeWarmupTime()
- Specified by:
getAeWarmupTimein interfacePerformanceTestResult- Returns:
- Returns the analysis engine warmup time.
-
setWarmupTime
public void setWarmupTime(TimeSpan warmupTime)
- Parameters:
warmupTime- The analysis engine warmup time.
-
isDoAeWarmup
public boolean isDoAeWarmup()
- Specified by:
isDoAeWarmupin interfacePerformanceTestResult- Returns:
- Returns the setting the the analysis engine warmup.
-
setDoWarmup
public void setDoWarmup(boolean doWarmup)
- Parameters:
doWarmup- the doWarmup setting
-
toString
public String toString()
returns a performance report with the current performance results.- Overrides:
toStringin classObject- See Also:
Object.toString()
-
writePerfResultsAsColumn
public void writePerfResultsAsColumn(String level, File file) throws Exception
write performance results as colum.- Specified by:
writePerfResultsAsColumnin interfacePerformanceTestResult- Parameters:
level- Test level name of the performance testfile- Output file where the results are written to- Throws:
Exception- passthru
-
getAeCleanupTime
public TimeSpan getAeCleanupTime()
- Specified by:
getAeCleanupTimein interfacePerformanceTestResult- Returns:
- Returns the analysis engine cleanup time.
-
setCleanupTime
public void setCleanupTime(TimeSpan cleanupTime)
- Parameters:
cleanupTime- the analysis engine cleanup time
-
getDocumentPreparationTime
public TimeSpan getDocumentPreparationTime()
- Specified by:
getDocumentPreparationTimein interfacePerformanceTestResult- Returns:
- Returns the document preparation time.
-
setDocumentPreparationTime
public void setDocumentPreparationTime(TimeSpan documentPreparationTime)
- Parameters:
documentPreparationTime- the document preparation time
-
getProcessedFileSize
public long getProcessedFileSize()
- Specified by:
getProcessedFileSizein interfacePerformanceTestResult- Returns:
- Returns the processed file collection size.
-
setTotalFileSize
public void setTotalFileSize(long collectionFileSize)
- Parameters:
collectionFileSize- the collection file size
-
-