public class NettyServerCnxnFactory extends ServerCnxnFactory
cnxns, login, saslServerCallbackHandler, secure, zkServer, ZOOKEEPER_SERVER_CNXN_FACTORY
Modifier and Type | Method and Description |
---|---|
void |
closeAll() |
boolean |
closeSession(long sessionId) |
void |
configure(InetSocketAddress addr,
int maxClientCnxns,
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)
|
void |
join() |
void |
reconfigure(InetSocketAddress addr) |
void |
resetAllConnectionStats() |
void |
setMaxClientCnxnsPerHost(int max)
Maximum number of connections allowed from particular host (ip)
|
void |
shutdown() |
void |
start() |
void |
startup(ZooKeeperServer zks,
boolean startServer) |
configure, configureSaslLogin, createFactory, createFactory, createFactory, getNumAliveConnections, getZooKeeperServer, isSecure, registerConnection, setZooKeeperServer, startup, unregisterConnection
public void closeAll()
closeAll
in class ServerCnxnFactory
public boolean closeSession(long sessionId)
closeSession
in class ServerCnxnFactory
public void configure(InetSocketAddress addr, int maxClientCnxns, 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 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
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.