Interface ZooKeeperServerMXBean

    • Method Detail

      • getClientPort

        java.lang.String getClientPort()
        Returns:
        the server socket port number
      • getVersion

        java.lang.String getVersion()
        Returns:
        the zookeeper server version
      • getStartTime

        java.lang.String getStartTime()
        Returns:
        time the server was started
      • getMinRequestLatency

        long getMinRequestLatency()
        Returns:
        min request latency in ms
      • getAvgRequestLatency

        long getAvgRequestLatency()
        Returns:
        average request latency in ms
      • getMaxRequestLatency

        long getMaxRequestLatency()
        Returns:
        max request latency in ms
      • getPacketsReceived

        long getPacketsReceived()
        Returns:
        number of packets received so far
      • getPacketsSent

        long getPacketsSent()
        Returns:
        number of packets sent so far
      • getFsyncThresholdExceedCount

        long getFsyncThresholdExceedCount()
        Returns:
        number of fsync threshold exceeds so far
      • getOutstandingRequests

        long getOutstandingRequests()
        Returns:
        number of outstanding requests.
      • getTickTime

        int getTickTime()
        Current TickTime of server in milliseconds
      • setTickTime

        void setTickTime​(int tickTime)
        Set TickTime of server in milliseconds
      • getMaxClientCnxnsPerHost

        int getMaxClientCnxnsPerHost()
        Current maxClientCnxns allowed from a particular host
      • setMaxClientCnxnsPerHost

        void setMaxClientCnxnsPerHost​(int max)
        Set maxClientCnxns allowed from a particular host
      • getMinSessionTimeout

        int getMinSessionTimeout()
        Current minSessionTimeout of the server in milliseconds
      • setMinSessionTimeout

        void setMinSessionTimeout​(int min)
        Set minSessionTimeout of server in milliseconds
      • getMaxSessionTimeout

        int getMaxSessionTimeout()
        Current maxSessionTimeout of the server in milliseconds
      • setMaxSessionTimeout

        void setMaxSessionTimeout​(int max)
        Set maxSessionTimeout of server in milliseconds
      • resetStatistics

        void resetStatistics()
        Reset packet and latency statistics
      • resetLatency

        void resetLatency()
        Reset min/avg/max latency statistics
      • resetMaxLatency

        void resetMaxLatency()
        Reset max latency statistics only.
      • resetFsyncThresholdExceedCount

        void resetFsyncThresholdExceedCount()
        Reset Fsync Threshold Exceed Count statistics only.
      • getNumAliveConnections

        long getNumAliveConnections()
        Returns:
        number of alive client connections
      • getJuteMaxBufferSize

        int getJuteMaxBufferSize()
        Returns:
        Returns the value of the following config setting: jute.maxbuffer