Class DiscoveryPathConstructorImpl
java.lang.Object
org.apache.curator.x.discovery.details.DiscoveryPathConstructorImpl
- All Implemented Interfaces:
DiscoveryPathConstructor
A standard constructor, it uses standard path constructing strategy by applying name to the base path.
-
Constructor Summary
-
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.
-
Constructor Details
-
DiscoveryPathConstructorImpl
-
-
Method Details
-
getBasePath
Description copied from interface:DiscoveryPathConstructor
Return the parent path where all service names registered.- Specified by:
getBasePath
in interfaceDiscoveryPathConstructor
- Returns:
- the base path of all services
-
getPathForInstances
Description copied from interface:DiscoveryPathConstructor
Return the parent path where all instances of the service registered.- Specified by:
getPathForInstances
in interfaceDiscoveryPathConstructor
- Parameters:
serviceName
- service name- Returns:
- path to service instances
-