Class StandaloneClientHAServices
- java.lang.Object
-
- org.apache.flink.runtime.highavailability.nonha.standalone.StandaloneClientHAServices
-
- All Implemented Interfaces:
AutoCloseable,ClientHighAvailabilityServices
public class StandaloneClientHAServices extends Object implements ClientHighAvailabilityServices
Non-HA implementation forClientHighAvailabilityServices. The address to web monitor is pre-configured.
-
-
Constructor Summary
Constructors Constructor Description StandaloneClientHAServices(String webMonitorAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()LeaderRetrievalServicegetClusterRestEndpointLeaderRetriever()Get the leader retriever for the cluster's rest endpoint.
-
-
-
Constructor Detail
-
StandaloneClientHAServices
public StandaloneClientHAServices(String webMonitorAddress)
-
-
Method Detail
-
getClusterRestEndpointLeaderRetriever
public LeaderRetrievalService 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
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-