| java.lang.Object | |||
| ↳ | java.rmi.server.RemoteObject | ||
| ↳ | java.rmi.server.RemoteServer | ||
| ↳ | sun.rmi.registry.RegistryImpl | ||
Known Direct Subclasses
|
A "registry" exists on every node that allows RMI connections to servers on that node. The registry on a particular node contains a transient database that maps names to remote objects. When the node boots, the registry database is empty. The names stored in the registry are pure and are not parsed. A service storing itself in the registry may want to prefix its name of the service by a package name (although not required), to reduce name collisions in the registry. The LocateRegistry class is used to obtain registry for different hosts.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.rmi.registry.Registry
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.rmi.server.RemoteObject
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new RegistryImpl on the specified port with the
given custom socket factory pair.
| |||||||||||
Construct a new RegistryImpl on the specified port.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Binds the name to the specified remote object.
| |||||||||||
Check that the caller has access to perform indicated operation.
| |||||||||||
Returns an enumeration of the names in the registry.
| |||||||||||
Returns the remote object for specified name in the registry.
| |||||||||||
Main program to start a registry.
| |||||||||||
Rebind the name to a new object, replaces any existing binding.
| |||||||||||
Unbind the name.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.rmi.server.RemoteServer
| |||||||||||
From class
java.rmi.server.RemoteObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.rmi.registry.Registry
| |||||||||||
Construct a new RegistryImpl on the specified port with the given custom socket factory pair.
| RemoteException |
|---|
Construct a new RegistryImpl on the specified port.
| RemoteException |
|---|
Binds the name to the specified remote object.
| name | the name to associate with the remote reference |
|---|---|
| obj | a reference to a remote object (usually a stub) |
| RemoteException | If remote operation failed. |
|---|---|
| AlreadyBoundException | If name is already bound. |
| AccessException |
Check that the caller has access to perform indicated operation. The client must be on same the same host as this server.
| AccessException |
|---|
Returns an enumeration of the names in the registry.
| RemoteException | If remote operation failed. |
|---|
Returns the remote object for specified name in the registry.
| name | the name for the remote reference to look up |
|---|
| RemoteException | If remote operation failed. |
|---|---|
| If name is not currently bound. | |
| NotBoundException |
Main program to start a registry.
The port number can be specified on the command line.
Rebind the name to a new object, replaces any existing binding.
| name | the name to associate with the remote reference |
|---|---|
| obj | a reference to a remote object (usually a stub) |
| RemoteException | If remote operation failed. |
|---|---|
| AccessException |
Unbind the name.
| name | the name of the binding to remove |
|---|
| RemoteException | If remote operation failed. |
|---|---|
| If name is not currently bound. | |
| AccessException | |
| NotBoundException |