Class HTTPCompressionInfo

java.lang.Object
org.deltava.beans.stats.HTTPCompressionInfo
All Implemented Interfaces:
Serializable

public class HTTPCompressionInfo extends Object implements Serializable
A bean to store HTTP compression statistics.
Since:
10.3
Version:
10.3
Author:
Luke
See Also:
  • Method Details

    • get

      public static HTTPCompressionInfo get(String id)
      Restrieves a statistics bean.
      Parameters:
      id - the ID
      Returns:
      an HTTPCompressionInfo bean
    • getInfo

      public static Collection<HTTPCompressionInfo> getInfo()
      Returns all registered statistics IDs.
      Returns:
      a Collection of HTTPCompressionInfo bean
    • getID

      public String getID()
      Returns the statistics ID.
      Returns:
      the ID
    • getRawSize

      public long getRawSize()
      Returns the total amount of compressed data transferred.
      Returns:
      the number of compressed bytes
    • getSize

      public long getSize()
      Returns the total amount of ucompressed data transferred.
      Returns:
      the number of ucompressed bytes
    • getRequests

      public int getRequests()
      Returns the number of times this DAO has been called.
      Returns:
      the number of requests
    • updateRaw

      public void updateRaw(int size)
      Updates the amount of data transferred.
      Parameters:
      size - the number of compressed bytes
    • updateTotal

      public void updateTotal(int size)
      Updates the amount of data transferred.
      Parameters:
      size - the number of uncompressed bytes
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object