public class DefaultK8sLeaderElectorFactory extends Object implements K8sLeaderElectorFactory
K8sLeaderElectorFactory impl using k8s-client java lib.| Constructor and Description |
|---|
DefaultK8sLeaderElectorFactory(io.kubernetes.client.openapi.ApiClient realK8sClient,
K8sDiscoveryConfig discoveryConfig) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.druid.k8s.discovery.K8sLeaderElector |
create(String candidateId,
String namespace,
String lockResourceName) |
@Inject
public DefaultK8sLeaderElectorFactory(io.kubernetes.client.openapi.ApiClient realK8sClient,
K8sDiscoveryConfig discoveryConfig)
public org.apache.druid.k8s.discovery.K8sLeaderElector create(String candidateId, String namespace, String lockResourceName)
create in interface K8sLeaderElectorFactoryCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.