public final class NameLookupClient extends Object implements Stage, NamingLookup
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes resources.
|
InetSocketAddress |
lookup(Identifier id)
Finds an address for an identifier.
|
InetSocketAddress |
remoteLookup(Identifier id)
Retrieves an address for an identifier remotely.
|
public InetSocketAddress lookup(Identifier id) throws Exception
lookup in interface NamingLookupid - an identifierIOExceptionExceptionpublic InetSocketAddress remoteLookup(Identifier id) throws Exception
id - an identifierExceptionpublic void close() throws Exception
close in interface AutoCloseableExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.