org.apache.uima.test.junit_extension
public class PerformanceTestResultImpl extends java.lang.Object implements PerformanceTestResult
Constructor and Description |
---|
PerformanceTestResultImpl() |
Modifier and Type | Method and Description |
---|---|
TimeSpan |
getAeCleanupTime() |
java.lang.String |
getAeDescFilePath() |
TimeSpan |
getAeInitTime() |
TimeSpan |
getAeProcessingTime() |
TimeSpan |
getAeWarmupTime() |
TimeSpan |
getDocumentPreparationTime() |
TimeSpan |
getFileIoTime() |
int |
getNumberOfCreatedAnnotations() |
int |
getNumberOfProcessedCharacters() |
int |
getNumberOfProcessedFiles() |
int |
getNumberOfRepeatedRuns() |
TimeSpan |
getOverallTime() |
long |
getProcessedFileSize() |
java.lang.String |
getTestFileDirectoryPath() |
java.lang.String |
getUIMADatapath() |
boolean |
isDoAeWarmup() |
boolean |
isRepeatSingleMode() |
void |
setAeDescFilePath(java.io.File aeDescFile) |
void |
setCleanupTime(TimeSpan cleanupTime) |
void |
setDatapath(java.lang.String datapath) |
void |
setDocumentPreparationTime(TimeSpan documentPreparationTime) |
void |
setDoWarmup(boolean doWarmup) |
void |
setInitTime(TimeSpan initTime) |
void |
setIoTime(TimeSpan ioTime) |
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(java.io.File testFileDir) |
void |
setTotalFileSize(long collectionFileSize) |
void |
setWarmupTime(TimeSpan warmupTime) |
java.lang.String |
toString()
returns a performance report with the current performance results.
|
void |
writePerfResultsAsColumn(java.lang.String level,
java.io.File file)
write performance results as colum.
|
public int getNumberOfProcessedCharacters()
getNumberOfProcessedCharacters
in interface PerformanceTestResult
public void setNumberOfCharacters(int numberOfCharacters)
numberOfCharacters
- The number of characters.public int getNumberOfProcessedFiles()
getNumberOfProcessedFiles
in interface PerformanceTestResult
public void setNumberOfFiles(int numberOfFiles)
numberOfFiles
- The number of files.public java.lang.String getUIMADatapath()
getUIMADatapath
in interface PerformanceTestResult
public void setDatapath(java.lang.String datapath)
datapath
- The UIMA datapath.public TimeSpan getAeInitTime()
getAeInitTime
in interface PerformanceTestResult
public void setInitTime(TimeSpan initTime)
initTime
- The analysis engine init time.public TimeSpan getFileIoTime()
getFileIoTime
in interface PerformanceTestResult
public void setIoTime(TimeSpan ioTime)
ioTime
- The file io time to set.public int getNumberOfCreatedAnnotations()
getNumberOfCreatedAnnotations
in interface PerformanceTestResult
public void setNumberOfCreatedAnnotations(int numberOfCreatedAnnotations)
numberOfCreatedAnnotations
- The number of created annotations to set.public int getNumberOfRepeatedRuns()
getNumberOfRepeatedRuns
in interface PerformanceTestResult
public void setNumsToRun(int numsToRun)
numsToRun
- The number of repeated runs.public TimeSpan getOverallTime()
getOverallTime
in interface PerformanceTestResult
public void setOverallTime(TimeSpan overallTime)
overallTime
- The overall processing time.public TimeSpan getAeProcessingTime()
getAeProcessingTime
in interface PerformanceTestResult
public void setProcessingTime(TimeSpan processingTime)
processingTime
- The analysis engine processing time.public boolean isRepeatSingleMode()
isRepeatSingleMode
in interface PerformanceTestResult
public void setRepeatSingleMode(boolean repeatSingleMode)
repeatSingleMode
- The repeat single mode settingpublic java.lang.String getAeDescFilePath()
getAeDescFilePath
in interface PerformanceTestResult
public void setAeDescFilePath(java.io.File aeDescFile)
aeDescFile
- The analysis engine descriptor file.public java.lang.String getTestFileDirectoryPath()
getTestFileDirectoryPath
in interface PerformanceTestResult
public void setTestFileDir(java.io.File testFileDir)
testFileDir
- The test file directory.public TimeSpan getAeWarmupTime()
getAeWarmupTime
in interface PerformanceTestResult
public void setWarmupTime(TimeSpan warmupTime)
warmupTime
- The analysis engine warmup time.public boolean isDoAeWarmup()
isDoAeWarmup
in interface PerformanceTestResult
public void setDoWarmup(boolean doWarmup)
doWarmup
- the doWarmup settingpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void writePerfResultsAsColumn(java.lang.String level, java.io.File file) throws java.lang.Exception
writePerfResultsAsColumn
in interface PerformanceTestResult
level
- Test level name of the performance testfile
- Output file where the results are written tojava.lang.Exception
public TimeSpan getAeCleanupTime()
getAeCleanupTime
in interface PerformanceTestResult
public void setCleanupTime(TimeSpan cleanupTime)
cleanupTime
- the analysis engine cleanup timepublic TimeSpan getDocumentPreparationTime()
getDocumentPreparationTime
in interface PerformanceTestResult
public void setDocumentPreparationTime(TimeSpan documentPreparationTime)
documentPreparationTime
- the document preparation timepublic long getProcessedFileSize()
getProcessedFileSize
in interface PerformanceTestResult
public void setTotalFileSize(long collectionFileSize)
collectionFileSize
- the collection file sizeCopyright © 2014. All Rights Reserved.