Package org.apache.zookeeper.server
Class ServerStats
- java.lang.Object
-
- org.apache.zookeeper.server.ServerStats
-
public class ServerStats extends java.lang.ObjectBasic Server Statistics
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServerStats.Provider
-
Constructor Summary
Constructors Constructor Description ServerStats(ServerStats.Provider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAvgLatency()longgetFsyncThresholdExceedCount()longgetLastProcessedZxid()longgetMaxLatency()longgetMinLatency()intgetNumAliveClientConnections()The number of client connections alive to this serverlonggetOutstandingRequests()longgetPacketsReceived()longgetPacketsSent()java.lang.StringgetServerState()voidincrementFsyncThresholdExceedCount()voidincrementPacketsReceived()voidincrementPacketsSent()voidreset()voidresetFsyncThresholdExceedCount()voidresetLatency()voidresetMaxLatency()voidresetRequestCounters()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ServerStats
public ServerStats(ServerStats.Provider provider)
-
-
Method Detail
-
getMinLatency
public long getMinLatency()
-
getAvgLatency
public long getAvgLatency()
-
getMaxLatency
public long getMaxLatency()
-
getOutstandingRequests
public long getOutstandingRequests()
-
getLastProcessedZxid
public long getLastProcessedZxid()
-
getPacketsReceived
public long getPacketsReceived()
-
getPacketsSent
public long getPacketsSent()
-
getServerState
public java.lang.String getServerState()
-
getNumAliveClientConnections
public int getNumAliveClientConnections()
The number of client connections alive to this server
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getFsyncThresholdExceedCount
public long getFsyncThresholdExceedCount()
-
incrementFsyncThresholdExceedCount
public void incrementFsyncThresholdExceedCount()
-
resetFsyncThresholdExceedCount
public void resetFsyncThresholdExceedCount()
-
resetLatency
public void resetLatency()
-
resetMaxLatency
public void resetMaxLatency()
-
incrementPacketsReceived
public void incrementPacketsReceived()
-
incrementPacketsSent
public void incrementPacketsSent()
-
resetRequestCounters
public void resetRequestCounters()
-
reset
public void reset()
-
-