Class HttpStats

  • All Implemented Interfaces:
    io.hyperfoil.api.statistics.StatsExtension, java.io.Serializable, java.lang.Cloneable

    @MetaInfServices(io.hyperfoil.api.statistics.StatsExtension.class)
    public class HttpStats
    extends java.lang.Object
    implements io.hyperfoil.api.statistics.StatsExtension
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpStats()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(io.hyperfoil.api.statistics.StatsExtension other)  
      static void addCacheHit​(io.hyperfoil.api.statistics.Statistics statistics, long timestamp)  
      static void addStatus​(io.hyperfoil.api.statistics.Statistics statistics, long timestamp, int status)  
      java.lang.String byHeader​(java.lang.String header)  
      HttpStats clone()  
      static HttpStats get​(io.hyperfoil.api.statistics.StatisticsSnapshot snapshot)  
      static HttpStats get​(io.hyperfoil.api.statistics.StatisticsSummary summary)  
      java.lang.String[] headers()  
      boolean isNull()  
      void reset()  
      int[] statuses()  
      void subtract​(io.hyperfoil.api.statistics.StatsExtension other)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • status_2xx

        public int status_2xx
      • status_3xx

        public int status_3xx
      • status_4xx

        public int status_4xx
      • status_5xx

        public int status_5xx
      • status_other

        public int status_other
      • cacheHits

        public int cacheHits
    • Constructor Detail

      • HttpStats

        public HttpStats()
    • Method Detail

      • addStatus

        public static void addStatus​(io.hyperfoil.api.statistics.Statistics statistics,
                                     long timestamp,
                                     int status)
      • addCacheHit

        public static void addCacheHit​(io.hyperfoil.api.statistics.Statistics statistics,
                                       long timestamp)
      • get

        public static HttpStats get​(io.hyperfoil.api.statistics.StatisticsSnapshot snapshot)
      • get

        public static HttpStats get​(io.hyperfoil.api.statistics.StatisticsSummary summary)
      • statuses

        public int[] statuses()
      • reset

        public void reset()
        Specified by:
        reset in interface io.hyperfoil.api.statistics.StatsExtension
      • clone

        public HttpStats clone()
        Specified by:
        clone in interface io.hyperfoil.api.statistics.StatsExtension
        Overrides:
        clone in class java.lang.Object
      • headers

        public java.lang.String[] headers()
        Specified by:
        headers in interface io.hyperfoil.api.statistics.StatsExtension
      • byHeader

        public java.lang.String byHeader​(java.lang.String header)
        Specified by:
        byHeader in interface io.hyperfoil.api.statistics.StatsExtension
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface io.hyperfoil.api.statistics.StatsExtension
      • add

        public void add​(io.hyperfoil.api.statistics.StatsExtension other)
        Specified by:
        add in interface io.hyperfoil.api.statistics.StatsExtension
      • subtract

        public void subtract​(io.hyperfoil.api.statistics.StatsExtension other)
        Specified by:
        subtract in interface io.hyperfoil.api.statistics.StatsExtension
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object