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.IOExceptionpublic SocketAddress localResolve(java.lang.String name, NameService.PortType portType) throws java.io.IOException
NameServicelocalResolve in interface NameServicejava.io.IOExceptionpublic SocketAddress resolve(java.lang.String name, NameService.PortType portType) throws java.io.IOException
NameServiceresolve in interface NameServicejava.io.IOException