Package net.sourceforge.fullsync.buffer

Examples of net.sourceforge.fullsync.buffer.BlockBuffer


      try {
        logger.info("Synchronization started");
        logger.info("  source:      " + taskTree.getSource().getConnectionDescription().getDisplayPath());
        logger.info("  destination: " + taskTree.getDestination().getConnectionDescription().getDisplayPath());

        BlockBuffer buffer = new BlockBuffer(logger);
        TaskExecutor queue = new FillBufferTaskExecutor(buffer);

        if (listener != null) {
          queue.addTaskFinishedListener(listener);
        }

        buffer.load();
        queue.enqueue(taskTree);
        queue.flush();
        buffer.unload();

        taskTree.getSource().flush();
        taskTree.getDestination().flush();
        taskTree.getSource().close();
        taskTree.getDestination().close();
View Full Code Here


  }

  public IoStatistics getIoStatistics(TaskTree taskTree) {
    // HACK omg, that's not the way io stats are intended to be generated / used
    Logger logger = LoggerFactory.getLogger("FullSync");
    BlockBuffer buffer = new BlockBuffer(logger);
    TaskExecutor queue = new FillBufferTaskExecutor(buffer);
    return queue.createStatistics(taskTree);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.fullsync.buffer.BlockBuffer

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.