Examples of UnicastServerRef


Examples of gnu.java.rmi.server.UnicastServerRef

  {
    this.port = port;
    //Is RMIXXXSocketFactory serializable
    //this.csf = csf;
    //this.ssf = ssf;
    this.ref = new UnicastServerRef(new ObjID(), port, serverSocketFactory);
    exportObject(this, port);
  }
View Full Code Here

Examples of gnu.java.rmi.server.UnicastServerRef

   */
  static Remote exportObject(Remote obj, int port,
                             RMIServerSocketFactory serverSocketFactory)
    throws RemoteException
  {
    UnicastServerRef sref = null;
    if (obj instanceof RemoteObject)
      sref = (UnicastServerRef) ((RemoteObject) obj).getRef();

    if (sref == null)
      sref = new UnicastServerRef(new ObjID(), port, serverSocketFactory);

    Remote stub = sref.exportObject(obj);
    addStub(obj, stub);
    return stub;
  }
View Full Code Here

Examples of gnu.java.rmi.server.UnicastServerRef

    throws NoSuchObjectException
  {
    if (obj instanceof RemoteObject)
      {
        deleteStub(obj);
        UnicastServerRef sref =
          (UnicastServerRef) ((RemoteObject) obj).getRef();
        return sref.unexportObject(obj, force);
      }
    // FIXME
    /* else
      {
        ;
View Full Code Here

Examples of gnu.java.rmi.server.UnicastServerRef

 
  static Remote exportObject(Remote obj, int port,
                             RMIServerSocketFactory serverSocketFactory)
    throws RemoteException
  {
    UnicastServerRef sref = null;
    if (obj instanceof RemoteObject)
      sref = (UnicastServerRef) ((RemoteObject) obj).getRef();

    if (sref == null)
      sref = new UnicastServerRef(new ObjID(), port, serverSocketFactory);

    Remote stub = sref.exportObject(obj);
    // addStub(obj, stub);
    // TODO Need to change the place of the stub repository
    return stub;
  }
View Full Code Here

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

                                       int port,
                                       RMIClientSocketFactory csf,
                                       RMIServerSocketFactory ssf,
                                       boolean useProxyStubs)
            throws RemoteException {
        UnicastServerRef sref;

        if (csf != null || ssf != null) {
            sref = new UnicastServerRef2(port, csf, ssf);
        } else {
            sref = new UnicastServerRef(port, csf, ssf);
        }
        Remote stub = ExportManager.exportObject(obj, sref,
                useProxyStubs);

        if (obj instanceof UnicastRemoteObject) {
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 org.apache.harmony.rmi.remoteref.UnicastServerRef

                                       int port,
                                       RMIClientSocketFactory csf,
                                       RMIServerSocketFactory ssf,
                                       boolean useProxyStubs)
            throws RemoteException {
        UnicastServerRef sref;

        if (csf != null || ssf != null) {
            sref = new UnicastServerRef2(port, csf, ssf);
        } else {
            sref = new UnicastServerRef(port, csf, ssf);
        }
        Remote stub = ExportManager.exportObject(obj, sref,
                useProxyStubs);

        if (obj instanceof UnicastRemoteObject) {
View Full Code Here

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 org.apache.harmony.rmi.remoteref.UnicastServerRef

                                       int port,
                                       RMIClientSocketFactory csf,
                                       RMIServerSocketFactory ssf,
                                       boolean useProxyStubs)
            throws RemoteException {
        UnicastServerRef sref;

        if (csf != null || ssf != null) {
            sref = new UnicastServerRef2(port, csf, ssf);
        } else {
            sref = new UnicastServerRef(port, csf, ssf);
        }
        Remote stub = ExportManager.exportObject(obj, sref,
                useProxyStubs);

        if (obj instanceof UnicastRemoteObject) {
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.