Class BufferStats
- java.lang.Object
- 
- org.apache.zookeeper.server.quorum.BufferStats
 
- 
 public class BufferStats extends Object Provides live statistics about Jute buffer usage in term of proposal and client request size.
- 
- 
Field SummaryFields Modifier and Type Field Description static intINIT_VALUE
 - 
Constructor SummaryConstructors Constructor Description BufferStats()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLastBufferSize()Size of the last buffer usage.intgetMaxBufferSize()Size of the largest buffer usage.intgetMinBufferSize()Size of the smallest buffer usage.voidreset()Reset statistics.voidsetLastBufferSize(int value)Updates statistics by setting the last buffer usage size.StringtoString()
 
- 
- 
- 
Field Detail- 
INIT_VALUEpublic static final int INIT_VALUE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getLastBufferSizepublic int getLastBufferSize() Size of the last buffer usage.
 - 
setLastBufferSizepublic void setLastBufferSize(int value) Updates statistics by setting the last buffer usage size.
 - 
getMinBufferSizepublic int getMinBufferSize() Size of the smallest buffer usage.
 - 
getMaxBufferSizepublic int getMaxBufferSize() Size of the largest buffer usage.
 - 
resetpublic void reset() Reset statistics.
 
- 
 
-