Class MasterBenchTaskResultStatistics


  • public class MasterBenchTaskResultStatistics
    extends java.lang.Object
    Statistics class that is used in MasterBenchTaskResult.
    • Field Detail

      • mNumSuccess

        public long mNumSuccess
      • mResponseTimeNsRaw

        public byte[] mResponseTimeNsRaw
      • mMaxResponseTimeNs

        public long[] mMaxResponseTimeNs
    • Constructor Detail

      • MasterBenchTaskResultStatistics

        public MasterBenchTaskResultStatistics()
        Creates an instance.
    • Method Detail

      • merge

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

        public void encodeResponseTimeNsRaw​(org.HdrHistogram.Histogram responseTimeNs)
        Encodes the histogram into the internal byte array.
        Parameters:
        responseTimeNs - the histogram (in ns)
      • toMasterBenchSummaryStatistics

        public SummaryStatistics toMasterBenchSummaryStatistics()
                                                         throws java.util.zip.DataFormatException
        Converts this class to SummaryStatistics.
        Returns:
        new SummaryStatistics
        Throws:
        java.util.zip.DataFormatException - if histogram decoding from compressed byte buffer fails