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 Summary
ConstructorsConstructorDescriptionZookeeperServiceInstance(String serviceId, org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> serviceInstance) -
Method Summary
Modifier and TypeMethodDescriptiongetHost()intgetPort()org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>getUri()booleanisSecure()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.ServiceInstance
getScheme
-
Constructor Details
-
ZookeeperServiceInstance
public ZookeeperServiceInstance(String serviceId, org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance> serviceInstance) - Parameters:
serviceId- The service id to be usedserviceInstance- The zookeeper service instance described by this service instance
-
-
Method Details
-
getInstanceId
- Specified by:
getInstanceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceId
- Specified by:
getServiceIdin interfaceorg.springframework.cloud.client.ServiceInstance
-
getHost
- Specified by:
getHostin interfaceorg.springframework.cloud.client.ServiceInstance
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.springframework.cloud.client.ServiceInstance
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceorg.springframework.cloud.client.ServiceInstance
-
getUri
- Specified by:
getUriin interfaceorg.springframework.cloud.client.ServiceInstance
-
getMetadata
- Specified by:
getMetadatain interfaceorg.springframework.cloud.client.ServiceInstance
-
getServiceInstance
-