public final class Naming
extends java.lang.Object
java.rmi.Naming class.| Modifier and Type | Method and Description |
|---|---|
static void |
bind(java.lang.String name,
java.rmi.Remote obj) |
static Registry |
getLocalRegistry(NamingContextHostPort[] hp) |
static Registry |
getRegistry()
For intra JVM access
|
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) |
public static Registry getRegistry(NamingContextHostPort[] hp) throws java.net.MalformedURLException, java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.RemoteExceptionNamingpublic static Registry getLocalRegistry(NamingContextHostPort[] hp) throws java.net.MalformedURLException, java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.RemoteExceptionNamingpublic static Registry getRegistry() throws java.net.MalformedURLException, java.rmi.RemoteException, ServerConfigException
java.net.MalformedURLExceptionjava.rmi.RemoteExceptionServerConfigExceptionNamingpublic static java.lang.Object lookup(java.lang.String name)
throws java.net.MalformedURLException,
java.rmi.NotBoundException,
java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.NotBoundExceptionjava.rmi.RemoteExceptionNamingpublic static void bind(java.lang.String name,
java.rmi.Remote obj)
throws java.net.MalformedURLException,
java.rmi.AlreadyBoundException,
java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.AlreadyBoundExceptionjava.rmi.RemoteExceptionNamingpublic static void rebind(java.lang.String name,
java.rmi.Remote obj)
throws java.net.MalformedURLException,
java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.RemoteExceptionNamingpublic static void unbind(java.lang.String name)
throws java.net.MalformedURLException,
java.rmi.NotBoundException,
java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.NotBoundExceptionjava.rmi.RemoteExceptionNamingpublic static java.lang.String[] list(java.lang.String name)
throws java.net.MalformedURLException,
java.rmi.RemoteException
java.net.MalformedURLExceptionjava.rmi.RemoteExceptionNaming