Package eu.mosaic_cloud.platform.interop.idl.IdlCommon

Examples of eu.mosaic_cloud.platform.interop.idl.IdlCommon.CompletionToken


 
  @Override
  public CallbackCompletion<Void> copyFile(String sourceFullPath,
      String destinationFullPath) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Copying `%s` to `%s`(with request token `%s`)...",
        sourceFullPath, destinationFullPath, token.getMessageId ());
   
    final DFSPayloads.CopyFile.Builder copyFileBuilder = DFSPayloads.CopyFile.newBuilder();
    copyFileBuilder.setToken(token);
    copyFileBuilder.setFromPath(sourceFullPath);
    copyFileBuilder.setToPath(destinationFullPath);
View Full Code Here


 
  @Override
  public CallbackCompletion<Void> moveFile(String sourceFullPath,
      String destinationFullPath) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Moving `%s` to `%s`(with request token `%s`)...",
        sourceFullPath, destinationFullPath, token.getMessageId ());
   
    final DFSPayloads.MoveFile.Builder moveFileBuilder = DFSPayloads.MoveFile.newBuilder();
    moveFileBuilder.setToken(token);
    moveFileBuilder.setFromPath(sourceFullPath);
    moveFileBuilder.setToPath(destinationFullPath);
View Full Code Here

    return (this.sendRequest(message, token, Void.class));
  }
 
  public CallbackCompletion<Void> seek(String fileHandlerUUID, long position) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Seeking file with fileHandler `%s` (with request token `%s`)...",
        fileHandlerUUID, token.getMessageId ());
   
    final DFSPayloads.SeekFile.Builder seekFileBuilder = DFSPayloads.SeekFile.newBuilder();
    seekFileBuilder.setToken(token);
    seekFileBuilder.setFileHandler(fileHandlerUUID);
    seekFileBuilder.setPosition(position);
View Full Code Here

   
  }

  public CallbackCompletion<Void> flush(String fileHandlerUUID) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Flushing file with fileHandler `%s` (with request token `%s`)...",
        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());
View Full Code Here

  @Override
  public CallbackCompletion<Void> destroy ()
  {
    this.transcript.traceDebugging ("destroying the proxy...");
    final CompletionToken token = this.generateToken ();
    final AbortRequest.Builder requestBuilder = AbortRequest.newBuilder ();
    requestBuilder.setToken (token);
    return (this.disconnect (new Message (DFSMessage.ABORTED, requestBuilder.build ())));
  }
View Full Code Here

  }
 
  @Override
  public CallbackCompletion<Void> removeFile(String fullPath) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Deleting file `%s` (with request token `%s`)...", fullPath, token.getMessageId ());
   
    final DFSPayloads.RemoveFile.Builder removeFileBuilder = DFSPayloads.RemoveFile.newBuilder();
    removeFileBuilder.setToken(token);
    removeFileBuilder.setFullPath(fullPath);
    final Message message = new Message(DFSMessage.REMOVE_FILE, removeFileBuilder.build());
View Full Code Here

  }

  @Override
  public CallbackCompletion<Void> removeDirectory(String fullPath) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Deleting directory `%s` (with request token `%s`)...", fullPath, token.getMessageId ());
   
    final DFSPayloads.RemoveDir.Builder removeDirBuilder = DFSPayloads.RemoveDir.newBuilder();
    removeDirBuilder.setToken(token);
    removeDirBuilder.setFullPath(fullPath);
    final Message message = new Message(DFSMessage.REMOVE_DIR, removeDirBuilder.build());
View Full Code Here

  }

  @Override
  public CallbackCompletion<Void> makeDirectory(String dirNameFullPath) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Making `%s` (with request token `%s`)...", dirNameFullPath, token.getMessageId ());
   
    final DFSPayloads.MakeDir.Builder makeDirBuilder = DFSPayloads.MakeDir.newBuilder();
    makeDirBuilder.setToken(token);
    makeDirBuilder.setFullPath(dirNameFullPath);
    final Message message = new Message(DFSMessage.MKDIR, makeDirBuilder.build());
View Full Code Here

 
  @Override
  @SuppressWarnings ("unchecked")
  public CallbackCompletion<List<LsElement>> listDirectory(String path) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Listing `%s` (with request token `%s`)...", path, token.getMessageId ());
   
    final DFSPayloads.ListDir.Builder listDirBuilder = DFSPayloads.ListDir.newBuilder();
    listDirBuilder.setToken(token);
    listDirBuilder.setFullPath(path);
    final Message message = new Message(DFSMessage.LIST, listDirBuilder.build());
View Full Code Here

  @Override
  public abstract CallbackCompletion<TDfsFileConnector> openFile(String path, DfsModes mode);
 
  protected CallbackCompletion<TDfsFileConnector> openFile(String path, DfsModes mode, Class<TDfsFileConnector> connectorClass) {
   
    final CompletionToken token = this.generateToken();
    this.transcript.traceDebugging ("Opening file: `%s` (with request token `%s`)...", path, token.getMessageId ());

    final DFSPayloads.OpenFile.Builder openFileBuilder = DFSPayloads.OpenFile.newBuilder();
    openFileBuilder.setToken(token);
    openFileBuilder.setFullPath(path);
    openFileBuilder.setMode(translateOpenMode(mode));
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.platform.interop.idl.IdlCommon.CompletionToken

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.