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
NamingRegistry
register
in interface NamingRegistry
NetworkException
public void unregister(Identifier id) throws NetworkException
NamingRegistry
unregister
in interface NamingRegistry
NetworkException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public InetSocketAddress lookup(Identifier id) throws Exception
NamingLookup
lookup
in interface NamingLookup
id
- the identifier to be searchedIOException
Exception
Copyright © 2017 The Apache Software Foundation. All rights reserved.