Package org.apache.tajo.pullserver.listener

Examples of org.apache.tajo.pullserver.listener.FileCloseListener


      if (ch.getPipeline().get(SslHandler.class) == null) {
        final FadvisedFileRegionWrapper filePart = new FadvisedFileRegionWrapper(spill,
            file.startOffset, file.length(), manageOsCache, readaheadLength,
            readaheadPool, file.getFile().getAbsolutePath());
        writeFuture = ch.write(filePart);
        writeFuture.addListener(new FileCloseListener(filePart));
      } else {
        // HTTPS cannot be done with zero copy.
        final FadvisedChunkedFile chunk = new FadvisedChunkedFile(spill,
            file.startOffset, file.length, sslFileBufferSize,
            manageOsCache, readaheadLength, readaheadPool,
View Full Code Here


      if (ch.getPipeline().get(SslHandler.class) == null) {
        final FadvisedFileRegionWrapper partition = new FadvisedFileRegionWrapper(spill,
            file.startOffset, file.length(), manageOsCache, readaheadLength,
            readaheadPool, file.getFile().getAbsolutePath());
        writeFuture = ch.write(partition);
        writeFuture.addListener(new FileCloseListener(partition));
      } else {
        // HTTPS cannot be done with zero copy.
        final FadvisedChunkedFile chunk = new FadvisedChunkedFile(spill,
            file.startOffset, file.length, sslFileBufferSize,
            manageOsCache, readaheadLength, readaheadPool,
View Full Code Here

TOP

Related Classes of org.apache.tajo.pullserver.listener.FileCloseListener

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.