Class HTTPTotals
java.lang.Object
org.deltava.beans.stats.HTTPTotals
- All Implemented Interfaces:
Serializable
,Cacheable
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPTotals
(int totalHits, int homeHits, long totalBandwidth) Creates a new HTTP totals bean. -
Method Summary
-
Constructor Details
-
HTTPTotals
public HTTPTotals(int totalHits, int homeHits, long totalBandwidth) Creates a new HTTP totals bean.- Parameters:
totalHits
- the number of requesthomeHits
- the number of home page requeststotalBandwidth
- the number of bytes served
-
-
Method Details
-
getHits
public int getHits()Returns the total number of requests.- Returns:
- the number of requests
-
getHomeHits
public int getHomeHits()Returns the total number of home page requests.- Returns:
- the number of requests
-
getBytes
public long getBytes()Returns the total bandwidth used.- Returns:
- the number of bytes served.
-
cacheKey
-