org.apache.zookeeper.server
Interface ConnectionMXBean

All Known Implementing Classes:
ConnectionBean

public interface ConnectionMXBean

This MBean represents a client connection.


Method Summary
 String[] getEphemeralNodes()
           
 long getOutstandingRequests()
           
 long getPacketsReceived()
           
 long getPacketsSent()
           
 String getSessionId()
           
 int getSessionTimeout()
           
 String getSourceIP()
           
 String getStartedTime()
           
 void terminateConnection()
          Terminate thei client connection.
 void terminateSession()
          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.