public class KubernetesMultipleComponentLeaderElectionHaServices extends AbstractHaServices
configuration, ioExecutor, logger
DEFAULT_JOB_ID, DEFAULT_LEADER_ID
Modifier and Type | Method and Description |
---|---|
protected CheckpointRecoveryFactory |
createCheckpointRecoveryFactory()
Create the checkpoint recovery factory for the job manager.
|
protected JobGraphStore |
createJobGraphStore()
Create the submitted job graph store for the job manager.
|
protected LeaderElectionService |
createLeaderElectionService(String leaderName)
Create leader election service with specified leaderName.
|
protected LeaderRetrievalService |
createLeaderRetrievalService(String componentId)
Create leader retrieval service with specified leaderName.
|
protected String |
getLeaderPathForDispatcher()
Get the leader path for Dispatcher.
|
protected String |
getLeaderPathForJobManager(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.
|
void |
internalCleanup()
Clean up the meta data in the distributed system(e.g.
|
void |
internalCleanupJobData(JobID jobID)
Clean up the meta data in the distributed system(e.g.
|
void |
internalClose()
Closes the components which is used for external operations(e.g.
|
close, closeAndCleanupAllData, createBlobStore, getCheckpointRecoveryFactory, getClusterRestEndpointLeaderElectionService, getClusterRestEndpointLeaderRetriever, getDispatcherLeaderElectionService, getDispatcherLeaderRetriever, getJobGraphStore, getJobManagerLeaderElectionService, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getJobResultStore, getResourceManagerLeaderElectionService, getResourceManagerLeaderRetriever, globalCleanupAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWebMonitorLeaderElectionService, getWebMonitorLeaderRetriever
protected LeaderElectionService createLeaderElectionService(String leaderName)
AbstractHaServices
createLeaderElectionService
in class AbstractHaServices
leaderName
- ConfigMap name in Kubernetes or child node path in Zookeeper.protected LeaderRetrievalService createLeaderRetrievalService(String componentId)
AbstractHaServices
createLeaderRetrievalService
in class AbstractHaServices
componentId
- ConfigMap name in Kubernetes or child node path in Zookeeper.protected CheckpointRecoveryFactory createCheckpointRecoveryFactory()
AbstractHaServices
createCheckpointRecoveryFactory
in class AbstractHaServices
protected JobGraphStore createJobGraphStore() throws Exception
AbstractHaServices
createJobGraphStore
in class AbstractHaServices
Exception
- if the submitted job graph store could not be createdpublic void internalClose() throws Exception
AbstractHaServices
internalClose
in class AbstractHaServices
Exception
- if the close operation failedpublic void internalCleanup() throws Exception
AbstractHaServices
If an exception occurs during internal cleanup, we will continue the cleanup in AbstractHaServices.closeAndCleanupAllData()
and report exceptions only after all cleanup steps have been
attempted.
internalCleanup
in class AbstractHaServices
Exception
- when do the cleanup operation on external storage.public void internalCleanupJobData(JobID jobID) throws Exception
AbstractHaServices
internalCleanupJobData
in class AbstractHaServices
jobID
- The identifier of the job to cleanup.Exception
- when do the cleanup operation on external storage.protected String getLeaderPathForResourceManager()
AbstractHaServices
getLeaderPathForResourceManager
in class AbstractHaServices
protected String getLeaderPathForDispatcher()
AbstractHaServices
getLeaderPathForDispatcher
in class AbstractHaServices
protected String getLeaderPathForJobManager(JobID jobID)
AbstractHaServices
getLeaderPathForJobManager
in class AbstractHaServices
jobID
- job idprotected String getLeaderPathForRestServer()
AbstractHaServices
getLeaderPathForRestServer
in class AbstractHaServices
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.