Class ZookeeperAutoServiceRegistration

java.lang.Object
org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
org.springframework.cloud.zookeeper.serviceregistry.ZookeeperAutoServiceRegistration
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.cloud.client.serviceregistry.AutoServiceRegistration, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>

public class ZookeeperAutoServiceRegistration extends org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
Zookeeper AbstractAutoServiceRegistration that uses ZookeeperServiceRegistry to register and de-register instances.
Since:
1.0.0
Author:
Spencer Gibb
  • Constructor Details

  • Method Details

    • getRegistration

      protected ZookeeperRegistration getRegistration()
      Specified by:
      getRegistration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
    • getManagementRegistration

      protected ZookeeperRegistration getManagementRegistration()
      Specified by:
      getManagementRegistration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
    • register

      protected void register()
      Overrides:
      register in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
    • deregister

      protected void deregister()
      Overrides:
      deregister in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
    • isEnabled

      protected boolean isEnabled()
      Specified by:
      isEnabled in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
    • getConfiguration

      protected Object getConfiguration()
      Specified by:
      getConfiguration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>