Class HTTPTotals

java.lang.Object
org.deltava.beans.stats.HTTPTotals
All Implemented Interfaces:
Serializable, Cacheable

public class HTTPTotals extends Object implements Cacheable
A class to store HTTP aggregate statistics.
Since:
1.0
Version:
7.0
Author:
Luke
See Also:
  • Constructor Details

    • HTTPTotals

      public HTTPTotals(int totalHits, int homeHits, long totalBandwidth)
      Creates a new HTTP totals bean.
      Parameters:
      totalHits - the number of request
      homeHits - the number of home page requests
      totalBandwidth - 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

      public Object cacheKey()
      Returns the cache key - the class.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object