- Enclosing interface:
Server.Locator
public static interface Server.Locator.Builder
A builder for
Server.Locator instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()namePrefix(String namePrefix) port(int port) registryPort(int registryPort)
-
Method Details
-
hostname
- Parameters:
hostname- the name of the host- Returns:
- this builder instance
-
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
- Parameters:
registryPort- the port on which to lookup/configure the registry- Returns:
- this builder instance
-
port
- Parameters:
port- the required server port, -1 for a server on any port- Returns:
- this builder instance
-
build
Server.Locator build()- Returns:
- a new
Server.Locatorinstance based on this builder
-