APIdia Launch Partner
Top Description Fields Constructors Methods
sun.management.jmxremote

public Class SingleEntryRegistry

extends RegistryImpl
Class Inheritance
Imports
java.io.ObjectInputFilter, java.rmi.AccessException, .NotBoundException, .Remote, .RemoteException, java.rmi.server.RMIClientSocketFactory, .RMIServerSocketFactory, sun.rmi.registry.RegistryImpl

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

Field Summary

Modifier and TypeField and Description
private final String
private final Remote
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
SingleEntryRegistry(int port, String name, Remote object)

pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
bind(String name, Remote obj)

Overrides sun.rmi.registry.RegistryImpl.bind.

Implements java.rmi.registry.Registry.bind.

Binds the name to the specified remote object.

public String[]
list()

Overrides sun.rmi.registry.RegistryImpl.list.

Implements java.rmi.registry.Registry.list.

Returns an enumeration of the names in the registry.

public Remote
lookup(String name)

Overrides sun.rmi.registry.RegistryImpl.lookup.

Implements java.rmi.registry.Registry.lookup.

Returns the remote object for specified name in the registry.

public void
rebind(String name, Remote obj)

Overrides sun.rmi.registry.RegistryImpl.rebind.

Implements java.rmi.registry.Registry.rebind.

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

private static ObjectInputFilter.Status

Returns:

Status.REJECTED if parameters are out of range
singleRegistryFilter
(ObjectInputFilter.FilterInfo
a reference to the serialization filter information
info
)

ObjectInputFilter to check parameters to SingleEntryRegistry.

public void
Inherited from sun.rmi.registry.RegistryImpl:
checkAccesscreateRegistrygetIDmain

Field Detail

nameback to summary
private final String name
objectback to summary
private final Remote object
Annotations
@SuppressWarnings:serial
serialVersionUIDback to summary
private static final long serialVersionUID

Hides sun.rmi.registry.RegistryImpl.serialVersionUID.

Constructor Detail

SingleEntryRegistryback to summary
pack-priv SingleEntryRegistry(int port, String name, Remote object) throws RemoteException
SingleEntryRegistryback to summary
pack-priv SingleEntryRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, String name, Remote object) throws RemoteException

Method Detail

bindback to summary
public void bind(String name, Remote obj) throws AccessException

Overrides sun.rmi.registry.RegistryImpl.bind.

Implements java.rmi.registry.Registry.bind.

Doc from sun.rmi.registry.RegistryImpl.bind.

Binds the name to the specified remote object.

Exceptions
AccessException:

Doc from java.rmi.registry.Registry.bind.

if this registry is local and it denies the caller access to perform this operation

listback to summary
public String[] list()

Overrides sun.rmi.registry.RegistryImpl.list.

Implements java.rmi.registry.Registry.list.

Doc from sun.rmi.registry.RegistryImpl.list.

Returns an enumeration of the names in the registry.

lookupback to summary
public Remote lookup(String name) throws NotBoundException

Overrides sun.rmi.registry.RegistryImpl.lookup.

Implements java.rmi.registry.Registry.lookup.

Doc from sun.rmi.registry.RegistryImpl.lookup.

Returns the remote object for specified name in the registry.

Exceptions
NotBoundException:
If name is not currently bound.
rebindback to summary
public void rebind(String name, Remote obj) throws AccessException

Overrides sun.rmi.registry.RegistryImpl.rebind.

Implements java.rmi.registry.Registry.rebind.

Doc from sun.rmi.registry.RegistryImpl.rebind.

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

Exceptions
AccessException:

Doc from java.rmi.registry.Registry.rebind.

if this registry is local and it denies the caller access to perform this operation

singleRegistryFilterback to summary
private static ObjectInputFilter.Status singleRegistryFilter(ObjectInputFilter.FilterInfo info)

ObjectInputFilter to check parameters to SingleEntryRegistry. Since it is a read-only Registry, no classes are accepted. String arguments are accepted without passing them to the serialFilter.

Parameters
info:ObjectInputFilter.FilterInfo

a reference to the serialization filter information

Returns:ObjectInputFilter.Status

Status.REJECTED if parameters are out of range

unbindback to summary
public void unbind(String name) throws AccessException

Overrides sun.rmi.registry.RegistryImpl.unbind.

Implements java.rmi.registry.Registry.unbind.

Doc from sun.rmi.registry.RegistryImpl.unbind.

Unbind the name.

Exceptions
AccessException:

Doc from java.rmi.registry.Registry.unbind.

if this registry is local and it denies the caller access to perform this operation