Class 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 Detail

      • PerformanceTestResultImpl

        public PerformanceTestResultImpl()
    • Method Detail

      • setNumberOfCharacters

        public void setNumberOfCharacters​(int numberOfCharacters)
        Parameters:
        numberOfCharacters - The number of characters.
      • setNumberOfFiles

        public void setNumberOfFiles​(int numberOfFiles)
        Parameters:
        numberOfFiles - The number of files.
      • setDatapath

        public void setDatapath​(String datapath)
        Parameters:
        datapath - The UIMA datapath.
      • setInitTime

        public void setInitTime​(TimeSpan initTime)
        Parameters:
        initTime - The analysis engine init time.
      • setIoTime

        public void setIoTime​(TimeSpan ioTime)
        Parameters:
        ioTime - The file io time to set.
      • setNumberOfCreatedAnnotations

        public void setNumberOfCreatedAnnotations​(int numberOfCreatedAnnotations)
        Parameters:
        numberOfCreatedAnnotations - The number of created annotations to set.
      • setNumsToRun

        public void setNumsToRun​(int numsToRun)
        Parameters:
        numsToRun - The number of repeated runs.
      • setOverallTime

        public void setOverallTime​(TimeSpan overallTime)
        Parameters:
        overallTime - The overall processing time.
      • setProcessingTime

        public void setProcessingTime​(TimeSpan processingTime)
        Parameters:
        processingTime - The analysis engine processing time.
      • setRepeatSingleMode

        public void setRepeatSingleMode​(boolean repeatSingleMode)
        Parameters:
        repeatSingleMode - The repeat single mode setting
      • setAeDescFilePath

        public void setAeDescFilePath​(File aeDescFile)
        Parameters:
        aeDescFile - The analysis engine descriptor file.
      • setTestFileDir

        public void setTestFileDir​(File testFileDir)
        Parameters:
        testFileDir - The test file directory.
      • setWarmupTime

        public void setWarmupTime​(TimeSpan warmupTime)
        Parameters:
        warmupTime - The analysis engine warmup time.
      • isDoAeWarmup

        public boolean isDoAeWarmup()
        Specified by:
        isDoAeWarmup in interface PerformanceTestResult
        Returns:
        Returns the setting the the analysis engine warmup.
      • setDoWarmup

        public void setDoWarmup​(boolean doWarmup)
        Parameters:
        doWarmup - the doWarmup setting
      • writePerfResultsAsColumn

        public void writePerfResultsAsColumn​(String level,
                                             File file)
                                      throws Exception
        write performance results as colum.
        Specified by:
        writePerfResultsAsColumn in interface PerformanceTestResult
        Parameters:
        level - Test level name of the performance test
        file - Output file where the results are written to
        Throws:
        Exception - passthru
      • setCleanupTime

        public void setCleanupTime​(TimeSpan cleanupTime)
        Parameters:
        cleanupTime - the analysis engine cleanup time
      • setDocumentPreparationTime

        public void setDocumentPreparationTime​(TimeSpan documentPreparationTime)
        Parameters:
        documentPreparationTime - the document preparation time
      • setTotalFileSize

        public void setTotalFileSize​(long collectionFileSize)
        Parameters:
        collectionFileSize - the collection file size