Package eu.mosaic_cloud.interoperability.core

Examples of eu.mosaic_cloud.interoperability.core.Message


   
    final DFSPayloads.WriteFile.Builder writeFileBuilder = DFSPayloads.WriteFile.newBuilder();
    writeFileBuilder.setToken(token);
    writeFileBuilder.setFileHandler(fileHandlerUUID);
    writeFileBuilder.setData(ByteString.copyFrom(data));
    final Message message = new Message(DFSHandlerMessage.WRITE, writeFileBuilder.build());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here


    final DFSPayloads.ReadFile.Builder readFileBuilder = DFSPayloads.ReadFile.newBuilder();
    readFileBuilder.setToken(token);
    readFileBuilder.setFileHandler(fileHandlerUUID);
    readFileBuilder.setNumBytes(numOfBytes);
   
    final Message message = new Message(DFSHandlerMessage.READ, readFileBuilder.build());
   
    return (this.sendRequest(message, token, byte[].class)); //TODO check if this is okay
  }
View Full Code Here

    final DFSPayloads.CloseFile.Builder closeFileBuilder = DFSPayloads.CloseFile.newBuilder();
    closeFileBuilder.setToken(token);
    closeFileBuilder.setFileHandler(fileHandlerUUID);
   
    final Message message = new Message(DFSHandlerMessage.CLOSE, closeFileBuilder.build());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here

   
    final DFSPayloads.CopyFile.Builder copyFileBuilder = DFSPayloads.CopyFile.newBuilder();
    copyFileBuilder.setToken(token);
    copyFileBuilder.setFromPath(sourceFullPath);
    copyFileBuilder.setToPath(destinationFullPath);
    final Message message = new Message(DFSMessage.COPY, copyFileBuilder.build());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here

   
    final DFSPayloads.MoveFile.Builder moveFileBuilder = DFSPayloads.MoveFile.newBuilder();
    moveFileBuilder.setToken(token);
    moveFileBuilder.setFromPath(sourceFullPath);
    moveFileBuilder.setToPath(destinationFullPath);
    final Message message = new Message(DFSMessage.MOVE, moveFileBuilder.build());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here

   
    final DFSPayloads.SeekFile.Builder seekFileBuilder = DFSPayloads.SeekFile.newBuilder();
    seekFileBuilder.setToken(token);
    seekFileBuilder.setFileHandler(fileHandlerUUID);
    seekFileBuilder.setPosition(position);
    final Message message = new Message(DFSHandlerMessage.SEEK, seekFileBuilder.build());
   
    return (this.sendRequest(message, token, Void.class));
   
  }
View Full Code Here

        fileHandlerUUID, token.getMessageId ());
   
    final DFSPayloads.FlushFile.Builder flushFileBuilder = DFSPayloads.FlushFile.newBuilder();
    flushFileBuilder.setToken(token);
    flushFileBuilder.setFileHandler(fileHandlerUUID);
    final Message message = new Message(DFSHandlerMessage.FLUSH, flushFileBuilder.build());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here

  }
 
  @Override
  public CallbackCompletion<Void> initialize() {
    this.transcript.traceDebugging ("initializing the proxy...");
    return (this.connect (DFSSession.CONNECTOR, new Message (DFSMessage.ACCESS, null)));
  }
View Full Code Here

   */
  public void sendCancel (final Session session, final String consumerTag)
  {
    final AmqpPayloads.ServerCancelRequest.Builder cancelPayload = ServerCancelRequest.newBuilder ();
    cancelPayload.setConsumerTag (consumerTag);
    final Message message = new Message (AmqpMessage.SERVER_CANCEL, cancelPayload.build ());
    this.publishResponse (session, message);
    this.logger.trace ("AmqpResponseTransmitter - Sent CANCEL message");
  }
View Full Code Here

   */
  public void sendCancelOk (final Session session, final String consumerTag)
  {
    final AmqpPayloads.CancelOkMessage.Builder cancelPayload = CancelOkMessage.newBuilder ();
    cancelPayload.setConsumerTag (consumerTag);
    final Message message = new Message (AmqpMessage.CANCEL_OK, cancelPayload.build ());
    // NOTE: send response
    this.publishResponse (session, message);
    this.logger.trace ("AmqpResponseTransmitter - Sent CANCEL ok message");
  }
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.interoperability.core.Message

Copyright © 2018 www.massapicom. 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.