Class EmbeddedHaServicesWithLeadershipControl
java.lang.Object
org.apache.flink.runtime.highavailability.nonha.AbstractNonHaServices
org.apache.flink.runtime.highavailability.nonha.embedded.EmbeddedHaServices
org.apache.flink.runtime.highavailability.nonha.embedded.EmbeddedHaServicesWithLeadershipControl
- All Implemented Interfaces:
AutoCloseable,GloballyCleanableResource,ClientHighAvailabilityServices,HighAvailabilityServices,HaLeadershipControl
public class EmbeddedHaServicesWithLeadershipControl
extends EmbeddedHaServices
implements HaLeadershipControl
EmbeddedHaServices extension to expose leadership granting and revoking.-
Field Summary
Fields inherited from class org.apache.flink.runtime.highavailability.nonha.AbstractNonHaServices
lockFields inherited from interface org.apache.flink.runtime.highavailability.HighAvailabilityServices
DEFAULT_JOB_ID, DEFAULT_LEADER_ID -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedHaServicesWithLeadershipControl(Executor executor, CheckpointRecoveryFactory checkpointRecoveryFactory) -
Method Summary
Modifier and TypeMethodDescriptionGets the checkpoint recovery factory for the job manager.grantJobMasterLeadership(org.apache.flink.api.common.JobID jobId) revokeJobMasterLeadership(org.apache.flink.api.common.JobID jobId) Methods inherited from class org.apache.flink.runtime.highavailability.nonha.embedded.EmbeddedHaServices
close, getClusterRestEndpointLeaderElection, getClusterRestEndpointLeaderRetriever, getDispatcherLeaderElection, getDispatcherLeaderRetriever, getJobManagerLeaderElection, getJobManagerLeaderRetriever, getJobManagerLeaderRetriever, getResourceManagerLeaderElection, getResourceManagerLeaderRetrieverMethods inherited from class org.apache.flink.runtime.highavailability.nonha.AbstractNonHaServices
checkNotShutdown, cleanupAllData, createBlobStore, getExecutionPlanStore, getJobResultStore, isShutDownMethods 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, globalCleanupAsync
-
Constructor Details
-
EmbeddedHaServicesWithLeadershipControl
-
EmbeddedHaServicesWithLeadershipControl
public EmbeddedHaServicesWithLeadershipControl(Executor executor, CheckpointRecoveryFactory checkpointRecoveryFactory)
-
-
Method Details
-
revokeDispatcherLeadership
- Specified by:
revokeDispatcherLeadershipin interfaceHaLeadershipControl
-
grantDispatcherLeadership
- Specified by:
grantDispatcherLeadershipin interfaceHaLeadershipControl
-
revokeJobMasterLeadership
- Specified by:
revokeJobMasterLeadershipin interfaceHaLeadershipControl
-
grantJobMasterLeadership
- Specified by:
grantJobMasterLeadershipin interfaceHaLeadershipControl
-
revokeResourceManagerLeadership
- Specified by:
revokeResourceManagerLeadershipin interfaceHaLeadershipControl
-
grantResourceManagerLeadership
- Specified by:
grantResourceManagerLeadershipin interfaceHaLeadershipControl
-
getCheckpointRecoveryFactory
Description copied from interface:HighAvailabilityServicesGets the checkpoint recovery factory for the job manager.- Specified by:
getCheckpointRecoveryFactoryin interfaceHighAvailabilityServices- Overrides:
getCheckpointRecoveryFactoryin classAbstractNonHaServices- Returns:
- Checkpoint recovery factory
-