Class ZookeeperDiscoveryHealthIndicator

java.lang.Object
org.springframework.cloud.zookeeper.discovery.ZookeeperDiscoveryHealthIndicator
All Implemented Interfaces:
org.springframework.cloud.client.discovery.health.DiscoveryHealthIndicator

public class ZookeeperDiscoveryHealthIndicator extends Object implements org.springframework.cloud.client.discovery.health.DiscoveryHealthIndicator
HealthIndicator that presents the status of all instances registered in Zookeeper.
Since:
1.0.0
Author:
Spencer Gibb
  • Constructor Details

    • ZookeeperDiscoveryHealthIndicator

      public ZookeeperDiscoveryHealthIndicator(org.apache.curator.framework.CuratorFramework curatorFramework, org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery, ZookeeperDependencies zookeeperDependencies, ZookeeperDiscoveryProperties zookeeperDiscoveryProperties)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.springframework.cloud.client.discovery.health.DiscoveryHealthIndicator
    • health

      public org.springframework.boot.actuate.health.Health health()
      Specified by:
      health in interface org.springframework.cloud.client.discovery.health.DiscoveryHealthIndicator