Package org.apache.curator.x.discovery
Interface DiscoveryPathConstructor
- All Known Implementing Classes:
DiscoveryPathConstructorImpl
public interface DiscoveryPathConstructor
Constructs ZooKeeper paths to services for service discovering.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the parent path where all service names registered.getPathForInstances
(String serviceName) Return the parent path where all instances of the service registered.
-
Method Details
-
getBasePath
String getBasePath()Return the parent path where all service names registered.- Returns:
- the base path of all services
-
getPathForInstances
Return the parent path where all instances of the service registered.- Parameters:
serviceName
- service name- Returns:
- path to service instances
-