Package eu.mosaic_cloud.interoperability.core

Examples of eu.mosaic_cloud.interoperability.core.Message


   
    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

  }

  @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

  {
    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

    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());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here

    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());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here

    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());
   
    return (this.sendRequest(message, token, Void.class));
  }
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.