org.objectweb.carol.cmi
Class Naming

java.lang.Object
  extended byorg.objectweb.carol.cmi.Naming

public final class Naming
extends java.lang.Object

Similar to java.rmi.Naming class.

Author:
Simon Nieuviarts

Method Summary
static void bind(java.lang.String name, java.rmi.Remote obj)
           
static Registry getLocalRegistry(NamingContextHostPort[] hp)
           
static Registry getRegistry(NamingContextHostPort[] hp)
           
static java.lang.String[] list(java.lang.String name)
           
static java.lang.Object lookup(java.lang.String name)
           
static void rebind(java.lang.String name, java.rmi.Remote obj)
           
static void unbind(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRegistry

public static Registry getRegistry(NamingContextHostPort[] hp)
                            throws java.net.MalformedURLException,
                                   java.rmi.RemoteException
Throws:
java.net.MalformedURLException
java.rmi.RemoteException
See Also:
Naming

getLocalRegistry

public static Registry getLocalRegistry(NamingContextHostPort[] hp)
                                 throws java.net.MalformedURLException,
                                        java.rmi.RemoteException
Throws:
java.net.MalformedURLException
java.rmi.RemoteException
See Also:
Naming

lookup

public static java.lang.Object lookup(java.lang.String name)
                               throws java.net.MalformedURLException,
                                      java.rmi.NotBoundException,
                                      java.rmi.RemoteException
Throws:
java.net.MalformedURLException
java.rmi.NotBoundException
java.rmi.RemoteException
See Also:
Naming

bind

public static void bind(java.lang.String name,
                        java.rmi.Remote obj)
                 throws java.net.MalformedURLException,
                        java.rmi.AlreadyBoundException,
                        java.rmi.RemoteException
Throws:
java.net.MalformedURLException
java.rmi.AlreadyBoundException
java.rmi.RemoteException
See Also:
Naming

rebind

public static void rebind(java.lang.String name,
                          java.rmi.Remote obj)
                   throws java.net.MalformedURLException,
                          java.rmi.RemoteException
Throws:
java.net.MalformedURLException
java.rmi.RemoteException
See Also:
Naming

unbind

public static void unbind(java.lang.String name)
                   throws java.net.MalformedURLException,
                          java.rmi.NotBoundException,
                          java.rmi.RemoteException
Throws:
java.net.MalformedURLException
java.rmi.NotBoundException
java.rmi.RemoteException
See Also:
Naming

list

public static java.lang.String[] list(java.lang.String name)
                               throws java.net.MalformedURLException,
                                      java.rmi.RemoteException
Throws:
java.net.MalformedURLException
java.rmi.RemoteException
See Also:
Naming