|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibis.rmi.Naming
The Naming
class provides static methods for storing and
obtaining references to remote objects. These methods take a name in URL
format as one of its arguments.
Method Summary | |
static void |
bind(java.lang.String name,
Remote obj)
Binds the specified name to the specified remote object. |
static java.lang.String[] |
list(java.lang.String name)
Returns an array of all names bound in the registry. |
static Remote |
lookup(java.lang.String name)
Returns a reference for the remote object associated with the specified name. |
static void |
rebind(java.lang.String name,
Remote obj)
Rebinds the specified name to the specified remote object. |
static void |
unbind(java.lang.String name)
Removes the binding for the specified name. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Remote lookup(java.lang.String name) throws NotBoundException, java.net.MalformedURLException, RemoteException
name
- the name in URL format
NotBoundException
- if name is not bound
java.net.MalformedURLException
- if the name is not appropriately
formatted
RemoteException
- if the registry could not be foundpublic static void bind(java.lang.String name, Remote obj) throws AlreadyBoundException, java.net.MalformedURLException, RemoteException
name
- the name in URL formatobj
- a reference to the remote object
RemoteException
- if the registry could not be found
java.net.MalformedURLException
- if the name is not appropriately
formatted
AlreadyBoundException
- if the name is already boundpublic static void unbind(java.lang.String name) throws RemoteException, NotBoundException, java.net.MalformedURLException
name
- the name in URL format
NotBoundException
- if name is not bound
java.net.MalformedURLException
- if the name is not appropriately
formatted
RemoteException
- if the registry could not be foundpublic static void rebind(java.lang.String name, Remote obj) throws RemoteException, java.net.MalformedURLException
name
- the name in URL formatobj
- a reference to the remote object
RemoteException
- if the registry could not be found
java.net.MalformedURLException
- if the name is not appropriately
formattedpublic static java.lang.String[] list(java.lang.String name) throws RemoteException, java.net.MalformedURLException
name
- a registry name in URL format.
java.net.MalformedURLException
- if the name is not appropriately
formatted
RemoteException
- if the registry could not be found
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |