Package sun.rmi.server

Examples of sun.rmi.server.MarshalOutputStream.writeObject()


    objOut.writeByte (TransportConstants.NormalReturn);
    uid.write (objOut);
   
    //Write a list of valid lookup names
    log.log (Level.FINEST, "Writing list of valid lookup names");
    objOut.writeObject (new String[] {"ComputeEngine"});

    objOut.flush ();
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processListCall");
  }
View Full Code Here


    log.log (Level.FINEST, "Writing new stub");
    /* This used to write out a new stub, but since I've removed the stub code
     * from the source base, I'm just writing out null here so I can get it to
     * compile.  This won't work, but this class has been deprecated, so I don't
     * really care. */
    objOut.writeObject (null);

    objOut.flush ();
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processLookupCall");
  }
View Full Code Here

    uid.write (objOut);

    //If the lease we were passed has a valid VM ID, write it
    if (lease.getVMID () != null) {
      log.log (Level.FINEST, "Writing old lease object");
      objOut.writeObject (lease);
    }
    //If not, create a valid lease and write it
    else {
      log.log (Level.FINEST, "Writing new lease object");
      objOut.writeObject (new Lease (new VMID (), lease.getValue ()));
View Full Code Here

      objOut.writeObject (lease);
    }
    //If not, create a valid lease and write it
    else {
      log.log (Level.FINEST, "Writing new lease object");
      objOut.writeObject (new Lease (new VMID (), lease.getValue ()));
    }

    objOut.flush ();
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processDirtyCall");
View Full Code Here

    uid.write (objOut);
   
    //Write results
    log.log (Level.FINEST, "Writing results");
    objOut.writeObject (returnValue);

    objOut.flush ();
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processComputeCall");
  }
View Full Code Here

   
    //Write results
    log.log (Level.FINEST, "Writing results");
    if (lock instanceof Lock) {
      log.log (Level.FINE, "Process is not complete");
      objOut.writeObject (null);
    }
    else {
      log.log (Level.FINE, "Process is complete");
      objOut.writeObject (lock);
      lockbox.remove (id);
View Full Code Here

      log.log (Level.FINE, "Process is not complete");
      objOut.writeObject (null);
    }
    else {
      log.log (Level.FINE, "Process is complete");
      objOut.writeObject (lock);
      lockbox.remove (id);
    }
   
    objOut.flush ();
View Full Code Here

     * @exception Exception can raise any exception
     */
    public
    void snapshot(OutputStream out, Object value) throws Exception {
        MarshalOutputStream s = new MarshalOutputStream(out);
        s.writeObject(value);
        s.flush();
    }

    /**
     * Read the snapshot object from a stream and returns the snapshot.
View Full Code Here

     */
    public
    void writeUpdate(LogOutputStream out, Object value) throws Exception {

        MarshalOutputStream s = new MarshalOutputStream(out);
        s.writeObject(value);
        s.flush();
    }

    /**
     * Reads a stably logged update (a serializable object) from a
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.