public abstract class AbstractZooKeeperHaServices extends AbstractHaServices
configuration, ioExecutor, logger
DEFAULT_JOB_ID, DEFAULT_LEADER_ID
Constructor and Description |
---|
AbstractZooKeeperHaServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper,
Executor executor,
Configuration configuration,
BlobStoreService blobStoreService) |
Modifier and Type | Method and Description |
---|---|
CheckpointRecoveryFactory |
createCheckpointRecoveryFactory()
Create the checkpoint recovery factory for the job manager.
|
JobGraphStore |
createJobGraphStore()
Create the submitted job graph store for the job manager.
|
protected void |
deleteZNode(String path) |
protected org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework |
getCuratorFramework() |
protected void |
internalCleanup()
Clean up the meta data in the distributed system(e.g.
|
protected void |
internalCleanupJobData(JobID jobID)
Clean up the meta data in the distributed system(e.g.
|
protected void |
internalClose()
Closes the components which is used for external operations(e.g.
|
close, closeAndCleanupAllData, createBlobStore, createLeaderElectionDriverFactory, createLeaderRetrievalService, getCheckpointRecoveryFactory, getClusterRestEndpointLeaderElectionService, getClusterRestEndpointLeaderRetriever, getDispatcherLeaderElectionService, getDispatcherLeaderRetriever, getJobGraphStore, getJobManagerLeaderElectionService, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getJobResultStore, getLeaderPathForDispatcher, getLeaderPathForJobManager, getLeaderPathForResourceManager, getLeaderPathForRestServer, getResourceManagerLeaderElectionService, getResourceManagerLeaderRetriever, globalCleanupAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWebMonitorLeaderElectionService, getWebMonitorLeaderRetriever
public AbstractZooKeeperHaServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper, Executor executor, Configuration configuration, BlobStoreService blobStoreService) throws IOException
IOException
protected final org.apache.flink.shaded.curator5.org.apache.curator.framework.CuratorFramework getCuratorFramework()
public CheckpointRecoveryFactory createCheckpointRecoveryFactory() throws Exception
AbstractHaServices
createCheckpointRecoveryFactory
in class AbstractHaServices
Exception
public JobGraphStore createJobGraphStore() throws Exception
AbstractHaServices
createJobGraphStore
in class AbstractHaServices
Exception
- if the submitted job graph store could not be createdprotected void internalClose() throws Exception
AbstractHaServices
internalClose
in class AbstractHaServices
Exception
- if the close operation failedprotected 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.protected 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.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.