Class Fabric8LeadershipController

java.lang.Object
org.springframework.cloud.kubernetes.commons.leader.LeadershipController
org.springframework.cloud.kubernetes.fabric8.leader.Fabric8LeadershipController

public class Fabric8LeadershipController extends org.springframework.cloud.kubernetes.commons.leader.LeadershipController
Author:
Gytis Trikleris
  • Field Summary

    Fields inherited from class org.springframework.cloud.kubernetes.commons.leader.LeadershipController

    candidate, KIND, KIND_KEY, leaderEventPublisher, leaderProperties, leaderReadinessWatcher, localLeader, PROVIDER, PROVIDER_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Fabric8LeadershipController(org.springframework.integration.leader.Candidate candidate, org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties, org.springframework.integration.leader.event.LeaderEventPublisher leaderEventPublisher, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.cloud.kubernetes.commons.leader.PodReadinessWatcher
     
    void
     
    void
     

    Methods inherited from class org.springframework.cloud.kubernetes.commons.leader.LeadershipController

    extractLeader, getLeaderData, getLeaderKey, getLocalLeader, handleLeaderChange, notifyOnFailedToAcquire, notifyOnGranted, notifyOnRevoked, restartLeaderReadinessWatcher

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Fabric8LeadershipController

      public Fabric8LeadershipController(org.springframework.integration.leader.Candidate candidate, org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties, org.springframework.integration.leader.event.LeaderEventPublisher leaderEventPublisher, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient)
  • Method Details

    • update

      public void update()
      Specified by:
      update in class org.springframework.cloud.kubernetes.commons.leader.LeadershipController
    • revoke

      public void revoke()
      Specified by:
      revoke in class org.springframework.cloud.kubernetes.commons.leader.LeadershipController
    • createPodReadinessWatcher

      protected org.springframework.cloud.kubernetes.commons.leader.PodReadinessWatcher createPodReadinessWatcher(String localLeaderId)
      Specified by:
      createPodReadinessWatcher in class org.springframework.cloud.kubernetes.commons.leader.LeadershipController