src/share/classes/java/rmi/registry/LocateRegistry.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:

*** 49,59 **** * the remote host. Therefore, a subsequent method invocation to a remote * registry returned as a result of this method may fail. * * @author Ann Wollrath * @author Peter Jones ! * @since JDK1.1 * @see java.rmi.registry.Registry */ public final class LocateRegistry { /** --- 49,59 ---- * the remote host. Therefore, a subsequent method invocation to a remote * registry returned as a result of this method may fail. * * @author Ann Wollrath * @author Peter Jones ! * @since 1.1 * @see java.rmi.registry.Registry */ public final class LocateRegistry { /**
*** 65,75 **** * Returns a reference to the the remote object <code>Registry</code> for * the local host on the default registry port of 1099. * * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since JDK1.1 */ public static Registry getRegistry() throws RemoteException { return getRegistry(null, Registry.REGISTRY_PORT); --- 65,75 ---- * Returns a reference to the the remote object <code>Registry</code> for * the local host on the default registry port of 1099. * * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since 1.1 */ public static Registry getRegistry() throws RemoteException { return getRegistry(null, Registry.REGISTRY_PORT);
*** 80,90 **** * the local host on the specified <code>port</code>. * * @param port port on which the registry accepts requests * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since JDK1.1 */ public static Registry getRegistry(int port) throws RemoteException { return getRegistry(null, port); --- 80,90 ---- * the local host on the specified <code>port</code>. * * @param port port on which the registry accepts requests * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since 1.1 */ public static Registry getRegistry(int port) throws RemoteException { return getRegistry(null, port);
*** 96,106 **** * <code>host</code> is <code>null</code>, the local host is used. * * @param host host for the remote registry * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since JDK1.1 */ public static Registry getRegistry(String host) throws RemoteException { return getRegistry(host, Registry.REGISTRY_PORT); --- 96,106 ---- * <code>host</code> is <code>null</code>, the local host is used. * * @param host host for the remote registry * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since 1.1 */ public static Registry getRegistry(String host) throws RemoteException { return getRegistry(host, Registry.REGISTRY_PORT);
*** 113,123 **** * * @param host host for the remote registry * @param port port on which the registry accepts requests * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since JDK1.1 */ public static Registry getRegistry(String host, int port) throws RemoteException { return getRegistry(host, port, null); --- 113,123 ---- * * @param host host for the remote registry * @param port port on which the registry accepts requests * @return reference (a stub) to the remote object registry * @exception RemoteException if the reference could not be created ! * @since 1.1 */ public static Registry getRegistry(String host, int port) throws RemoteException { return getRegistry(host, port, null);
*** 195,205 **** * instance constructed with the value {@link ObjID#REGISTRY_ID}. * * @param port the port on which the registry accepts requests * @return the registry * @exception RemoteException if the registry could not be exported ! * @since JDK1.1 **/ public static Registry createRegistry(int port) throws RemoteException { return new RegistryImpl(port); } --- 195,205 ---- * instance constructed with the value {@link ObjID#REGISTRY_ID}. * * @param port the port on which the registry accepts requests * @return the registry * @exception RemoteException if the registry could not be exported ! * @since 1.1 **/ public static Registry createRegistry(int port) throws RemoteException { return new RegistryImpl(port); }