Class Fabric8LeaderAutoConfiguration
java.lang.Object
org.springframework.cloud.kubernetes.fabric8.leader.Fabric8LeaderAutoConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(org.springframework.cloud.kubernetes.commons.leader.LeaderProperties.class)
@ConditionalOnBean(io.fabric8.kubernetes.client.KubernetesClient.class)
@ConditionalOnProperty(value="spring.cloud.kubernetes.leader.enabled",
matchIfMissing=true)
public class Fabric8LeaderAutoConfiguration
extends Object
- Author:
- Gytis Trikleris
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.integration.leader.Candidatecandidate(org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties) org.springframework.integration.leader.event.LeaderEventPublisherdefaultLeaderEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) hostPodWatcher(org.springframework.integration.leader.Candidate candidate, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, Fabric8LeadershipController fabric8LeadershipController) org.springframework.cloud.kubernetes.commons.leader.LeaderInfoContributorleaderInfoContributor(Fabric8LeadershipController fabric8LeadershipController, org.springframework.integration.leader.Candidate candidate) org.springframework.cloud.kubernetes.commons.leader.LeaderInitiatorleaderInitiator(org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties, Fabric8LeadershipController fabric8LeadershipController, Fabric8LeaderRecordWatcher fabric8LeaderRecordWatcher, Fabric8PodReadinessWatcher hostPodWatcher) leaderRecordWatcher(org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties, Fabric8LeadershipController fabric8LeadershipController, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient) leadershipController(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)
-
Constructor Details
-
Fabric8LeaderAutoConfiguration
public Fabric8LeaderAutoConfiguration()
-
-
Method Details
-
defaultLeaderEventPublisher
@Bean @ConditionalOnMissingBean(org.springframework.integration.leader.event.LeaderEventPublisher.class) public org.springframework.integration.leader.event.LeaderEventPublisher defaultLeaderEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) -
candidate
@Bean public org.springframework.integration.leader.Candidate candidate(org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties) throws UnknownHostException - Throws:
UnknownHostException
-
leadershipController
@Bean public Fabric8LeadershipController leadershipController(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) -
leaderRecordWatcher
@Bean public Fabric8LeaderRecordWatcher leaderRecordWatcher(org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties, Fabric8LeadershipController fabric8LeadershipController, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient) -
hostPodWatcher
@Bean public Fabric8PodReadinessWatcher hostPodWatcher(org.springframework.integration.leader.Candidate candidate, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, Fabric8LeadershipController fabric8LeadershipController) -
leaderInitiator
@Bean(destroyMethod="stop") public org.springframework.cloud.kubernetes.commons.leader.LeaderInitiator leaderInitiator(org.springframework.cloud.kubernetes.commons.leader.LeaderProperties leaderProperties, Fabric8LeadershipController fabric8LeadershipController, Fabric8LeaderRecordWatcher fabric8LeaderRecordWatcher, Fabric8PodReadinessWatcher hostPodWatcher) -
leaderInfoContributor
@Bean @ConditionalOnClass(org.springframework.boot.actuate.info.InfoContributor.class) public org.springframework.cloud.kubernetes.commons.leader.LeaderInfoContributor leaderInfoContributor(Fabric8LeadershipController fabric8LeadershipController, org.springframework.integration.leader.Candidate candidate)
-