public class NIOServerCnxn extends java.lang.Object implements Watcher, ServerCnxn
| Modifier and Type | Class and Description |
|---|---|
static class |
NIOServerCnxn.Factory |
ServerCnxn.StatsWatcher.Eventme| Constructor and Description |
|---|
NIOServerCnxn(ZooKeeperServer zk,
java.nio.channels.SocketChannel sock,
java.nio.channels.SelectionKey sk,
NIOServerCnxn.Factory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
disableRecv() |
void |
enableRecv() |
void |
finishSessionInit(boolean valid) |
java.util.ArrayList<Id> |
getAuthInfo() |
java.net.InetSocketAddress |
getRemoteAddress() |
long |
getSessionId() |
int |
getSessionTimeout() |
ServerCnxn.Stats |
getStats() |
void |
process(WatchedEvent event) |
void |
sendCloseSession() |
void |
sendResponse(ReplyHeader h,
org.apache.jute.Record r,
java.lang.String tag) |
void |
setSessionId(long sessionId) |
java.lang.String |
toString() |
public NIOServerCnxn(ZooKeeperServer zk, java.nio.channels.SocketChannel sock, java.nio.channels.SelectionKey sk, NIOServerCnxn.Factory factory) throws java.io.IOException
java.io.IOExceptionpublic void sendCloseSession()
sendCloseSession in interface ServerCnxnpublic void disableRecv()
public void enableRecv()
public int getSessionTimeout()
getSessionTimeout in interface ServerCnxnpublic java.lang.String toString()
toString in class java.lang.Objectpublic void close()
public void sendResponse(ReplyHeader h, org.apache.jute.Record r, java.lang.String tag)
sendResponse in interface ServerCnxnpublic void process(WatchedEvent event)
process in interface ServerCnxnprocess in interface Watcherpublic void finishSessionInit(boolean valid)
finishSessionInit in interface ServerCnxnpublic long getSessionId()
getSessionId in interface ServerCnxnpublic void setSessionId(long sessionId)
setSessionId in interface ServerCnxnpublic java.util.ArrayList<Id> getAuthInfo()
getAuthInfo in interface ServerCnxnpublic java.net.InetSocketAddress getRemoteAddress()
getRemoteAddress in interface ServerCnxnpublic ServerCnxn.Stats getStats()
getStats in interface ServerCnxnCopyright © 2016 The Apache Software Foundation