Interface DiscoveryPathConstructor

All Known Implementing Classes:
DiscoveryPathConstructorImpl

public interface DiscoveryPathConstructor
Constructs ZooKeeper paths to services for service discovering.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the parent path where all service names registered.
    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

      String getPathForInstances(String serviceName)
      Return the parent path where all instances of the service registered.
      Parameters:
      serviceName - service name
      Returns:
      path to service instances