public class ZookeeperServiceInstance extends Object implements org.springframework.cloud.client.ServiceInstance
ServiceInstance describing a zookeeper service instance.| Constructor and Description |
|---|
ZookeeperServiceInstance(String serviceId,
org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> serviceInstance) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getInstanceId() |
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 getInstanceId()
getInstanceId in interface org.springframework.cloud.client.ServiceInstancepublic String getServiceId()
getServiceId in interface org.springframework.cloud.client.ServiceInstancepublic String getHost()
getHost in interface org.springframework.cloud.client.ServiceInstancepublic int getPort()
getPort in interface org.springframework.cloud.client.ServiceInstancepublic boolean isSecure()
isSecure in interface org.springframework.cloud.client.ServiceInstancepublic URI getUri()
getUri in interface org.springframework.cloud.client.ServiceInstancepublic Map<String,String> getMetadata()
getMetadata in interface org.springframework.cloud.client.ServiceInstancepublic org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> getServiceInstance()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.