Interface Server.Locator.Builder

Enclosing interface:
Server.Locator

public static interface Server.Locator.Builder
A builder for Server.Locator instances.
  • Method Details

    • hostName

      Server.Locator.Builder hostName(String hostName)
      Parameters:
      hostName - the name of the host
      Returns:
      this builder instance
    • namePrefix

      Server.Locator.Builder namePrefix(String namePrefix)
      Parameters:
      namePrefix - the server name prefix to use when looking up, an empty string results in all servers being returned
      Returns:
      this builder instance
    • registryPort

      Server.Locator.Builder registryPort(int registryPort)
      Parameters:
      registryPort - the port on which to lookup/configure the registry
      Returns:
      this builder instance
    • port

      Server.Locator.Builder port(int port)
      Parameters:
      port - the required server port, -1 for a server on any port
      Returns:
      this builder instance
    • build

      Returns:
      a new Server.Locator instance based on this builder