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

Print this page




 219      * specified <code>RMIClientSocketFactory</code>, and the specified
 220      * <code>RMIServerSocketFactory</code> as arguments, except that the
 221      * <code>Registry</code> instance is exported with a well-known object
 222      * identifier, an {@link ObjID} instance constructed with the value
 223      * {@link ObjID#REGISTRY_ID}.
 224      *
 225      * @param port port on which the registry accepts requests
 226      * @param csf  client-side <code>Socket</code> factory used to
 227      *      make connections to the registry
 228      * @param ssf  server-side <code>ServerSocket</code> factory
 229      *      used to accept connections to the registry
 230      * @return the registry
 231      * @exception RemoteException if the registry could not be exported
 232      * @since 1.2
 233      **/
 234     public static Registry createRegistry(int port,
 235                                           RMIClientSocketFactory csf,
 236                                           RMIServerSocketFactory ssf)
 237         throws RemoteException
 238     {
 239         return new RegistryImpl(port, csf, ssf);
 240     }
 241 }


 219      * specified <code>RMIClientSocketFactory</code>, and the specified
 220      * <code>RMIServerSocketFactory</code> as arguments, except that the
 221      * <code>Registry</code> instance is exported with a well-known object
 222      * identifier, an {@link ObjID} instance constructed with the value
 223      * {@link ObjID#REGISTRY_ID}.
 224      *
 225      * @param port port on which the registry accepts requests
 226      * @param csf  client-side <code>Socket</code> factory used to
 227      *      make connections to the registry
 228      * @param ssf  server-side <code>ServerSocket</code> factory
 229      *      used to accept connections to the registry
 230      * @return the registry
 231      * @exception RemoteException if the registry could not be exported
 232      * @since 1.2
 233      **/
 234     public static Registry createRegistry(int port,
 235                                           RMIClientSocketFactory csf,
 236                                           RMIServerSocketFactory ssf)
 237         throws RemoteException
 238     {
 239         return new RegisxtryImpl(port, csf, ssf);
 240     }
 241 }