Class MasterBenchTaskResultBase<P extends MasterBenchBaseParameters>

    • Field Detail

      • mRecordStartMs

        protected long mRecordStartMs
      • mEndMs

        protected long mEndMs
      • mDurationMs

        protected long mDurationMs
      • mErrors

        protected java.util.List<java.lang.String> mErrors
    • Constructor Detail

      • MasterBenchTaskResultBase

        public MasterBenchTaskResultBase()
        Creates an instance.
    • Method Detail

      • merge

        public void merge​(MasterBenchTaskResultBase<P> result)
                   throws java.lang.Exception
        Merges (updates) a task result with this result.
        Parameters:
        result - the task result to merge
        Throws:
        java.lang.Exception
      • putStatisticsForMethod

        public abstract void putStatisticsForMethod​(java.lang.String method,
                                                    MasterBenchTaskResultStatistics statistics)
        Parameters:
        method - the name of the method to insert statistics for
        statistics - the statistics for the method
      • aggregateByWorker

        public void aggregateByWorker​(MasterBenchTaskResultBase<P> result)
                               throws java.lang.Exception
        Merges (updates) a task result with this result except the error information.
        Parameters:
        result - the task result to merge
        Throws:
        java.lang.Exception
      • getDurationMs

        public long getDurationMs()
        Returns:
        the duration (in ms)
      • setDurationMs

        public void setDurationMs​(long durationMs)
        Parameters:
        durationMs - the duration (in ms)
      • setBaseParameters

        public void setBaseParameters​(BaseParameters baseParameters)
        Parameters:
        baseParameters - the base parameters
      • getParameters

        public P getParameters()
        Returns:
        the parameters
      • setParameters

        public void setParameters​(P parameters)
        Parameters:
        parameters - the parameters
      • getRecordStartMs

        public long getRecordStartMs()
        Returns:
        the start time (in ms)
      • setRecordStartMs

        public void setRecordStartMs​(long recordStartMs)
        Parameters:
        recordStartMs - the start time (in ms)
      • getEndMs

        public long getEndMs()
        Returns:
        the end time (in ms)
      • setEndMs

        public void setEndMs​(long endMs)
        Parameters:
        endMs - the end time (in ms)
      • getErrors

        public java.util.List<java.lang.String> getErrors()
        Specified by:
        getErrors in interface TaskResult
        Returns:
        the list of errors in the result
      • setErrors

        public void setErrors​(java.util.List<java.lang.String> errors)
        Parameters:
        errors - the list of errors
      • addErrorMessage

        public void addErrorMessage​(java.lang.String errMesssage)
        Parameters:
        errMesssage - the error message to add