public class NettyServerCnxn extends ServerCnxn
ServerCnxn.CloseRequestException, ServerCnxn.EndOfStreamExceptionWatcher.EventauthInfo, cmd2String, confCmd, consCmd, count, crstCmd, dumpCmd, enviCmd, established, getTraceMaskCmd, isroCmd, lastCxid, lastLatency, lastOp, lastResponseTime, lastZxid, maxLatency, me, minLatency, mntrCmd, packetsReceived, packetsSent, ruokCmd, setTraceMaskCmd, srstCmd, srvrCmd, statCmd, totalLatency, wchcCmd, wchpCmd, wchsCmd, zooKeeperSaslServer| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
disableRecv() |
void |
enableRecv() |
int |
getInterestOps() |
long |
getOutstandingRequests()
The number of requests that have been submitted but not yet
responded to.
|
java.net.InetSocketAddress |
getRemoteSocketAddress() |
long |
getSessionId() |
int |
getSessionTimeout() |
void |
process(WatchedEvent event) |
void |
receiveMessage(org.jboss.netty.buffer.ChannelBuffer message) |
void |
sendBuffer(java.nio.ByteBuffer sendBuffer) |
void |
sendCloseSession()
Send close connection packet to the client.
|
void |
sendResponse(ReplyHeader h,
org.apache.jute.Record r,
java.lang.String tag) |
protected ServerStats |
serverStats() |
void |
setSessionId(long sessionId) |
void |
setSessionTimeout(int sessionTimeout) |
addAuthInfo, dumpConnectionInfo, getAuthInfo, getAvgLatency, getEstablished, getLastCxid, getLastLatency, getLastOperation, getLastResponseTime, getLastZxid, getMaxLatency, getMinLatency, getPacketsReceived, getPacketsSent, incrOutstandingRequests, incrPacketsReceived, incrPacketsSent, packetReceived, packetSent, removeAuthInfo, resetStats, toString, updateStatsForResponsepublic void close()
public long getSessionId()
public int getSessionTimeout()
public void process(WatchedEvent event)
process in interface Watcherprocess in class ServerCnxnpublic void sendResponse(ReplyHeader h, org.apache.jute.Record r, java.lang.String tag) throws java.io.IOException
sendResponse in class ServerCnxnjava.io.IOExceptionpublic void setSessionId(long sessionId)
public void enableRecv()
public void sendBuffer(java.nio.ByteBuffer sendBuffer)
public void receiveMessage(org.jboss.netty.buffer.ChannelBuffer message)
public void disableRecv()
public long getOutstandingRequests()
getOutstandingRequests in class ServerCnxnpublic void setSessionTimeout(int sessionTimeout)
public int getInterestOps()
getInterestOps in class ServerCnxnpublic java.net.InetSocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class ServerCnxnpublic void sendCloseSession()
protected ServerStats serverStats()
serverStats in class ServerCnxnCopyright © 2016 The Apache Software Foundation