CONTENTS | PREV | NEXT | Java Remote Method Invocation |
RegistryHandler
Interface
Note - TheRegistryHandler
interface is deprecated as of the Java 2 SDK, Standard Edition, v1.2. In JDK1.1, it was only used internally by the RMI implementation and was not for application use.
package java.rmi.registry; public interface RegistryHandler {Registry registryStub(String host, int port) throws java.rmi.RemoteException, java.rmi.UnknownHostException; Registry registryImpl(int port) throws java.rmi.RemoteException; }
The methodregistryStub
returns a stub for contacting a remote registry on the specified host and port.The method
registryImpl
constructs and exports a registry on the specified port. The port must be nonzero.