org.springframework.cloud.client.ConditionalOnDiscoveryHealthIndicatorEnabled Java Examples

The following examples show how to use org.springframework.cloud.client.ConditionalOnDiscoveryHealthIndicatorEnabled. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KubernetesReactiveDiscoveryClientAutoConfiguration.java    From spring-cloud-kubernetes with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnClass(
		name = "org.springframework.boot.actuate.health.ReactiveHealthIndicator")
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator kubernetesReactiveDiscoveryClientHealthIndicator(
		KubernetesReactiveDiscoveryClient client,
		DiscoveryClientHealthIndicatorProperties properties) {
	return new ReactiveDiscoveryClientHealthIndicator(client, properties);
}
 
Example #2
Source File: ZookeeperReactiveDiscoveryClientConfiguration.java    From spring-cloud-zookeeper with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnClass(name = "org.springframework.boot.actuate.health.ReactiveHealthIndicator")
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator zookeeperReactiveDiscoveryClientHealthIndicator(
		ZookeeperReactiveDiscoveryClient client,
		DiscoveryClientHealthIndicatorProperties properties) {
	return new ReactiveDiscoveryClientHealthIndicator(client, properties);
}
 
Example #3
Source File: SimpleReactiveDiscoveryClientAutoConfiguration.java    From spring-cloud-commons with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator simpleReactiveDiscoveryClientHealthIndicator(
		DiscoveryClientHealthIndicatorProperties properties,
		SimpleReactiveDiscoveryClient simpleReactiveDiscoveryClient) {
	return new ReactiveDiscoveryClientHealthIndicator(
			simpleReactiveDiscoveryClient, properties);
}
 
Example #4
Source File: EurekaReactiveDiscoveryClientConfiguration.java    From spring-cloud-netflix with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnClass(
		name = "org.springframework.boot.actuate.health.ReactiveHealthIndicator")
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator eurekaReactiveDiscoveryClientHealthIndicator(
		EurekaReactiveDiscoveryClient client,
		DiscoveryClientHealthIndicatorProperties properties) {
	return new ReactiveDiscoveryClientHealthIndicator(client, properties);
}
 
Example #5
Source File: ConsulReactiveDiscoveryClientConfiguration.java    From spring-cloud-consul with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnClass(
		name = "org.springframework.boot.actuate.health.ReactiveHealthIndicator")
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator consulReactiveDiscoveryClientHealthIndicator(
		ConsulReactiveDiscoveryClient client,
		DiscoveryClientHealthIndicatorProperties properties) {
	return new ReactiveDiscoveryClientHealthIndicator(client, properties);
}
 
Example #6
Source File: CloudFoundryReactiveDiscoveryClientConfiguration.java    From spring-cloud-cloudfoundry with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnClass(
		name = "org.springframework.boot.actuate.health.ReactiveHealthIndicator")
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator cloudFoundryReactiveDiscoveryClientHealthIndicator(
		CloudFoundryNativeReactiveDiscoveryClient client,
		DiscoveryClientHealthIndicatorProperties properties) {
	return new ReactiveDiscoveryClientHealthIndicator(client, properties);
}
 
Example #7
Source File: CloudFoundryReactiveDiscoveryClientConfiguration.java    From spring-cloud-cloudfoundry with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnClass(
		name = "org.springframework.boot.actuate.health.ReactiveHealthIndicator")
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator cloudFoundryReactiveDiscoveryClientHealthIndicator(
		SimpleDnsBasedReactiveDiscoveryClient client,
		DiscoveryClientHealthIndicatorProperties properties) {
	return new ReactiveDiscoveryClientHealthIndicator(client, properties);
}
 
Example #8
Source File: CloudFoundryReactiveDiscoveryClientConfiguration.java    From spring-cloud-cloudfoundry with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnClass(
		name = "org.springframework.boot.actuate.health.ReactiveHealthIndicator")
@ConditionalOnDiscoveryHealthIndicatorEnabled
public ReactiveDiscoveryClientHealthIndicator cloudFoundryReactiveDiscoveryClientHealthIndicator(
		CloudFoundryAppServiceReactiveDiscoveryClient client,
		DiscoveryClientHealthIndicatorProperties properties) {
	return new ReactiveDiscoveryClientHealthIndicator(client, properties);
}