Class JobServiceBenchTaskResult

  • All Implemented Interfaces:
    TaskResult, alluxio.util.JsonSerializable

    public final class JobServiceBenchTaskResult
    extends java.lang.Object
    implements TaskResult
    The task result for the job service stress tests.
    • Constructor Detail

      • JobServiceBenchTaskResult

        public JobServiceBenchTaskResult()
        Creates an instance.
    • Method Detail

      • merge

        public void merge​(JobServiceBenchTaskResult result)
                   throws java.lang.Exception
        Merges (updates) a task result with this result.
        Parameters:
        result - the task result to merge
        Throws:
        java.lang.Exception
      • aggregateByWorker

        public void aggregateByWorker​(JobServiceBenchTaskResult 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
      • incrementNumSuccess

        public void incrementNumSuccess​(long numSuccess)
        Increments the number of successes by an amount.
        Parameters:
        numSuccess - the amount to increment by
      • setBaseParameters

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

        public void setParameters​(JobServiceBenchParameters parameters)
        Parameters:
        parameters - the parameters
      • getMaxResponseTimeNs

        public long[] getMaxResponseTimeNs()
        Returns:
        the array of max response times (in ns)
      • setMaxResponseTimeNs

        public void setMaxResponseTimeNs​(long[] maxResponseTimeNs)
        Parameters:
        maxResponseTimeNs - the array of max response times (in ns)
      • 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
      • setStatisticsPerMethod

        public void setStatisticsPerMethod​(java.util.Map<java.lang.String,​JobServiceBenchTaskResultStatistics> statisticsPerMethod)
        Parameters:
        statisticsPerMethod - the statistics per method
      • putStatisticsForMethod

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