Package eu.mosaic_cloud.tools.callbacks.core

Examples of eu.mosaic_cloud.tools.callbacks.core.CallbackCompletionObserver


    this.transcript.traceDebugging("deleting the file with path `%s` and extra `%{object}`"
                            , fullPath, extra);
    final CallbackCompletion<Void> completion = this.connector.removeFile(fullPath);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here


  public CallbackCompletion<Void> removeDirectory(final String fullPath, final TExtra extra) {
    this.transcript.traceDebugging("deleting the directory with path `%s` and extra `%{object}`" , fullPath, extra);
    final CallbackCompletion<Void> completion = this.connector.removeDirectory(fullPath);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

  public CallbackCompletion<Void> makeDirectory(final String dirNameFullPath, final TExtra extra) {
    this.transcript.traceDebugging("making directory with path `%s` and extra `%{object}`" , dirNameFullPath, extra);
    final CallbackCompletion<Void> completion = this.connector.makeDirectory(dirNameFullPath);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

  public CallbackCompletion<List<LsElement>> listDirectory(final String path, final TExtra extra) {
    this.transcript.traceDebugging("list directory with path `%s` and extra `%{object}`" , path, extra);
    final CallbackCompletion<List<LsElement>> completion = this.connector.listDirectory(path);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

    this.transcript.traceDebugging("opening file with path `%s` with extra `%{object}` " , path, extra);
    final CallbackCompletion<? extends eu.mosaic_cloud.connectors.dfs.IDfsFileConnector> completion = this.connector.openFile(path, mode);
   
    final DeferredFuture<GenericDfsFileConnector<TFileContext, TFileExtra>> future = (DeferredFuture) DeferredFuture.create (GenericDfsFileConnector.class);
   
    completion.observe(new CallbackCompletionObserver() {
     
      @Override
      public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
        GenericDfsConnector.this.transcript.traceDebugging("Completed");
        assert (completion == completion_);
View Full Code Here

   
    this.transcript.traceDebugging("copying the file with path `%s` to `%s` and extra `%{object}`" , sourceFullPath, destinationFullPath, extra);
    final CallbackCompletion<Void> completion = this.connector.copyFile(sourceFullPath, destinationFullPath);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

   
    this.transcript.traceDebugging("moving the file with path `%s` to `%s` and extra `%{object}`" , sourceFullPath, destinationFullPath, extra);
    final CallbackCompletion<Void> completion = this.connector.moveFile(sourceFullPath, destinationFullPath);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

    this.transcript.traceDebugging("opening file with path `%s` with extra `%{object}` " , path, extra);
    final CallbackCompletion<? extends eu.mosaic_cloud.connectors.dfs.hdfs.IHadoopDfsFileConnector> completion = this.connector.openFile(path, mode);
   
    final DeferredFuture<HadoopDfsFileConnector<TFileContext, TFileExtra>> future = (DeferredFuture) DeferredFuture.create (GenericDfsFileConnector.class);
   
    completion.observe(new CallbackCompletionObserver() {
     
      @Override
      public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
        assert (completion == completion_);
       
View Full Code Here

   
    this.transcript.traceDebugging("Seeking file with extra `%{object}`" , extra);
    final CallbackCompletion<Void> completion = this.file.seek(position);
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

   
    this.transcript.traceDebugging("Flusing file with extra `%{object}`" , extra);
    final CallbackCompletion<Void> completion = this.file.flush();
   
    if(this.callback != null) {
      completion.observe(new CallbackCompletionObserver() {
       
        @Override
        public CallbackCompletion<Void> completed(CallbackCompletion<?> completion_) {
          assert (completion == completion_);
         
View Full Code Here

TOP

Related Classes of eu.mosaic_cloud.tools.callbacks.core.CallbackCompletionObserver

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.