public class NettyServerCnxnFactory extends ServerCnxnFactory
Modifier and Type | Field and Description |
---|---|
static String |
NETTY_ADVANCED_FLOW_CONTROL |
static String |
OUTSTANDING_HANDSHAKE_LIMIT |
static String |
PORT_UNIFICATION_KEY
Allow client-server sockets to accept both SSL and plaintext connections
|
cnxns, login, maxCnxns, saslServerCallbackHandler, secure, zkServer, ZOOKEEPER_MAX_CONNECTION_DEFAULT, ZOOKEEPER_SERVER_CNXN_FACTORY
Modifier and Type | Method and Description |
---|---|
void |
closeAll(ServerCnxn.DisconnectReason reason) |
void |
configure(InetSocketAddress addr,
int maxClientCnxns,
int backlog,
boolean secure) |
Iterable<Map<String,Object>> |
getAllConnectionInfo(boolean brief) |
Iterable<ServerCnxn> |
getConnections() |
InetSocketAddress |
getLocalAddress() |
int |
getLocalPort() |
int |
getMaxClientCnxnsPerHost()
Maximum number of connections allowed from particular host (ip)
|
int |
getOutstandingHandshakeNum() |
io.netty.channel.Channel |
getParentChannel() |
int |
getSocketListenBacklog()
The maximum queue length of the ZooKeeper server's socket
|
void |
join() |
void |
reconfigure(InetSocketAddress addr) |
void |
resetAllConnectionStats() |
void |
setAdvancedFlowControlEnabled(boolean advancedFlowControlEnabled) |
void |
setMaxClientCnxnsPerHost(int max)
Maximum number of connections allowed from particular host (ip)
|
void |
setOutstandingHandshakeLimit(int limit) |
void |
setSecure(boolean secure) |
void |
shutdown() |
void |
start() |
void |
startup(ZooKeeperServer zks,
boolean startServer) |
addSession, closeSession, configure, configure, configureSaslLogin, createFactory, createFactory, createFactory, createFactory, createFactory, getMaxCnxns, getNumAliveConnections, getUserName, getZooKeeperServer, initMaxCnxns, isSecure, limitTotalNumberOfCnxns, registerConnection, removeCnxnFromSessionMap, setZooKeeperServer, startup, unregisterConnection
public static final String PORT_UNIFICATION_KEY
public static final String OUTSTANDING_HANDSHAKE_LIMIT
public static final String NETTY_ADVANCED_FLOW_CONTROL
public void setOutstandingHandshakeLimit(int limit)
public void closeAll(ServerCnxn.DisconnectReason reason)
closeAll
in class ServerCnxnFactory
public void configure(InetSocketAddress addr, int maxClientCnxns, int backlog, boolean secure) throws IOException
configure
in class ServerCnxnFactory
IOException
public int getMaxClientCnxnsPerHost()
getMaxClientCnxnsPerHost
in class ServerCnxnFactory
public void setMaxClientCnxnsPerHost(int max)
setMaxClientCnxnsPerHost
in class ServerCnxnFactory
public int getSocketListenBacklog()
getSocketListenBacklog
in class ServerCnxnFactory
public int getLocalPort()
getLocalPort
in class ServerCnxnFactory
public void join() throws InterruptedException
join
in class ServerCnxnFactory
InterruptedException
public void shutdown()
shutdown
in class ServerCnxnFactory
public void start()
start
in class ServerCnxnFactory
public void reconfigure(InetSocketAddress addr)
reconfigure
in class ServerCnxnFactory
public void startup(ZooKeeperServer zks, boolean startServer) throws IOException, InterruptedException
startup
in class ServerCnxnFactory
IOException
InterruptedException
public Iterable<ServerCnxn> getConnections()
getConnections
in class ServerCnxnFactory
public InetSocketAddress getLocalAddress()
getLocalAddress
in class ServerCnxnFactory
public void resetAllConnectionStats()
resetAllConnectionStats
in class ServerCnxnFactory
public Iterable<Map<String,Object>> getAllConnectionInfo(boolean brief)
getAllConnectionInfo
in class ServerCnxnFactory
public void setAdvancedFlowControlEnabled(boolean advancedFlowControlEnabled)
public void setSecure(boolean secure)
public io.netty.channel.Channel getParentChannel()
public int getOutstandingHandshakeNum()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.