Interface ConnectionMXBean

  • All Known Implementing Classes:
    ConnectionBean

    public interface ConnectionMXBean
    This MBean represents a client connection.
    • Method Detail

      • getSourceIP

        String getSourceIP()
        Returns:
        source (client) IP address
      • getSessionId

        String getSessionId()
        Returns:
        client's session id
      • getStartedTime

        String getStartedTime()
        Returns:
        time the connection was started
      • getEphemeralNodes

        String[] getEphemeralNodes()
        Returns:
        number of ephemeral nodes owned by this connection
      • getPacketsReceived

        long getPacketsReceived()
        Returns:
        packets received from this client
      • getPacketsSent

        long getPacketsSent()
        Returns:
        number of packets sent to this client
      • getOutstandingRequests

        long getOutstandingRequests()
        Returns:
        number of requets being processed
      • getSessionTimeout

        int getSessionTimeout()
        Returns:
        session timeout in ms
      • terminateSession

        void terminateSession()
        Terminate this client session. The client will reconnect with a different session id.
      • terminateConnection

        void terminateConnection()
        Terminate thei client connection. The client will immediately attempt to reconnect with the same session id.
      • getMinLatency

        long getMinLatency()
        Min latency in ms
        Since:
        3.3.0
      • getAvgLatency

        long getAvgLatency()
        Average latency in ms
        Since:
        3.3.0
      • getMaxLatency

        long getMaxLatency()
        Max latency in ms
        Since:
        3.3.0
      • getLastOperation

        String getLastOperation()
        Last operation performed by this connection
        Since:
        3.3.0
      • getLastCxid

        String getLastCxid()
        Last cxid of this connection
        Since:
        3.3.0
      • getLastZxid

        String getLastZxid()
        Last zxid of this connection
        Since:
        3.3.0
      • getLastResponseTime

        String getLastResponseTime()
        Last time server sent a response to client on this connection
        Since:
        3.3.0
      • getLastLatency

        long getLastLatency()
        Latency of last response to client on this connection in ms
        Since:
        3.3.0
      • resetCounters

        void resetCounters()
        Reset counters
        Since:
        3.3.0