Uses of Interface
org.apache.zookeeper.client.HostProvider
Packages that use HostProvider
-
Uses of HostProvider in org.apache.zookeeper
Fields in org.apache.zookeeper declared as HostProviderConstructors in org.apache.zookeeper with parameters of type HostProviderModifierConstructorDescriptionClientCnxn(HostProvider hostProvider, int sessionTimeout, long newSessionTimeout, ZKClientConfig clientConfig, Watcher defaultWatcher, org.apache.zookeeper.ClientCnxnSocket clientCnxnSocket, long sessionId, byte[] sessionPasswd, boolean canBeReadOnly) Creates a connection object.ClientCnxn(HostProvider hostProvider, int sessionTimeout, ZKClientConfig clientConfig, Watcher defaultWatcher, org.apache.zookeeper.ClientCnxnSocket clientCnxnSocket, boolean canBeReadOnly) Creates a connection object.ClientCnxn(HostProvider hostProvider, int sessionTimeout, ZKClientConfig clientConfig, Watcher defaultWatcher, org.apache.zookeeper.ClientCnxnSocket clientCnxnSocket, long sessionId, byte[] sessionPasswd, boolean canBeReadOnly) Creates a connection object.ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, boolean canBeReadOnly, HostProvider aHostProvider) To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, boolean canBeReadOnly, HostProvider hostProvider, ZKClientConfig clientConfig) To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, long sessionId, byte[] sessionPasswd, boolean canBeReadOnly, HostProvider aHostProvider) To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.ZooKeeper(String connectString, int sessionTimeout, Watcher watcher, long sessionId, byte[] sessionPasswd, boolean canBeReadOnly, HostProvider hostProvider, ZKClientConfig clientConfig) To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server. -
Uses of HostProvider in org.apache.zookeeper.client
Classes in org.apache.zookeeper.client that implement HostProviderModifier and TypeClassDescriptionfinal classDNS SRV-based HostProvider that dynamically resolves host port names from DNS SRV records.final classMost simple HostProvider, resolves on every next() call.Methods in org.apache.zookeeper.client that return HostProviderModifier and TypeMethodDescriptionstatic HostProviderCreates a HostProvider based on the connect string format.static HostProviderHostProviderFactory.create(ConnectStringParser connectStringParser, ZKClientConfig clientConfig) Creates a HostProvider based on the connect string format.Methods in org.apache.zookeeper.client that return types with arguments of type HostProviderMethod parameters in org.apache.zookeeper.client with type arguments of type HostProviderModifier and TypeMethodDescriptionZooKeeperBuilder.withHostProvider(Function<Collection<InetSocketAddress>, HostProvider> hostProvider) Specifies a function to construct aHostProviderwith initial server addresses from connect string.