@DefaultImplementation(value=NameServerImpl.class) public interface NameServer extends Stage
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
get port number.
|
InetSocketAddress |
lookup(Identifier id)
Finds an address for an identifier locally.
|
List<NameAssignment> |
lookup(Iterable<Identifier> identifiers)
Finds addresses for identifiers locally.
|
void |
register(Identifier id,
InetSocketAddress addr)
Registers an (identifier, address) mapping locally.
|
void |
unregister(Identifier id)
Unregisters an identifier locally.
|
closeint getPort()
void register(Identifier id, InetSocketAddress addr)
id - an identifieraddr - an Internet socket addressvoid unregister(Identifier id)
id - an identifierInetSocketAddress lookup(Identifier id)
id - an identifierList<NameAssignment> lookup(Iterable<Identifier> identifiers)
identifiers - an Iterable of identifiersCopyright © 2017 The Apache Software Foundation. All rights reserved.