org.objectweb.carol.cmi
Class ClusterRegistryClient

java.lang.Object
  extended byorg.objectweb.carol.cmi.ClusterRegistryClient
All Implemented Interfaces:
ClusterRegistry, java.rmi.registry.Registry, java.rmi.Remote

public class ClusterRegistryClient
extends java.lang.Object
implements ClusterRegistry

Client code for a cluster registry


Field Summary
 
Fields inherited from interface org.objectweb.carol.cmi.ClusterRegistry
DEFAULT_PORT
 
Fields inherited from interface java.rmi.registry.Registry
REGISTRY_PORT
 
Constructor Summary
ClusterRegistryClient(ClusterRegistryInternal cr)
           
 
Method Summary
 void bind(java.lang.String name, java.rmi.Remote obj)
           
 java.lang.String[] list()
           
 java.rmi.Remote lookup(java.lang.String name)
           
 void rebind(java.lang.String name, java.rmi.Remote obj)
           
 void test()
           
 void unbind(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterRegistryClient

public ClusterRegistryClient(ClusterRegistryInternal cr)
                      throws java.rmi.RemoteException
Method Detail

list

public java.lang.String[] list()
                        throws java.rmi.RemoteException
Specified by:
list in interface java.rmi.registry.Registry
Throws:
java.rmi.RemoteException

test

public void test()
          throws java.rmi.RemoteException
Specified by:
test in interface ClusterRegistry
Throws:
java.rmi.RemoteException

lookup

public java.rmi.Remote lookup(java.lang.String name)
                       throws java.rmi.NotBoundException,
                              java.rmi.RemoteException
Specified by:
lookup in interface java.rmi.registry.Registry
Throws:
java.rmi.NotBoundException
java.rmi.RemoteException

bind

public void bind(java.lang.String name,
                 java.rmi.Remote obj)
          throws java.rmi.AlreadyBoundException,
                 java.rmi.RemoteException
Specified by:
bind in interface java.rmi.registry.Registry
Throws:
java.rmi.AlreadyBoundException
java.rmi.RemoteException

rebind

public void rebind(java.lang.String name,
                   java.rmi.Remote obj)
            throws java.rmi.RemoteException
Specified by:
rebind in interface java.rmi.registry.Registry
Throws:
java.rmi.RemoteException

unbind

public void unbind(java.lang.String name)
            throws java.rmi.NotBoundException,
                   java.rmi.RemoteException
Specified by:
unbind in interface java.rmi.registry.Registry
Throws:
java.rmi.NotBoundException
java.rmi.RemoteException