public class NettyServerCnxnFactory extends ServerCnxnFactory
ServerCnxnFactory.PacketProcessorcnxns, login, saslServerCallbackHandler, zkServer, ZOOKEEPER_SERVER_CNXN_FACTORY| Modifier and Type | Method and Description |
|---|---|
void |
closeAll() |
void |
closeSession(long sessionId) |
void |
configure(InetSocketAddress addr,
int maxClientCnxns) |
Iterable<ServerCnxn> |
getConnections() |
InetSocketAddress |
getLocalAddress() |
int |
getLocalPort() |
int |
getMaxClientCnxnsPerHost()
Maximum number of connections allowed from particular host (ip)
|
void |
join() |
void |
setMaxClientCnxnsPerHost(int max)
Maximum number of connections allowed from particular host (ip)
|
void |
shutdown() |
void |
start() |
void |
startup(ZooKeeperServer zks) |
configureSaslLogin, createFactory, createFactory, createFactory, getNumAliveConnections, registerConnection, setZooKeeperServer, unregisterConnectionpublic void closeAll()
closeAll in class ServerCnxnFactorypublic void closeSession(long sessionId)
closeSession in class ServerCnxnFactorypublic void configure(InetSocketAddress addr, int maxClientCnxns) throws IOException
configure in class ServerCnxnFactoryIOExceptionpublic int getMaxClientCnxnsPerHost()
getMaxClientCnxnsPerHost in class ServerCnxnFactorypublic void setMaxClientCnxnsPerHost(int max)
setMaxClientCnxnsPerHost in class ServerCnxnFactorypublic int getLocalPort()
getLocalPort in class ServerCnxnFactorypublic void join()
throws InterruptedException
join in class ServerCnxnFactoryInterruptedExceptionpublic void shutdown()
shutdown in class ServerCnxnFactorypublic void start()
start in class ServerCnxnFactorypublic void startup(ZooKeeperServer zks) throws IOException, InterruptedException
startup in class ServerCnxnFactoryIOExceptionInterruptedExceptionpublic Iterable<ServerCnxn> getConnections()
getConnections in class ServerCnxnFactorypublic InetSocketAddress getLocalAddress()
getLocalAddress in class ServerCnxnFactoryCopyright © 2013 The Apache Software Foundation