public final class LocalNameResolverImpl extends Object implements NameResolver
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InetSocketAddress |
lookup(Identifier id)
Lookup an Address for a given Identifier.
|
void |
register(Identifier id,
InetSocketAddress address)
Register the given Address for the given Identifier.
|
void |
unregister(Identifier id)
Unregister the given Identifier from the registry.
|
public void register(Identifier id, InetSocketAddress address) throws NetworkException
NamingRegistryregister in interface NamingRegistryNetworkExceptionpublic void unregister(Identifier id) throws NetworkException
NamingRegistryunregister in interface NamingRegistryNetworkExceptionpublic void close() throws Exception
close in interface AutoCloseableExceptionpublic InetSocketAddress lookup(Identifier id) throws Exception
NamingLookuplookup in interface NamingLookupid - the identifier to be searchedIOExceptionExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.