Class PerformanceTestResultImpl

  • All Implemented Interfaces:
    PerformanceTestResult

    public class PerformanceTestResultImpl
    extends java.lang.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.
      • getUIMADatapath

        public java.lang.String getUIMADatapath()
        Specified by:
        getUIMADatapath in interface PerformanceTestResult
        Returns:
        Returns the UIMA datapath setting used for the performance test.
      • setDatapath

        public void setDatapath​(java.lang.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
      • getAeDescFilePath

        public java.lang.String getAeDescFilePath()
        Specified by:
        getAeDescFilePath in interface PerformanceTestResult
        Returns:
        Returns the analysis engine descriptor file path.
      • setAeDescFilePath

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

        public java.lang.String getTestFileDirectoryPath()
        Specified by:
        getTestFileDirectoryPath in interface PerformanceTestResult
        Returns:
        Returns the test file directory used for the performance run.
      • setTestFileDir

        public void setTestFileDir​(java.io.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
      • toString

        public java.lang.String toString()
        returns a performance report with the current performance results.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • writePerfResultsAsColumn

        public void writePerfResultsAsColumn​(java.lang.String level,
                                             java.io.File file)
                                      throws java.lang.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:
        java.lang.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