Package org.apache.zookeeper.server
Interface ConnectionMXBean
- 
- All Known Implementing Classes:
 ConnectionBean
public interface ConnectionMXBeanThis MBean represents a client connection. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAvgLatency()Average latency in msString[]getEphemeralNodes()StringgetLastCxid()Last cxid of this connectionlonggetLastLatency()Latency of last response to client on this connection in msStringgetLastOperation()Last operation performed by this connectionStringgetLastResponseTime()Last time server sent a response to client on this connectionStringgetLastZxid()Last zxid of this connectionlonggetMaxLatency()Max latency in mslonggetMinLatency()Min latency in mslonggetOutstandingRequests()longgetPacketsReceived()longgetPacketsSent()StringgetSessionId()intgetSessionTimeout()StringgetSourceIP()StringgetStartedTime()voidresetCounters()Reset countersvoidterminateConnection()Terminate thei client connection.voidterminateSession()Terminate this client session. 
 - 
 
- 
- 
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
 
 
 - 
 
 -