public class TransitionalNameService extends java.lang.Object implements NameService
NameService.PortType
Constructor and Description |
---|
TransitionalNameService()
Loads the entries in the name service from properties files in a directory.
|
Modifier and Type | Method and Description |
---|---|
SocketAddress |
localResolve(java.lang.String name,
NameService.PortType portType)
Create a socket address suitable for listening on.
|
SocketAddress |
resolve(java.lang.String name,
NameService.PortType portType)
Create a socket address suitable for connecting to.
|
public TransitionalNameService() throws java.io.IOException
portType
- the type of port number to read.java.io.IOException
public SocketAddress localResolve(java.lang.String name, NameService.PortType portType) throws java.io.IOException
NameService
localResolve
in interface NameService
java.io.IOException
public SocketAddress resolve(java.lang.String name, NameService.PortType portType) throws java.io.IOException
NameService
resolve
in interface NameService
java.io.IOException