public class KubernetesMultipleComponentLeaderElectionDriverFactory extends Object implements MultipleComponentLeaderElectionDriverFactory
KubernetesMultipleComponentLeaderElectionDriver
.Constructor and Description |
---|
KubernetesMultipleComponentLeaderElectionDriverFactory(FlinkKubeClient kubeClient,
KubernetesLeaderElectionConfiguration kubernetesLeaderElectionConfiguration,
KubernetesConfigMapSharedWatcher configMapSharedWatcher,
Executor watchExecutor,
FatalErrorHandler fatalErrorHandler) |
Modifier and Type | Method and Description |
---|---|
KubernetesMultipleComponentLeaderElectionDriver |
create(MultipleComponentLeaderElectionDriver.Listener leaderElectionListener)
Creates a
MultipleComponentLeaderElectionDriver for the given leader contender
description. |
public KubernetesMultipleComponentLeaderElectionDriverFactory(FlinkKubeClient kubeClient, KubernetesLeaderElectionConfiguration kubernetesLeaderElectionConfiguration, KubernetesConfigMapSharedWatcher configMapSharedWatcher, Executor watchExecutor, FatalErrorHandler fatalErrorHandler)
public KubernetesMultipleComponentLeaderElectionDriver create(MultipleComponentLeaderElectionDriver.Listener leaderElectionListener) throws Exception
MultipleComponentLeaderElectionDriverFactory
MultipleComponentLeaderElectionDriver
for the given leader contender
description. Moreover, it registers the given leader election listener with the service.create
in interface MultipleComponentLeaderElectionDriverFactory
leaderElectionListener
- listener for the callbacks of the MultipleComponentLeaderElectionDriver
MultipleComponentLeaderElectionDriver
instanceException
- if the creation failsCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.