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.MalformedURLException
java.rmi.RemoteException
Naming
public static Registry getLocalRegistry(NamingContextHostPort[] hp) throws java.net.MalformedURLException, java.rmi.RemoteException
java.net.MalformedURLException
java.rmi.RemoteException
Naming
public static Registry getRegistry() throws java.net.MalformedURLException, java.rmi.RemoteException, ServerConfigException
java.net.MalformedURLException
java.rmi.RemoteException
ServerConfigException
Naming
public static java.lang.Object lookup(java.lang.String name) throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
java.net.MalformedURLException
java.rmi.NotBoundException
java.rmi.RemoteException
Naming
public static void bind(java.lang.String name, java.rmi.Remote obj) throws java.net.MalformedURLException, java.rmi.AlreadyBoundException, java.rmi.RemoteException
java.net.MalformedURLException
java.rmi.AlreadyBoundException
java.rmi.RemoteException
Naming
public static void rebind(java.lang.String name, java.rmi.Remote obj) throws java.net.MalformedURLException, java.rmi.RemoteException
java.net.MalformedURLException
java.rmi.RemoteException
Naming
public static void unbind(java.lang.String name) throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
java.net.MalformedURLException
java.rmi.NotBoundException
java.rmi.RemoteException
Naming
public static java.lang.String[] list(java.lang.String name) throws java.net.MalformedURLException, java.rmi.RemoteException
java.net.MalformedURLException
java.rmi.RemoteException
Naming