Package org.apache.zookeeper.server
Class ServerStats
java.lang.Object
org.apache.zookeeper.server.ServerStats
Basic Server Statistics
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdoublelonglonglonglonglonglonglonglongintThe number of client connections alive to this serverlonglonglonglongvoidvoidvoidvoidvoidvoidbooleanvoidreset()voidvoidvoidvoidvoidvoidvoidtoString()voidupdateClientResponseSize(int size) voidupdateLatency(Request request, long currentTime) Update request statistic.
-
Constructor Details
-
ServerStats
-
-
Method Details
-
getMinLatency
public long getMinLatency() -
getAvgLatency
public double getAvgLatency() -
getMaxLatency
public long getMaxLatency() -
getOutstandingRequests
public long getOutstandingRequests() -
getLastProcessedZxid
public long getLastProcessedZxid() -
getDataDirSize
public long getDataDirSize() -
getLogDirSize
public long getLogDirSize() -
getPacketsReceived
public long getPacketsReceived() -
getPacketsSent
public long getPacketsSent() -
getServerState
-
getNumAliveClientConnections
public int getNumAliveClientConnections()The number of client connections alive to this server -
getUptime
public long getUptime() -
isProviderNull
public boolean isProviderNull() -
toString
-
updateLatency
Update request statistic. This should only be called from a request that originated from that machine. -
resetLatency
public void resetLatency() -
resetMaxLatency
public void resetMaxLatency() -
incrementPacketsReceived
public void incrementPacketsReceived() -
incrementPacketsSent
public void incrementPacketsSent() -
resetRequestCounters
public void resetRequestCounters() -
getFsyncThresholdExceedCount
public long getFsyncThresholdExceedCount() -
incrementFsyncThresholdExceedCount
public void incrementFsyncThresholdExceedCount() -
resetFsyncThresholdExceedCount
public void resetFsyncThresholdExceedCount() -
getNonMTLSLocalConnCount
public long getNonMTLSLocalConnCount() -
incrementNonMTLSLocalConnCount
public void incrementNonMTLSLocalConnCount() -
resetNonMTLSLocalConnCount
public void resetNonMTLSLocalConnCount() -
getNonMTLSRemoteConnCount
public long getNonMTLSRemoteConnCount() -
incrementNonMTLSRemoteConnCount
public void incrementNonMTLSRemoteConnCount() -
resetNonMTLSRemoteConnCount
public void resetNonMTLSRemoteConnCount() -
getAuthFailedCount
public long getAuthFailedCount() -
incrementAuthFailedCount
public void incrementAuthFailedCount() -
resetAuthFailedCount
public void resetAuthFailedCount() -
reset
public void reset() -
updateClientResponseSize
public void updateClientResponseSize(int size) -
getClientResponseStats
-