| Package | Description |
|---|---|
| io.fabric8.kubernetes.client.extended.leaderelection | |
| io.fabric8.kubernetes.client.extended.leaderelection.resourcelock |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
LeaderElector.canBecomeLeader(LeaderElectionRecord leaderElectionRecord) |
protected boolean |
LeaderElector.isLeader(LeaderElectionRecord leaderElectionRecord) |
| Modifier and Type | Method and Description |
|---|---|
LeaderElectionRecord |
Lock.get(KubernetesClient client)
Returns the current
LeaderElectionRecord or null if none. |
LeaderElectionRecord |
ResourceLock.get(KubernetesClient client) |
protected LeaderElectionRecord |
ConfigMapLock.toRecord(io.fabric8.kubernetes.api.model.ConfigMap resource) |
protected LeaderElectionRecord |
LeaseLock.toRecord(io.fabric8.kubernetes.api.model.coordination.v1.Lease resource) |
protected abstract LeaderElectionRecord |
ResourceLock.toRecord(T resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
Lock.create(KubernetesClient client,
LeaderElectionRecord leaderElectionRecord)
Attempt to create a new
LeaderElectionRecord. |
void |
ResourceLock.create(KubernetesClient client,
LeaderElectionRecord leaderElectionRecord) |
protected io.fabric8.kubernetes.api.model.coordination.v1.Lease |
LeaseLock.toResource(LeaderElectionRecord leaderElectionRecord,
io.fabric8.kubernetes.api.model.ObjectMetaBuilder meta) |
protected io.fabric8.kubernetes.api.model.ConfigMap |
ConfigMapLock.toResource(LeaderElectionRecord leaderElectionRecord,
io.fabric8.kubernetes.api.model.ObjectMetaBuilder meta) |
protected abstract T |
ResourceLock.toResource(LeaderElectionRecord leaderElectionRecord,
io.fabric8.kubernetes.api.model.ObjectMetaBuilder meta)
Convert the record to a resource
|
void |
Lock.update(KubernetesClient client,
LeaderElectionRecord leaderElectionRecord)
Attempts to update the current
LeaderElectionRecord. |
void |
ResourceLock.update(KubernetesClient client,
LeaderElectionRecord leaderElectionRecord) |
Copyright © 2015–2023 Red Hat. All rights reserved.