org.objectweb.carol.cmi
Class ClusterRegistryImpl

java.lang.Object
  |
  +--org.objectweb.carol.cmi.ClusterRegistryImpl
All Implemented Interfaces:
ClusterRegistry, java.rmi.registry.Registry, java.rmi.Remote

public final class ClusterRegistryImpl
extends java.lang.Object
implements ClusterRegistry


Field Summary
static java.lang.String REG_PREFIX
           
 
Fields inherited from interface org.objectweb.carol.cmi.ClusterRegistry
DEFAULT_PORT
 
Fields inherited from interface java.rmi.registry.Registry
REGISTRY_PORT
 
Method Summary
 void bind(java.lang.String n, java.rmi.Remote obj)
           
 java.lang.String[] list()
           
 java.rmi.Remote lookup(java.lang.String n)
           
static void main(java.lang.String[] args)
           
 void rebind(java.lang.String n, java.rmi.Remote obj)
           
static ClusterRegistryKiller start(int port)
           
 void test()
           
 void unbind(java.lang.String n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REG_PREFIX

public static final java.lang.String REG_PREFIX
See Also:
Constant Field Values
Method Detail

start

public static ClusterRegistryKiller start(int port)
                                   throws java.rmi.RemoteException
java.rmi.RemoteException

lookup

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

bind

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

unbind

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

rebind

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

list

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

test

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

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception