public class

SingleEntryRegistry

extends RegistryImpl
java.lang.Object
   ↳ java.rmi.server.RemoteObject
     ↳ java.rmi.server.RemoteServer
       ↳ sun.rmi.registry.RegistryImpl
         ↳ sun.management.jmxremote.SingleEntryRegistry

Class Overview

A Registry that consists of a single entry that never changes.

Summary

[Expand]
Inherited Constants
From interface java.rmi.registry.Registry
[Expand]
Inherited Fields
From class java.rmi.server.RemoteObject
Public Methods
void bind(String name, Remote obj)
Binds the name to the specified remote object.
String[] list()
Returns an enumeration of the names in the registry.
Remote lookup(String name)
Returns the remote object for specified name in the registry.
void rebind(String name, Remote obj)
Rebind the name to a new object, replaces any existing binding.
void unbind(String name)
Unbind the name.
[Expand]
Inherited Methods
From class sun.rmi.registry.RegistryImpl
From class java.rmi.server.RemoteServer
From class java.rmi.server.RemoteObject
From class java.lang.Object
From interface java.rmi.registry.Registry

Public Methods

public void bind (String name, Remote obj)

Binds the name to the specified remote object.

Parameters
name the name to associate with the remote reference
obj a reference to a remote object (usually a stub)

public String[] list ()

Returns an enumeration of the names in the registry.

Returns
  • an array of the names bound in this registry

public Remote lookup (String name)

Returns the remote object for specified name in the registry.

Parameters
name the name for the remote reference to look up
Returns
  • a reference to a remote object

public void rebind (String name, Remote obj)

Rebind the name to a new object, replaces any existing binding.

Parameters
name the name to associate with the remote reference
obj a reference to a remote object (usually a stub)

public void unbind (String name)

Unbind the name.

Parameters
name the name of the binding to remove