org.apache.zookeeper.server
Interface ServerCnxn
- All Superinterfaces:
- Watcher
- All Known Implementing Classes:
- NIOServerCnxn
public interface ServerCnxn
- extends Watcher
Interface to a Server connection - represents a connection from a client
to the server.
Nested Class Summary |
static interface |
ServerCnxn.Stats
Statistics on the ServerCnxn |
Field Summary |
static java.lang.Object |
me
|
me
static final java.lang.Object me
getSessionTimeout
int getSessionTimeout()
sendResponse
void sendResponse(ReplyHeader h,
org.apache.jute.Record r,
java.lang.String tag)
throws java.io.IOException
- Throws:
java.io.IOException
sendCloseSession
void sendCloseSession()
finishSessionInit
void finishSessionInit(boolean valid)
process
void process(WatchedEvent event)
- Specified by:
process
in interface Watcher
getSessionId
long getSessionId()
setSessionId
void setSessionId(long sessionId)
getAuthInfo
java.util.ArrayList<Id> getAuthInfo()
getRemoteAddress
java.net.InetSocketAddress getRemoteAddress()
getStats
ServerCnxn.Stats getStats()
Copyright © 2012 The Apache Software Foundation