Package sun.rmi.server

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


    out.writeByte (TransportConstants.Return);

    MarshalOutputStream objOut = new MarshalOutputStream (out);

    //Write return header
    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"});
View Full Code Here


    out.writeByte (TransportConstants.Return);

    MarshalOutputStream objOut = new MarshalOutputStream (out);

    //Write return header
    objOut.writeByte (TransportConstants.NormalReturn);
    uid.write (objOut);
   
    //Write a stub that points back to this port
    log.log (Level.FINEST, "Writing new stub");
    /* This used to write out a new stub, but since I've removed the stub code
View Full Code Here

    out.writeByte (TransportConstants.Return);

    MarshalOutputStream objOut = new MarshalOutputStream (out);

    //Write message header
    objOut.writeByte (TransportConstants.NormalReturn);
    uid.write (objOut);
   
    /* We don't do anything with this call because we don't have any actual
     * objects to keep track of. */

 
View Full Code Here

    out.writeByte (TransportConstants.Return);

    MarshalOutputStream objOut = new MarshalOutputStream (out);

    //Write message header
    objOut.writeByte (TransportConstants.NormalReturn);
    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");
View Full Code Here

    MarshalOutputStream objOut = new MarshalOutputStream (out);

    //Write message header
    if (returnValue instanceof Throwable) {
      log.log (Level.FINER, "Exceptional return");
      objOut.writeByte (TransportConstants.ExceptionalReturn);

      //If the exception is a RemoteException, wrap it in a RemoteException
      if (!(returnValue instanceof RemoteException)) {
        log.log (Level.FINEST, "Wrapping exception in RemoteException");
        returnValue = new RemoteException ("An error occured while processing the Computable object", (Throwable)returnValue);
View Full Code Here

        returnValue = new RemoteException ("An error occured while processing the Computable object", (Throwable)returnValue);
      }
    }
    else {
      log.log (Level.FINER, "Normal return");
      objOut.writeByte (TransportConstants.NormalReturn);
    }

    uid.write (objOut);
   
    //Write results
View Full Code Here

    out.writeByte (TransportConstants.Return);

    MarshalOutputStream objOut = new MarshalOutputStream (out);

    //Write message header
    objOut.writeByte (TransportConstants.NormalReturn);
    uid.write (objOut);
   
    //Write results
    log.log (Level.FINEST, "Writing results");
    if (lock instanceof Lock) {
View Full Code Here

    out.writeByte (TransportConstants.Return);

    MarshalOutputStream objOut = new MarshalOutputStream (out);

    //Write message header
    objOut.writeByte (TransportConstants.NormalReturn);
    uid.write (objOut);
   
    //Write results
    log.log (Level.FINEST, "Writing results");
    if (lock instanceof Lock) {
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.