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 Summary
Modifier and TypeMethodDescriptionstatic HTTPCompressionInfo
Restrieves a statistics bean.getID()
Returns the statistics ID.static Collection
<HTTPCompressionInfo> getInfo()
Returns all registered statistics IDs.long
Returns the total amount of compressed data transferred.int
Returns the number of times this DAO has been called.long
getSize()
Returns the total amount of ucompressed data transferred.int
hashCode()
void
updateRaw
(int size) Updates the amount of data transferred.void
updateTotal
(int size) Updates the amount of data transferred.
-
Method Details
-
get
Restrieves a statistics bean.- Parameters:
id
- the ID- Returns:
- an HTTPCompressionInfo bean
-
getInfo
Returns all registered statistics IDs.- Returns:
- a Collection of HTTPCompressionInfo bean
-
getID
-
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
-