REGISTRY_PORT| Constructor and Description |
|---|
SelfAwareRegistry() |
SelfAwareRegistry(String host,
int port,
Registry internalRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String name,
Remote obj) |
String |
getHost() |
int |
getPort() |
String[] |
list() |
Remote |
lookup(String name) |
void |
rebind(String name,
Remote obj) |
void |
setHost(String host) |
void |
setInternalRegistry(Registry internalRegistry) |
void |
setPort(int port) |
void |
unbind(String name) |
public void setHost(String host)
public void setPort(int port)
public void setInternalRegistry(Registry internalRegistry)
public String getHost()
public int getPort()
public Remote lookup(String name) throws RemoteException, NotBoundException
lookup in interface RegistryRemoteExceptionNotBoundExceptionpublic void bind(String name, Remote obj) throws RemoteException, AlreadyBoundException
bind in interface RegistryRemoteExceptionAlreadyBoundExceptionpublic void unbind(String name) throws RemoteException, NotBoundException
unbind in interface RegistryRemoteExceptionNotBoundExceptionpublic void rebind(String name, Remote obj) throws RemoteException
rebind in interface RegistryRemoteExceptionpublic String[] list() throws RemoteException
list in interface RegistryRemoteExceptionCopyright © 2019. All rights reserved.