Package org.apache.zookeeper.server
Class ServerStats
- java.lang.Object
-
- org.apache.zookeeper.server.ServerStats
-
public class ServerStats extends java.lang.Object
Basic Server Statistics
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServerStats.Provider
-
Constructor Summary
Constructors Constructor Description ServerStats(ServerStats.Provider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAvgLatency()
long
getFsyncThresholdExceedCount()
long
getLastProcessedZxid()
long
getMaxLatency()
long
getMinLatency()
int
getNumAliveClientConnections()
The number of client connections alive to this serverlong
getOutstandingRequests()
long
getPacketsReceived()
long
getPacketsSent()
java.lang.String
getServerState()
void
incrementFsyncThresholdExceedCount()
void
incrementPacketsReceived()
void
incrementPacketsSent()
void
reset()
void
resetFsyncThresholdExceedCount()
void
resetLatency()
void
resetMaxLatency()
void
resetRequestCounters()
java.lang.String
toString()
-
-
-
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:
toString
in 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()
-
-