Class ZookeeperServiceInstance

java.lang.Object
org.springframework.cloud.zookeeper.discovery.ZookeeperServiceInstance
All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance

public class ZookeeperServiceInstance extends Object implements org.springframework.cloud.client.ServiceInstance
A specific ServiceInstance describing a zookeeper service instance.
Since:
1.1.0
Author:
Reda Housni-Alaoui, Tim Ysewyn
  • Constructor Details

    • ZookeeperServiceInstance

      public ZookeeperServiceInstance(String serviceId, org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> serviceInstance)
      Parameters:
      serviceId - The service id to be used
      serviceInstance - The zookeeper service instance described by this service instance
  • Method Details

    • getInstanceId

      public String getInstanceId()
      Specified by:
      getInstanceId in interface org.springframework.cloud.client.ServiceInstance
    • getServiceId

      public String getServiceId()
      Specified by:
      getServiceId in interface org.springframework.cloud.client.ServiceInstance
    • getHost

      public String getHost()
      Specified by:
      getHost in interface org.springframework.cloud.client.ServiceInstance
    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.springframework.cloud.client.ServiceInstance
    • isSecure

      public boolean isSecure()
      Specified by:
      isSecure in interface org.springframework.cloud.client.ServiceInstance
    • getUri

      public URI getUri()
      Specified by:
      getUri in interface org.springframework.cloud.client.ServiceInstance
    • getMetadata

      public Map<String,String> getMetadata()
      Specified by:
      getMetadata in interface org.springframework.cloud.client.ServiceInstance
    • getServiceInstance

      public org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> getServiceInstance()