APIdia Launch Partner
Top Description Methods
java.rmi.registry

public Interface RegistryHandler

Annotations
@Deprecated
Imports
java.rmi.RemoteException, .UnknownHostException

Deprecated

no replacement

RegistryHandler is an interface used internally by the RMI runtime in previous implementation versions. It should never be accessed by application code.
Author
Ann Wollrath
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public Registry

Returns:

registry stub
registryImpl
(int
port to export registry on
port
)
Deprecated no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's implementation.

Constructs and exports a Registry on the specified port.

public Registry

Returns:

remote registry stub
registryStub
(String
name of remote registry host
host
,
int
remote registry port
port
)
Deprecated no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's stub.

Returns a "stub" for contacting a remote registry on the specified host and port.

Method Detail

registryImplback to summary
public Registry registryImpl(int port) throws RemoteException

Deprecated

no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's implementation.

Constructs and exports a Registry on the specified port. The port must be non-zero.

Parameters
port:int

port to export registry on

Returns:Registry

registry stub

Annotations
@Deprecated
Exceptions
RemoteException:
if a remote error occurs
registryStubback to summary
public Registry registryStub(String host, int port) throws RemoteException, UnknownHostException

Deprecated

no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's stub.

Returns a "stub" for contacting a remote registry on the specified host and port.

Parameters
host:String

name of remote registry host

port:int

remote registry port

Returns:Registry

remote registry stub

Annotations
@Deprecated
Exceptions
RemoteException:
if a remote error occurs
UnknownHostException:
if unable to resolve given hostname