Package io.hyperfoil.http.statistics
Class HttpStats
- java.lang.Object
-
- io.hyperfoil.http.statistics.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
-
-
Field Summary
Fields Modifier and Type Field Description intcacheHitsstatic java.lang.StringHTTPintstatus_2xxintstatus_3xxintstatus_4xxintstatus_5xxintstatus_other
-
Constructor Summary
Constructors Constructor Description HttpStats()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(io.hyperfoil.api.statistics.StatsExtension other)static voidaddCacheHit(io.hyperfoil.api.statistics.Statistics statistics, long timestamp)static voidaddStatus(io.hyperfoil.api.statistics.Statistics statistics, long timestamp, int status)java.lang.StringbyHeader(java.lang.String header)HttpStatsclone()static HttpStatsget(io.hyperfoil.api.statistics.StatisticsSnapshot snapshot)static HttpStatsget(io.hyperfoil.api.statistics.StatisticsSummary summary)java.lang.String[]headers()booleanisNull()voidreset()int[]statuses()voidsubtract(io.hyperfoil.api.statistics.StatsExtension other)java.lang.StringtoString()
-
-
-
Field Detail
-
HTTP
public static final java.lang.String HTTP
- See Also:
- Constant Field Values
-
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
-
-
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:
resetin interfaceio.hyperfoil.api.statistics.StatsExtension
-
clone
public HttpStats clone()
- Specified by:
clonein interfaceio.hyperfoil.api.statistics.StatsExtension- Overrides:
clonein classjava.lang.Object
-
headers
public java.lang.String[] headers()
- Specified by:
headersin interfaceio.hyperfoil.api.statistics.StatsExtension
-
byHeader
public java.lang.String byHeader(java.lang.String header)
- Specified by:
byHeaderin interfaceio.hyperfoil.api.statistics.StatsExtension
-
isNull
public boolean isNull()
- Specified by:
isNullin interfaceio.hyperfoil.api.statistics.StatsExtension
-
add
public void add(io.hyperfoil.api.statistics.StatsExtension other)
- Specified by:
addin interfaceio.hyperfoil.api.statistics.StatsExtension
-
subtract
public void subtract(io.hyperfoil.api.statistics.StatsExtension other)
- Specified by:
subtractin interfaceio.hyperfoil.api.statistics.StatsExtension
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-