org.apache.zookeeper.server
Interface ServerCnxn.Stats

Enclosing interface:
ServerCnxn

public static interface ServerCnxn.Stats

Statistics on the ServerCnxn


Method Summary
 long getAvgLatency()
          Average latency in ms
 Date getEstablished()
          Date/time the connection was established
 long getLastCxid()
          Last cxid of this connection
 long getLastLatency()
          Latency of last response to client on this connection in ms
 String getLastOperation()
          Last operation performed by this connection
 long getLastResponseTime()
          Last time server sent a response to client on this connection
 long getLastZxid()
          Last zxid of this connection
 long getMaxLatency()
          Max latency in ms
 long getMinLatency()
          Min latency in ms
 long getOutstandingRequests()
          The number of requests that have been submitted but not yet responded to.
 long getPacketsReceived()
          Number of packets received
 long getPacketsSent()
          Number of packets sent (incl notifications)
 void reset()
          Reset counters
 

Method Detail

getEstablished

Date getEstablished()
Date/time the connection was established

Since:
3.3.0

getOutstandingRequests

long getOutstandingRequests()
The number of requests that have been submitted but not yet responded to.


getPacketsReceived

long getPacketsReceived()
Number of packets received


getPacketsSent

long getPacketsSent()
Number of packets sent (incl notifications)


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

long getLastCxid()
Last cxid of this connection

Since:
3.3.0

getLastZxid

long getLastZxid()
Last zxid of this connection

Since:
3.3.0

getLastResponseTime

long 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

reset

void reset()
Reset counters

Since:
3.3.0


Copyright © 2012 The Apache Software Foundation