public class ZookeeperServiceInstance extends Object implements org.springframework.cloud.client.ServiceInstance
ServiceInstance
describing a zookeeper service instanceConstructor and Description |
---|
ZookeeperServiceInstance(String serviceId,
org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> serviceInstance) |
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
Map<String,String> |
getMetadata() |
int |
getPort() |
String |
getServiceId() |
org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> |
getServiceInstance() |
URI |
getUri() |
boolean |
isSecure() |
public ZookeeperServiceInstance(String serviceId, org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> serviceInstance)
serviceId
- The service id to be usedserviceInstance
- The zookeeper service instance described by this service instancepublic String getServiceId()
getServiceId
in interface org.springframework.cloud.client.ServiceInstance
public String getHost()
getHost
in interface org.springframework.cloud.client.ServiceInstance
public int getPort()
getPort
in interface org.springframework.cloud.client.ServiceInstance
public boolean isSecure()
isSecure
in interface org.springframework.cloud.client.ServiceInstance
public URI getUri()
getUri
in interface org.springframework.cloud.client.ServiceInstance
public Map<String,String> getMetadata()
getMetadata
in interface org.springframework.cloud.client.ServiceInstance
public org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> getServiceInstance()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.