public class NettyServerCnxn extends ServerCnxn
ServerCnxn.CloseRequestException, ServerCnxn.EndOfStreamException
Watcher.Event, Watcher.WatcherType
authInfo, 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, updateStatsForResponse
public void close()
public long getSessionId()
getSessionId
in class ServerCnxn
public int getSessionTimeout()
public void process(WatchedEvent event)
process
in interface Watcher
process
in class ServerCnxn
public void sendResponse(ReplyHeader h, Record r, String tag) throws IOException
sendResponse
in class ServerCnxn
IOException
public void setSessionId(long sessionId)
public void sendBuffer(ByteBuffer sendBuffer)
public void disableRecv()
public void enableRecv()
public long getOutstandingRequests()
getOutstandingRequests
in class ServerCnxn
public void setSessionTimeout(int sessionTimeout)
public int getInterestOps()
getInterestOps
in class ServerCnxn
public InetSocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class ServerCnxn
public void sendCloseSession()
protected ServerStats serverStats()
serverStats
in class ServerCnxn
public boolean isSecure()
isSecure
in class ServerCnxn
public Certificate[] getClientCertificateChain()
getClientCertificateChain
in class ServerCnxn
public void setClientCertificateChain(Certificate[] chain)
setClientCertificateChain
in class ServerCnxn
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.