|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.karmi.rmi.Naming
The Naming class is for bootstraping. It allows to get objects out of a remote registry. The remote object is addressed with an URL-like string: protocol://registryLocation:port/objectKey
For example: rmi://jakarta.ira.uka.de:1100/myObject
Look at LocateRegistry for more information about the "protocol://registryLocation:port" part of the string and its interpretation. The second part (after '/') is passed to the addressed registry. if there is no second part, the registry itself is used.
| Constructor Summary | |
private |
Naming()
|
| Method Summary | |
static void |
bind(java.lang.String name,
Remote obj)
Binds object into the addressed registry using the name afer '/' |
private static Registry |
getRegistry(java.lang.String location)
|
static java.lang.String[] |
list(java.lang.String location)
Returns the string list of objects registered in the addressed registry. |
static Remote |
lookup(java.lang.String name)
Finds remote object for this string. |
static void |
rebind(java.lang.String name,
Remote obj)
Rebinds object into the addressed registry using the name afer '/' |
static void |
unbind(java.lang.String name)
Unbinds the object associated with this string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private Naming()
| Method Detail |
public static Remote lookup(java.lang.String name)
throws RemoteException,
NotBoundException,
java.net.MalformedURLException,
UnknownHostException
name - location and name of the object
RemoteException
NotBoundException
java.net.MalformedURLException
UnknownHostException
public static void bind(java.lang.String name,
Remote obj)
throws RemoteException,
AlreadyBoundException,
java.net.MalformedURLException,
UnknownHostException
obj - remote object that should be boundname - location and name
RemoteException
AlreadyBoundException
java.net.MalformedURLException
UnknownHostException
public static void unbind(java.lang.String name)
throws RemoteException,
NotBoundException,
java.net.MalformedURLException,
UnknownHostException
name - location and name of the remote object
RemoteException
NotBoundException
java.net.MalformedURLException
UnknownHostException
public static void rebind(java.lang.String name,
Remote obj)
throws RemoteException,
java.net.MalformedURLException,
UnknownHostException
obj - remote objectname - location and name
RemoteException
java.net.MalformedURLException
UnknownHostException
public static java.lang.String[] list(java.lang.String location)
throws RemoteException,
java.net.MalformedURLException,
UnknownHostException
location - location of the registry
RemoteException
java.net.MalformedURLException
UnknownHostException
private static Registry getRegistry(java.lang.String location)
throws RemoteException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||