|
Préférences
Moteurs de recherche
|
|||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.0
java.rmi.registry
|
Field Summary | |
---|---|
static int |
REGISTRY_PORT
Well known port for registry. |
Method Summary | |
---|---|
void |
bind(String name,
Remote obj)
Binds a remote reference to the specified name in
this registry. |
String[] |
list()
Returns an array of the names bound in this registry. |
Remote |
lookup(String name)
Returns the remote reference bound to the specified name in this registry. |
void |
rebind(String name,
Remote obj)
Replaces the binding for the specified name in
this registry with the supplied remote reference. |
void |
unbind(String name)
Removes the binding for the specified name in
this registry. |
Field Detail |
---|
static final int REGISTRY_PORT
Method Detail |
---|
Remote lookup(String name) throws RemoteException, NotBoundException, AccessException
name
in this registry.
name
- the name for the remote reference to look up
NotBoundException
- if name
is not currently bound
RemoteException
- if remote communication with the
registry failed; if exception is a ServerException
containing an AccessException
, then the registry
denies the caller access to perform this operation
AccessException
- if this registry is local and it denies
the caller access to perform this operation
NullPointerException
- if name
is null
void bind(String name, Remote obj) throws RemoteException, AlreadyBoundException, AccessException
name
in
this registry.
name
- the name to associate with the remote referenceobj
- a reference to a remote object (usually a stub)
AlreadyBoundException
- if name
is already bound
RemoteException
- if remote communication with the
registry failed; if exception is a ServerException
containing an AccessException
, then the registry
denies the caller access to perform this operation (if
originating from a non-local host, for example)
AccessException
- if this registry is local and it denies
the caller access to perform this operation
NullPointerException
- if name
is
null
, or if obj
is null
void unbind(String name) throws RemoteException, NotBoundException, AccessException
name
in
this registry.
name
- the name of the binding to remove
NotBoundException
- if name
is not currently bound
RemoteException
- if remote communication with the
registry failed; if exception is a ServerException
containing an AccessException
, then the registry
denies the caller access to perform this operation (if
originating from a non-local host, for example)
AccessException
- if this registry is local and it denies
the caller access to perform this operation
NullPointerException
- if name
is null
void rebind(String name, Remote obj) throws RemoteException, AccessException
name
in
this registry with the supplied remote reference. If there is
an existing binding for the specified name
, it is
discarded.
name
- the name to associate with the remote referenceobj
- a reference to a remote object (usually a stub)
RemoteException
- if remote communication with the
registry failed; if exception is a ServerException
containing an AccessException
, then the registry
denies the caller access to perform this operation (if
originating from a non-local host, for example)
AccessException
- if this registry is local and it denies
the caller access to perform this operation
NullPointerException
- if name
is
null
, or if obj
is null
String[] list() throws RemoteException, AccessException
RemoteException
- if remote communication with the
registry failed; if exception is a ServerException
containing an AccessException
, then the registry
denies the caller access to perform this operation
AccessException
- if this registry is local and it denies
the caller access to perform this operation