@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.boot.actuate.endpoint.annotation.Endpoint.class) @AutoConfigureAfter(value=ZookeeperAutoConfiguration.class) public class ZookeeperHealthAutoConfiguration extends Object
Configuration for adding a Zookeeper health endpoint to actuator if
required.| Constructor and Description |
|---|
ZookeeperHealthAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ZookeeperHealthIndicator |
zookeeperHealthIndicator(org.apache.curator.framework.CuratorFramework curator)
If there is an active curator, if the zookeeper health endpoint is enabled and if a
health indicator hasn't already been added by a user add one.
|
@Bean @ConditionalOnMissingBean(value=ZookeeperHealthIndicator.class) @ConditionalOnBean(value=org.apache.curator.framework.CuratorFramework.class) @ConditionalOnEnabledHealthIndicator(value="zookeeper") public ZookeeperHealthIndicator zookeeperHealthIndicator(org.apache.curator.framework.CuratorFramework curator)
curator - The curator connection to zookeeper to useZookeeperHealthIndicator to add to actuator health
reportCopyright © 2021 Pivotal Software, Inc.. All rights reserved.