public class NettyServerCnxn extends ServerCnxn
ServerCnxn.CloseRequestException, ServerCnxn.EndOfStreamExceptionWatcher.Event, Watcher.WatcherTypeauthInfo, count, established, lastCxid, lastLatency, lastOp, lastResponseTime, lastZxid, maxLatency, me, minLatency, packetsReceived, packetsSent, totalLatency, zooKeeperSaslServer| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
disableRecv()
Note that both disableRecv() and disableRecvNoWait() are asynchronous in the netty implementation.
|
void |
enableRecv() |
Certificate[] |
getClientCertificateChain() |
int |
getInterestOps() |
long |
getOutstandingRequests()
The number of requests that have been submitted but not yet
responded to.
|
InetSocketAddress |
getRemoteSocketAddress() |
long |
getSessionId() |
int |
getSessionTimeout() |
boolean |
isSecure() |
void |
process(WatchedEvent event) |
void |
sendBuffer(ByteBuffer sendBuffer) |
void |
sendCloseSession()
Send close connection packet to the client.
|
void |
sendResponse(ReplyHeader h,
Record r,
String tag) |
protected ServerStats |
serverStats() |
void |
setClientCertificateChain(Certificate[] chain) |
void |
setSessionId(long sessionId) |
void |
setSessionTimeout(int sessionTimeout) |
addAuthInfo, cleanupWriterSocket, dumpConnectionInfo, getAuthInfo, getAvgLatency, getConnectionInfo, getEstablished, getLastCxid, getLastLatency, getLastOperation, getLastResponseTime, getLastZxid, getMaxLatency, getMinLatency, getPacketsReceived, getPacketsSent, incrOutstandingRequests, incrPacketsReceived, incrPacketsSent, packetReceived, packetSent, removeAuthInfo, resetStats, toString, updateStatsForResponsepublic void close()
public long getSessionId()
getSessionId in class ServerCnxnpublic int getSessionTimeout()
public void process(WatchedEvent event)
process in interface Watcherprocess in class ServerCnxnpublic void sendResponse(ReplyHeader h, Record r, String tag) throws IOException
sendResponse in class ServerCnxnIOExceptionpublic void setSessionId(long sessionId)
public void sendBuffer(ByteBuffer sendBuffer)
public void disableRecv()
public void enableRecv()
public long getOutstandingRequests()
getOutstandingRequests in class ServerCnxnpublic void setSessionTimeout(int sessionTimeout)
public int getInterestOps()
getInterestOps in class ServerCnxnpublic InetSocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class ServerCnxnpublic void sendCloseSession()
protected ServerStats serverStats()
serverStats in class ServerCnxnpublic boolean isSecure()
isSecure in class ServerCnxnpublic Certificate[] getClientCertificateChain()
getClientCertificateChain in class ServerCnxnpublic void setClientCertificateChain(Certificate[] chain)
setClientCertificateChain in class ServerCnxnCopyright © 2008–2019 The Apache Software Foundation. All rights reserved.