Class ServerStats


  • public class ServerStats
    extends Object
    Basic Server Statistics
    • Method Detail

      • 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

        public String getServerState()
      • getNumAliveClientConnections

        public int getNumAliveClientConnections()
        The number of client connections alive to this server
      • getUptime

        public long getUptime()
      • isProviderNull

        public boolean isProviderNull()
      • updateLatency

        public void updateLatency​(Request request,
                                  long currentTime)
        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

        public BufferStats getClientResponseStats()