public class ZooKeeperMultipleComponentLeaderElectionHaServices extends AbstractZooKeeperHaServices
/flink
+/cluster_id_1/leader/latch
| | /resource_manager/connection_info
| | /dispatcher/connection_info
| | /rest_server/connection_info
| | /job-id-1/connection_info
| | /job-id-2/connection_info
| |
| |
| +jobgraphs/job-id-1
| | /job-id-2
| +jobs/job-id-1/checkpoints/latest
| | /latest-1
| | /latest-2
| | /checkpoint_id_counter
configuration, ioExecutor, loggerDEFAULT_JOB_ID, DEFAULT_LEADER_ID| Constructor and Description |
|---|
ZooKeeperMultipleComponentLeaderElectionHaServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper,
org.apache.flink.configuration.Configuration config,
Executor ioExecutor,
BlobStoreService blobStoreService,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected LeaderElectionService |
createLeaderElectionService(String leaderName)
Create leader election service with specified leaderName.
|
protected LeaderRetrievalService |
createLeaderRetrievalService(String leaderPath)
Create leader retrieval service with specified leaderName.
|
protected String |
getLeaderPathForDispatcher()
Get the leader path for Dispatcher.
|
protected String |
getLeaderPathForJobManager(org.apache.flink.api.common.JobID jobID)
Get the leader path for specific JobManager.
|
protected String |
getLeaderPathForResourceManager()
Get the leader path for ResourceManager.
|
protected String |
getLeaderPathForRestServer()
Get the leader path for RestServer.
|
protected void |
internalClose()
Closes the components which is used for external operations(e.g.
|
createCheckpointRecoveryFactory, createJobGraphStore, deleteZNode, getCuratorFramework, internalCleanup, internalCleanupJobDataclose, closeAndCleanupAllData, createBlobStore, getCheckpointRecoveryFactory, getClusterRestEndpointLeaderElectionService, getClusterRestEndpointLeaderRetriever, getDispatcherLeaderElectionService, getDispatcherLeaderRetriever, getJobGraphStore, getJobManagerLeaderElectionService, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getJobResultStore, getResourceManagerLeaderElectionService, getResourceManagerLeaderRetriever, globalCleanupAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWebMonitorLeaderElectionService, getWebMonitorLeaderRetrieverpublic ZooKeeperMultipleComponentLeaderElectionHaServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper, org.apache.flink.configuration.Configuration config, Executor ioExecutor, BlobStoreService blobStoreService, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) throws Exception
Exceptionprotected LeaderElectionService createLeaderElectionService(String leaderName)
AbstractHaServicescreateLeaderElectionService in class AbstractHaServicesleaderName - ConfigMap name in Kubernetes or child node path in Zookeeper.protected LeaderRetrievalService createLeaderRetrievalService(String leaderPath)
AbstractHaServicescreateLeaderRetrievalService in class AbstractHaServicesleaderPath - ConfigMap name in Kubernetes or child node path in Zookeeper.protected void internalClose()
throws Exception
AbstractHaServicesinternalClose in class AbstractZooKeeperHaServicesException - if the close operation failedprotected String getLeaderPathForResourceManager()
AbstractHaServicesgetLeaderPathForResourceManager in class AbstractHaServicesprotected String getLeaderPathForDispatcher()
AbstractHaServicesgetLeaderPathForDispatcher in class AbstractHaServicesprotected String getLeaderPathForJobManager(org.apache.flink.api.common.JobID jobID)
AbstractHaServicesgetLeaderPathForJobManager in class AbstractHaServicesjobID - job idprotected String getLeaderPathForRestServer()
AbstractHaServicesgetLeaderPathForRestServer in class AbstractHaServicesCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.