com.jivesoftware.base.util.compression
Class JiveCompressionFilterStats
java.lang.Object
com.jivesoftware.base.util.compression.JiveCompressionFilterStats
- All Implemented Interfaces:
- java.io.Serializable
public final class JiveCompressionFilterStats
- extends java.lang.Object
- implements java.io.Serializable
This class provides runtime statistics on the performance of
JiveCompressionFilter
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getNumResponsesCompressed
public int getNumResponsesCompressed()
- Returns:
- the number of responses which
JiveCompressionFilter
has compressed.
incrementNumResponsesCompressed
public void incrementNumResponsesCompressed()
getTotalResponsesNotCompressed
public int getTotalResponsesNotCompressed()
- Returns:
- the number of responses which
JiveCompressionFilter
has processed but not compressed for some
reason (compression not supported by the browser, for example).
incrementTotalResponsesNotCompressed
public void incrementTotalResponsesNotCompressed()
getResponseInputBytes
public long getResponseInputBytes()
- Returns:
- total number of bytes written to the
JiveCompressionFilter
in responses.
getResponseCompressedBytes
public long getResponseCompressedBytes()
- Returns:
- total number of compressed bytes written by the
JiveCompressionFilter
to the client
in responses.
getResponseAverageCompressionRatio
public double getResponseAverageCompressionRatio()
- Returns:
- average compression ratio (input bytes / compressed bytes) in responses,
or 0 if nothing has yet been compressed. Note that this is (typically) greater than 1, not less than 1.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- a summary of the stats in String form
Copyright © 1999-2006 Jive Software.