org.objectweb.carol.cmi
Class ClusterRegistryImpl

java.lang.Object
  extended byorg.objectweb.carol.cmi.ClusterRegistryImpl
All Implemented Interfaces:
ClusterRegistryInternal, java.rmi.Remote

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


Field Summary
static java.lang.String REG_PREFIX
           
 
Fields inherited from interface org.objectweb.carol.cmi.ClusterRegistryInternal
CLUSTERED, NOT_CLUSTERED
 
Method Summary
 void bindCluster(java.lang.String n, byte[] obj)
           
 void bindSingle(java.lang.String n, java.rmi.Remote obj)
           
 java.lang.String[] list()
           
 java.lang.Object lookup(java.lang.String n)
           
static void main(java.lang.String[] args)
           
 void rebindCluster(java.lang.String n, byte[] obj)
           
 void rebindSingle(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
Throws:
java.rmi.RemoteException

lookup

public java.lang.Object lookup(java.lang.String n)
                        throws java.rmi.NotBoundException,
                               java.rmi.RemoteException
Specified by:
lookup in interface ClusterRegistryInternal
Throws:
java.rmi.NotBoundException
java.rmi.RemoteException

bindSingle

public void bindSingle(java.lang.String n,
                       java.rmi.Remote obj)
                throws java.rmi.AlreadyBoundException,
                       java.rmi.RemoteException
Specified by:
bindSingle in interface ClusterRegistryInternal
Throws:
java.rmi.AlreadyBoundException
java.rmi.RemoteException

rebindSingle

public void rebindSingle(java.lang.String n,
                         java.rmi.Remote obj)
                  throws java.rmi.RemoteException
Specified by:
rebindSingle in interface ClusterRegistryInternal
Throws:
java.rmi.RemoteException

bindCluster

public void bindCluster(java.lang.String n,
                        byte[] obj)
                 throws java.rmi.AlreadyBoundException,
                        java.rmi.RemoteException
Specified by:
bindCluster in interface ClusterRegistryInternal
Throws:
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 ClusterRegistryInternal
Throws:
java.rmi.NotBoundException
java.rmi.RemoteException

rebindCluster

public void rebindCluster(java.lang.String n,
                          byte[] obj)
                   throws java.rmi.RemoteException
Specified by:
rebindCluster in interface ClusterRegistryInternal
Throws:
java.rmi.RemoteException

list

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

test

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

main

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