public class ConnectionBean extends Object implements ConnectionMXBean, ZKMBeanInfo
Constructor and Description |
---|
ConnectionBean(ServerCnxn connection,
ZooKeeperServer zk) |
Modifier and Type | Method and Description |
---|---|
long |
getAvgLatency()
Average latency in ms
|
String[] |
getEphemeralNodes() |
String |
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
|
String |
getLastResponseTime()
Last time server sent a response to client on this connection
|
String |
getLastZxid()
Last zxid of this connection
|
long |
getMaxLatency()
Max latency in ms
|
long |
getMinLatency()
Min latency in ms
|
String |
getName() |
long |
getOutstandingRequests() |
long |
getPacketsReceived() |
long |
getPacketsSent() |
String |
getSessionId() |
int |
getSessionTimeout() |
String |
getSourceIP() |
String |
getStartedTime() |
boolean |
isHidden()
If isHidden returns true, the MBean won't be registered with MBean server,
and thus won't be available for management tools.
|
void |
resetCounters()
Reset counters
|
void |
terminateConnection()
Terminate thei client connection.
|
void |
terminateSession()
Terminate this client session.
|
String |
toString() |
public ConnectionBean(ServerCnxn connection, ZooKeeperServer zk)
public String getSessionId()
getSessionId
in interface ConnectionMXBean
public String getSourceIP()
getSourceIP
in interface ConnectionMXBean
public String getName()
getName
in interface ZKMBeanInfo
public boolean isHidden()
ZKMBeanInfo
isHidden
in interface ZKMBeanInfo
public String[] getEphemeralNodes()
getEphemeralNodes
in interface ConnectionMXBean
public String getStartedTime()
getStartedTime
in interface ConnectionMXBean
public void terminateSession()
ConnectionMXBean
terminateSession
in interface ConnectionMXBean
public void terminateConnection()
ConnectionMXBean
terminateConnection
in interface ConnectionMXBean
public void resetCounters()
ConnectionMXBean
resetCounters
in interface ConnectionMXBean
public long getOutstandingRequests()
getOutstandingRequests
in interface ConnectionMXBean
public long getPacketsReceived()
getPacketsReceived
in interface ConnectionMXBean
public long getPacketsSent()
getPacketsSent
in interface ConnectionMXBean
public int getSessionTimeout()
getSessionTimeout
in interface ConnectionMXBean
public long getMinLatency()
ConnectionMXBean
getMinLatency
in interface ConnectionMXBean
public long getAvgLatency()
ConnectionMXBean
getAvgLatency
in interface ConnectionMXBean
public long getMaxLatency()
ConnectionMXBean
getMaxLatency
in interface ConnectionMXBean
public String getLastOperation()
ConnectionMXBean
getLastOperation
in interface ConnectionMXBean
public String getLastCxid()
ConnectionMXBean
getLastCxid
in interface ConnectionMXBean
public String getLastZxid()
ConnectionMXBean
getLastZxid
in interface ConnectionMXBean
public String getLastResponseTime()
ConnectionMXBean
getLastResponseTime
in interface ConnectionMXBean
public long getLastLatency()
ConnectionMXBean
getLastLatency
in interface ConnectionMXBean
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.