Class KubernetesLeaderElectionHaServices
java.lang.Object
org.apache.flink.runtime.highavailability.AbstractHaServices
org.apache.flink.kubernetes.highavailability.KubernetesLeaderElectionHaServices
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.runtime.dispatcher.cleanup.GloballyCleanableResource,org.apache.flink.runtime.highavailability.ClientHighAvailabilityServices,org.apache.flink.runtime.highavailability.HighAvailabilityServices
public class KubernetesLeaderElectionHaServices
extends org.apache.flink.runtime.highavailability.AbstractHaServices
Kubernetes HA services that use a single leader election service per JobManager.
-
Field Summary
Fields inherited from class org.apache.flink.runtime.highavailability.AbstractHaServices
configuration, ioExecutor, loggerFields inherited from interface org.apache.flink.runtime.highavailability.HighAvailabilityServices
DEFAULT_JOB_ID, DEFAULT_LEADER_ID -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.flink.runtime.checkpoint.CheckpointRecoveryFactoryprotected org.apache.flink.runtime.jobmanager.ExecutionPlanStoreprotected org.apache.flink.runtime.leaderretrieval.LeaderRetrievalServicecreateLeaderRetrievalService(String componentId) protected Stringprotected StringgetLeaderPathForJobManager(org.apache.flink.api.common.JobID jobID) protected Stringprotected StringvoidvoidinternalCleanupJobData(org.apache.flink.api.common.JobID jobID) voidMethods inherited from class org.apache.flink.runtime.highavailability.AbstractHaServices
cleanupAllData, close, createBlobStore, getCheckpointRecoveryFactory, getClusterRestEndpointLeaderElection, getClusterRestEndpointLeaderRetriever, getDispatcherLeaderElection, getDispatcherLeaderRetriever, getExecutionPlanStore, getJobManagerLeaderElection, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getJobResultStore, getResourceManagerLeaderElection, getResourceManagerLeaderRetriever, globalCleanupAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.highavailability.HighAvailabilityServices
closeWithOptionalClean, getWebMonitorLeaderElection, getWebMonitorLeaderRetriever
-
Method Details
-
createLeaderRetrievalService
protected org.apache.flink.runtime.leaderretrieval.LeaderRetrievalService createLeaderRetrievalService(String componentId) - Specified by:
createLeaderRetrievalServicein classorg.apache.flink.runtime.highavailability.AbstractHaServices
-
createCheckpointRecoveryFactory
protected org.apache.flink.runtime.checkpoint.CheckpointRecoveryFactory createCheckpointRecoveryFactory()- Specified by:
createCheckpointRecoveryFactoryin classorg.apache.flink.runtime.highavailability.AbstractHaServices
-
createExecutionPlanStore
protected org.apache.flink.runtime.jobmanager.ExecutionPlanStore createExecutionPlanStore() throws Exception- Specified by:
createExecutionPlanStorein classorg.apache.flink.runtime.highavailability.AbstractHaServices- Throws:
Exception
-
internalClose
- Specified by:
internalClosein classorg.apache.flink.runtime.highavailability.AbstractHaServices- Throws:
Exception
-
internalCleanup
- Specified by:
internalCleanupin classorg.apache.flink.runtime.highavailability.AbstractHaServices- Throws:
Exception
-
internalCleanupJobData
- Specified by:
internalCleanupJobDatain classorg.apache.flink.runtime.highavailability.AbstractHaServices- Throws:
Exception
-
getLeaderPathForResourceManager
- Specified by:
getLeaderPathForResourceManagerin classorg.apache.flink.runtime.highavailability.AbstractHaServices
-
getLeaderPathForDispatcher
- Specified by:
getLeaderPathForDispatcherin classorg.apache.flink.runtime.highavailability.AbstractHaServices
-
getLeaderPathForJobManager
- Specified by:
getLeaderPathForJobManagerin classorg.apache.flink.runtime.highavailability.AbstractHaServices
-
getLeaderPathForRestServer
- Specified by:
getLeaderPathForRestServerin classorg.apache.flink.runtime.highavailability.AbstractHaServices
-