Examples of UnicastServerRef


Examples of org.apache.harmony.rmi.remoteref.UnicastServerRef

     */
    public RegistryImpl(int port,
                        RMIClientSocketFactory csf,
                        RMIServerSocketFactory ssf)
            throws RemoteException {
        UnicastServerRef sref;

        if (csf != null || ssf != null) {
            sref = new UnicastServerRef2(port, csf, ssf, regId);
        } else {
            sref = new UnicastServerRef(port, csf, ssf, regId);
        }
        ExportManager.exportObject(this, sref, false, true, true);
    }
View Full Code Here

Examples of org.apache.harmony.rmi.remoteref.UnicastServerRef

                        internalRegistry));
                // rmi.log.39=Creating Activation System on port {0}.
                rLog.log(commonDebugLevel, Messages.getString("rmi.log.39", //$NON-NLS-1$
                        port));

                UnicastServerRef usr = new UnicastServerRef(port, null,
                        null, new ObjID(RMIConstants.ACTIVATION_SYSTEM_ID));

                thisStub = ExportManager.exportObject(this, usr, false);
                // rmi.log.3A=stub's ref = {0}
                rLog.log(commonDebugLevel, Messages.getString("rmi.log.3A", //$NON-NLS-1$
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

   * to indicate that only a generated stub class should be used.  A
   * generated stub class must be used instead of a dynamic proxy
   * because the return value of this method is RemoteStub which a
   * dynamic proxy class cannot extend.
   */
  return (RemoteStub) exportObject(obj, new UnicastServerRef(true));
    }
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

     * @since 1.2
     */
    public static Remote exportObject(Remote obj, int port)
  throws RemoteException
    {
  return exportObject(obj, new UnicastServerRef(port));
    }
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

                if (firstExported == null) {
                    firstExported = obj;
                }
            }

            final UnicastServerRef ref;
            if (csf == null && ssf == null) {
                ref = new UnicastServerRef(port);
            } else {
                ref = new UnicastServerRef2(port, csf, ssf);
            }
            return ref.exportObject(obj, null, true);
        }
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

                    " cannot be used to specify an exporter!");
        }

        if (daemon) {
            if (csf == null && ssf == null) {
                new UnicastServerRef(port).exportObject(obj, null, true);
            } else {
                new UnicastServerRef2(port, csf, ssf).exportObject(obj, null, true);
            }
        } else if (exporter != null) {
            exporter.exportObject(obj, port, csf, ssf);
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

     * @since 1.2
     */
    public static Remote exportObject(Remote obj, int port)
        throws RemoteException
    {
        return exportObject(obj, new UnicastServerRef(port));
    }
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

         * to indicate that only a generated stub class should be used.  A
         * generated stub class must be used instead of a dynamic proxy
         * because the return value of this method is RemoteStub which a
         * dynamic proxy class cannot extend.
         */
        return (RemoteStub) exportObject(obj, new UnicastServerRef(true));
    }
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

     * @since 1.2
     */
    public static Remote exportObject(Remote obj, int port)
        throws RemoteException
    {
        return exportObject(obj, new UnicastServerRef(port));
    }
View Full Code Here

Examples of sun.rmi.server.UnicastServerRef

                    " cannot be used to specify an exporter!");
        }

        if (daemon) {
            if (csf == null && ssf == null) {
                new UnicastServerRef(port).exportObject(obj, null, true);
            } else {
                new UnicastServerRef2(port, csf, ssf).exportObject(obj, null, true);
            }
        } else if (exporter != null) {
            exporter.exportObject(obj, port, csf, ssf);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.