站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java Remote Method Invocation: 6 - Registry Interfaces - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

CONTENTS | PREV | NEXT Java Remote Method Invocation


6.3 The RegistryHandler Interface


Note - The RegistryHandler interface is deprecated in JDK1.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 method registryStub 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.



CONTENTS | PREV | NEXT
Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.