Class ZooKeeperClientHAServices
java.lang.Object
org.apache.flink.runtime.highavailability.zookeeper.ZooKeeperClientHAServices
- All Implemented Interfaces:
AutoCloseable,ClientHighAvailabilityServices
ZooKeeper based implementation for
ClientHighAvailabilityServices.-
Constructor Summary
ConstructorsConstructorDescriptionZooKeeperClientHAServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper, org.apache.flink.configuration.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get the leader retriever for the cluster's rest endpoint.
-
Constructor Details
-
ZooKeeperClientHAServices
public ZooKeeperClientHAServices(@Nonnull CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper, @Nonnull org.apache.flink.configuration.Configuration configuration)
-
-
Method Details
-
getClusterRestEndpointLeaderRetriever
Description copied from interface:ClientHighAvailabilityServicesGet the leader retriever for the cluster's rest endpoint.- Specified by:
getClusterRestEndpointLeaderRetrieverin interfaceClientHighAvailabilityServices- Returns:
- the leader retriever for cluster's rest endpoint.
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-