@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=LeaderProperties.class) @ConditionalOnBean(value=io.fabric8.kubernetes.client.KubernetesClient.class) @ConditionalOnProperty(value="spring.cloud.kubernetes.leader.enabled", matchIfMissing=true) public class LeaderAutoConfiguration extends Object
| Constructor and Description |
|---|
LeaderAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.integration.leader.Candidate |
candidate(LeaderProperties leaderProperties) |
org.springframework.integration.leader.event.LeaderEventPublisher |
defaultLeaderEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
PodReadinessWatcher |
hostPodWatcher(org.springframework.integration.leader.Candidate candidate,
io.fabric8.kubernetes.client.KubernetesClient kubernetesClient,
LeadershipController leadershipController) |
LeaderInfoContributor |
leaderInfoContributor(LeadershipController leadershipController,
org.springframework.integration.leader.Candidate candidate) |
LeaderInitiator |
leaderInitiator(LeaderProperties leaderProperties,
LeadershipController leadershipController,
LeaderRecordWatcher leaderRecordWatcher,
PodReadinessWatcher hostPodWatcher) |
LeaderRecordWatcher |
leaderRecordWatcher(LeaderProperties leaderProperties,
LeadershipController leadershipController,
io.fabric8.kubernetes.client.KubernetesClient kubernetesClient) |
LeadershipController |
leadershipController(org.springframework.integration.leader.Candidate candidate,
LeaderProperties leaderProperties,
org.springframework.integration.leader.event.LeaderEventPublisher leaderEventPublisher,
io.fabric8.kubernetes.client.KubernetesClient kubernetesClient) |
@Bean @ConditionalOnMissingBean(value=org.springframework.integration.leader.event.LeaderEventPublisher.class) public org.springframework.integration.leader.event.LeaderEventPublisher defaultLeaderEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
@Bean public org.springframework.integration.leader.Candidate candidate(LeaderProperties leaderProperties) throws UnknownHostException
UnknownHostException@Bean public LeadershipController leadershipController(org.springframework.integration.leader.Candidate candidate, LeaderProperties leaderProperties, org.springframework.integration.leader.event.LeaderEventPublisher leaderEventPublisher, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient)
@Bean public LeaderRecordWatcher leaderRecordWatcher(LeaderProperties leaderProperties, LeadershipController leadershipController, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient)
@Bean public PodReadinessWatcher hostPodWatcher(org.springframework.integration.leader.Candidate candidate, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, LeadershipController leadershipController)
@Bean(destroyMethod="stop") public LeaderInitiator leaderInitiator(LeaderProperties leaderProperties, LeadershipController leadershipController, LeaderRecordWatcher leaderRecordWatcher, PodReadinessWatcher hostPodWatcher)
@Bean @ConditionalOnClass(value=org.springframework.boot.actuate.info.InfoContributor.class) public LeaderInfoContributor leaderInfoContributor(LeadershipController leadershipController, org.springframework.integration.leader.Candidate candidate)
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.