Class HTTPCompressionInfo
java.lang.Object
org.deltava.beans.stats.HTTPCompressionInfo
- All Implemented Interfaces:
- Serializable
A bean to store HTTP compression statistics.
- Since:
- 10.3
- Version:
- 10.3
- Author:
- Luke
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic HTTPCompressionInfoRestrieves a statistics bean.getID()Returns the statistics ID.static Collection<HTTPCompressionInfo> getInfo()Returns all registered statistics IDs.longReturns the total amount of compressed data transferred.intReturns the number of times this DAO has been called.longgetSize()Returns the total amount of ucompressed data transferred.inthashCode()voidupdateRaw(int size) Updates the amount of data transferred.voidupdateTotal(int size) Updates the amount of data transferred.
- 
Method Details- 
getRestrieves a statistics bean.- Parameters:
- id- the ID
- Returns:
- an HTTPCompressionInfo bean
 
- 
getInfoReturns all registered statistics IDs.- Returns:
- a Collection of HTTPCompressionInfo bean
 
- 
getID
- 
getRawSizepublic long getRawSize()Returns the total amount of compressed data transferred.- Returns:
- the number of compressed bytes
 
- 
getSizepublic long getSize()Returns the total amount of ucompressed data transferred.- Returns:
- the number of ucompressed bytes
 
- 
getRequestspublic int getRequests()Returns the number of times this DAO has been called.- Returns:
- the number of requests
 
- 
updateRawpublic void updateRaw(int size) Updates the amount of data transferred.- Parameters:
- size- the number of compressed bytes
 
- 
updateTotalpublic void updateTotal(int size) Updates the amount of data transferred.- Parameters:
- size- the number of uncompressed bytes
 
- 
hashCode
 
-