public class RegistryClient extends java.lang.Object implements Registry
DEFAULT_PORT| Constructor and Description |
|---|
RegistryClient(org.objectweb.carol.cmi.RegistryInternal cr)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.lang.String name,
java.rmi.Remote obj)
Bind an entry
|
java.lang.String[] |
list()
Get the entries list
|
java.rmi.Remote |
lookup(java.lang.String name)
Retrieve an object by a name
|
void |
rebind(java.lang.String name,
java.rmi.Remote obj)
Rebind an entry
|
void |
test()
Test
|
void |
unbind(java.lang.String name)
Unbind an entry
|
public RegistryClient(org.objectweb.carol.cmi.RegistryInternal cr)
throws java.rmi.RemoteException
cr - client registryjava.rmi.RemoteException - if exceptionpublic java.lang.String[] list()
throws java.rmi.RemoteException
list in interface java.rmi.registry.Registryjava.rmi.RemoteException - if Exception is encounteredpublic void test()
throws java.rmi.RemoteException
java.rmi.RemoteException - if Exception is encounteredpublic java.rmi.Remote lookup(java.lang.String name)
throws java.rmi.NotBoundException,
java.rmi.RemoteException
lookup in interface java.rmi.registry.Registryname - name to searchjava.rmi.NotBoundException - if entry is not foundjava.rmi.RemoteException - if an exception is encounteredpublic void bind(java.lang.String name,
java.rmi.Remote obj)
throws java.rmi.AlreadyBoundException,
java.rmi.RemoteException
bind in interface java.rmi.registry.Registryname - nameobj - objectjava.rmi.AlreadyBoundException - if the entry is already boundjava.rmi.RemoteException - if an exception is encounteredpublic void rebind(java.lang.String name,
java.rmi.Remote obj)
throws java.rmi.RemoteException
rebind in interface java.rmi.registry.Registryname - nameobj - objectjava.rmi.RemoteException - if an exception is encounteredpublic void unbind(java.lang.String name)
throws java.rmi.NotBoundException,
java.rmi.RemoteException
unbind in interface java.rmi.registry.Registryname - entry to unregisterjava.rmi.NotBoundException - if entry is not foundjava.rmi.RemoteException - if an exception is encountered