public class NameRegistryClient extends Object implements Stage, NamingRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes resources.
|
void |
register(Identifier id,
InetSocketAddress addr)
Registers an (identifier, address) mapping.
|
void |
unregister(Identifier id)
Unregisters an identifier.
|
public void register(Identifier id, InetSocketAddress addr) throws Exception
register in interface NamingRegistryid - an identifieraddr - an Internet socket addressExceptionpublic void unregister(Identifier id) throws IOException
unregister in interface NamingRegistryid - an identifierIOExceptionpublic void close() throws Exception
close in interface AutoCloseableExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.