Class BufferStats
java.lang.Object
org.apache.zookeeper.server.quorum.BufferStats
Provides live statistics about Jute buffer usage in term of proposal and client request size.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Size of the last buffer usage.int
Size of the largest buffer usage.int
Size of the smallest buffer usage.void
reset()
Reset statistics.void
setLastBufferSize
(int value) Updates statistics by setting the last buffer usage size.toString()
-
Field Details
-
INIT_VALUE
public static final int INIT_VALUE- See Also:
-
-
Constructor Details
-
BufferStats
public BufferStats()
-
-
Method Details
-
getLastBufferSize
public int getLastBufferSize()Size of the last buffer usage. -
setLastBufferSize
public void setLastBufferSize(int value) Updates statistics by setting the last buffer usage size. -
getMinBufferSize
public int getMinBufferSize()Size of the smallest buffer usage. -
getMaxBufferSize
public int getMaxBufferSize()Size of the largest buffer usage. -
reset
public void reset()Reset statistics. -
toString
-