public class EmbeddedHaServicesWithLeadershipControl extends EmbeddedHaServices implements HaLeadershipControl
EmbeddedHaServices extension to expose leadership granting and revoking.lockDEFAULT_JOB_ID, DEFAULT_LEADER_ID| Constructor and Description |
|---|
EmbeddedHaServicesWithLeadershipControl(Executor executor) |
EmbeddedHaServicesWithLeadershipControl(Executor executor,
CheckpointRecoveryFactory checkpointRecoveryFactory) |
| Modifier and Type | Method and Description |
|---|---|
CheckpointRecoveryFactory |
getCheckpointRecoveryFactory()
Gets the checkpoint recovery factory for the job manager.
|
CompletableFuture<Void> |
grantDispatcherLeadership() |
CompletableFuture<Void> |
grantJobMasterLeadership(org.apache.flink.api.common.JobID jobId) |
CompletableFuture<Void> |
grantResourceManagerLeadership() |
CompletableFuture<Void> |
revokeDispatcherLeadership() |
CompletableFuture<Void> |
revokeJobMasterLeadership(org.apache.flink.api.common.JobID jobId) |
CompletableFuture<Void> |
revokeResourceManagerLeadership() |
close, getClusterRestEndpointLeaderElectionService, getClusterRestEndpointLeaderRetriever, getDispatcherLeaderElectionService, getDispatcherLeaderRetriever, getJobManagerLeaderElectionService, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getResourceManagerLeaderElectionService, getResourceManagerLeaderRetrievercheckNotShutdown, closeAndCleanupAllData, createBlobStore, getJobGraphStore, getJobResultStore, isShutDownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWebMonitorLeaderElectionService, getWebMonitorLeaderRetriever, globalCleanupAsyncpublic EmbeddedHaServicesWithLeadershipControl(Executor executor)
public EmbeddedHaServicesWithLeadershipControl(Executor executor, CheckpointRecoveryFactory checkpointRecoveryFactory)
public CompletableFuture<Void> revokeDispatcherLeadership()
revokeDispatcherLeadership in interface HaLeadershipControlpublic CompletableFuture<Void> grantDispatcherLeadership()
grantDispatcherLeadership in interface HaLeadershipControlpublic CompletableFuture<Void> revokeJobMasterLeadership(org.apache.flink.api.common.JobID jobId)
revokeJobMasterLeadership in interface HaLeadershipControlpublic CompletableFuture<Void> grantJobMasterLeadership(org.apache.flink.api.common.JobID jobId)
grantJobMasterLeadership in interface HaLeadershipControlpublic CompletableFuture<Void> revokeResourceManagerLeadership()
revokeResourceManagerLeadership in interface HaLeadershipControlpublic CompletableFuture<Void> grantResourceManagerLeadership()
grantResourceManagerLeadership in interface HaLeadershipControlpublic CheckpointRecoveryFactory getCheckpointRecoveryFactory()
HighAvailabilityServicesgetCheckpointRecoveryFactory in interface HighAvailabilityServicesgetCheckpointRecoveryFactory in class AbstractNonHaServicesCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.