From 6979d4378091e831844d9727c76053f0fe173bda Mon Sep 17 00:00:00 2001 From: Enrico Olivelli Date: Mon, 30 Jan 2023 08:53:01 +0100 Subject: Updated website content for release 3.8.1 --- .../apache/zookeeper/server/ServerCnxnFactory.html | 1007 ++++++++++++++++++++ 1 file changed, 1007 insertions(+) create mode 100644 _released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ServerCnxnFactory.html (limited to '_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ServerCnxnFactory.html') diff --git a/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ServerCnxnFactory.html b/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ServerCnxnFactory.html new file mode 100644 index 000000000..416079daf --- /dev/null +++ b/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/ServerCnxnFactory.html @@ -0,0 +1,1007 @@ + + + + + + +ServerCnxnFactory (Apache ZooKeeper - Server 3.8.1 API) + + + + + + + + +
+ + + + + + + +
+ + + +
+
org.apache.zookeeper.server
+

Class ServerCnxnFactory

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ServerCnxnFactory

        +
        public ServerCnxnFactory()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        addSession

        +
        public void addSession(long sessionId,
        +                       ServerCnxn cnxn)
        +
      • +
      + + + +
        +
      • +

        removeCnxnFromSessionMap

        +
        public void removeCnxnFromSessionMap(ServerCnxn cnxn)
        +
      • +
      + + + +
        +
      • +

        closeSession

        +
        public boolean closeSession(long sessionId,
        +                            ServerCnxn.DisconnectReason reason)
        +
        +
        Returns:
        +
        true if the cnxn that contains the sessionId exists in this ServerCnxnFactory + and it's closed. Otherwise false.
        +
        +
      • +
      + + + +
        +
      • +

        getLocalPort

        +
        public abstract int getLocalPort()
        +
      • +
      + + + + + + + +
        +
      • +

        getNumAliveConnections

        +
        public int getNumAliveConnections()
        +
      • +
      + + + +
        +
      • +

        getZooKeeperServer

        +
        public final ZooKeeperServer getZooKeeperServer()
        +
      • +
      + + + + + + + + + + + + + + + + + + + +
        +
      • +

        getMaxClientCnxnsPerHost

        +
        public abstract int getMaxClientCnxnsPerHost()
        +
        Maximum number of connections allowed from particular host (ip)
        +
      • +
      + + + +
        +
      • +

        setMaxClientCnxnsPerHost

        +
        public abstract void setMaxClientCnxnsPerHost(int max)
        +
        Maximum number of connections allowed from particular host (ip)
        +
      • +
      + + + +
        +
      • +

        isSecure

        +
        public boolean isSecure()
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getSocketListenBacklog

        +
        public abstract int getSocketListenBacklog()
        +
        The maximum queue length of the ZooKeeper server's socket
        +
      • +
      + + + + + + + +
        +
      • +

        shutdown

        +
        public abstract void shutdown()
        +
      • +
      + + + +
        +
      • +

        start

        +
        public abstract void start()
        +
      • +
      + + + +
        +
      • +

        setZooKeeperServer

        +
        public final void setZooKeeperServer(ZooKeeperServer zks)
        +
      • +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        +
      • +

        resetAllConnectionStats

        +
        public abstract void resetAllConnectionStats()
        +
      • +
      + + + + + + + +
        +
      • +

        unregisterConnection

        +
        public void unregisterConnection(ServerCnxn serverCnxn)
        +
      • +
      + + + +
        +
      • +

        registerConnection

        +
        public void registerConnection(ServerCnxn serverCnxn)
        +
      • +
      + + + +
        +
      • +

        configureSaslLogin

        +
        protected void configureSaslLogin()
        +                           throws IOException
        +
        Initialize the server SASL if specified. + + If the user has specified a "ZooKeeperServer.LOGIN_CONTEXT_NAME_KEY" + or a jaas.conf using "java.security.auth.login.config" + the authentication is required and an exception is raised. + Otherwise no authentication is configured and no exception is raised.
        +
        +
        Throws:
        +
        IOException - if jaas.conf is missing or there's an error in it.
        +
        +
      • +
      + + + +
        +
      • +

        getUserName

        +
        public static String getUserName()
        +
        User who has started the ZooKeeper server user, it will be the logged-in + user. If no user logged-in then system user
        +
      • +
      + + + +
        +
      • +

        getMaxCnxns

        +
        public int getMaxCnxns()
        +
        Maximum number of connections allowed in the ZooKeeper system
        +
      • +
      + + + +
        +
      • +

        initMaxCnxns

        +
        protected void initMaxCnxns()
        +
      • +
      + + + +
        +
      • +

        limitTotalNumberOfCnxns

        +
        protected boolean limitTotalNumberOfCnxns()
        +
        Ensure total number of connections are less than the maxCnxns
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + +

Copyright © 2008–2023 The Apache Software Foundation. All rights reserved.

+ + -- cgit v1.2.1