|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.zookeeper.server.ConnectionBean
public class ConnectionBean
Implementation of connection MBean interface.
| Constructor Summary | |
|---|---|
ConnectionBean(ServerCnxn connection,
ZooKeeperServer zk)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionBean(ServerCnxn connection,
ZooKeeperServer zk)
| Method Detail |
|---|
public String getSessionId()
getSessionId in interface ConnectionMXBeanpublic String getSourceIP()
getSourceIP in interface ConnectionMXBeanpublic String getName()
getName in interface ZKMBeanInfopublic boolean isHidden()
ZKMBeanInfo
isHidden in interface ZKMBeanInfopublic String[] getEphemeralNodes()
getEphemeralNodes in interface ConnectionMXBeanpublic String getStartedTime()
getStartedTime in interface ConnectionMXBeanpublic void terminateSession()
ConnectionMXBean
terminateSession in interface ConnectionMXBeanpublic void terminateConnection()
ConnectionMXBean
terminateConnection in interface ConnectionMXBeanpublic void resetCounters()
ConnectionMXBean
resetCounters in interface ConnectionMXBeanpublic String toString()
toString in class Objectpublic long getOutstandingRequests()
getOutstandingRequests in interface ConnectionMXBeanpublic long getPacketsReceived()
getPacketsReceived in interface ConnectionMXBeanpublic long getPacketsSent()
getPacketsSent in interface ConnectionMXBeanpublic int getSessionTimeout()
getSessionTimeout in interface ConnectionMXBeanpublic long getMinLatency()
ConnectionMXBean
getMinLatency in interface ConnectionMXBeanpublic long getAvgLatency()
ConnectionMXBean
getAvgLatency in interface ConnectionMXBeanpublic long getMaxLatency()
ConnectionMXBean
getMaxLatency in interface ConnectionMXBeanpublic String getLastOperation()
ConnectionMXBean
getLastOperation in interface ConnectionMXBeanpublic String getLastCxid()
ConnectionMXBean
getLastCxid in interface ConnectionMXBeanpublic String getLastZxid()
ConnectionMXBean
getLastZxid in interface ConnectionMXBeanpublic String getLastResponseTime()
ConnectionMXBean
getLastResponseTime in interface ConnectionMXBeanpublic long getLastLatency()
ConnectionMXBean
getLastLatency in interface ConnectionMXBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||