org.gcube.datatransfer.agent.impl.handlers
Class LocalFileTransferAsyncHandler

java.lang.Object
  extended by org.gcube.datatransfer.agent.impl.handlers.TransferHandler
      extended by org.gcube.datatransfer.agent.impl.handlers.LocalFileTransferAsyncHandler
All Implemented Interfaces:
Runnable

public class LocalFileTransferAsyncHandler
extends TransferHandler

Author:
Andrea Manzi(CERN)

Field Summary
static int bufferSize
           
 
Fields inherited from class org.gcube.datatransfer.agent.impl.handlers.TransferHandler
destData, endIndex, errorHappened, inputFiles, logger, outPath, startIndex, timeout, transferId, transferType
 
Constructor Summary
LocalFileTransferAsyncHandler(String[] inputFiles, String outPath, String transferId, org.gcube.datatransfer.agent.stubs.datatransferagent.TransferType type, org.gcube.datatransfer.agent.stubs.datatransferagent.DestData data, int startIndex, int endIndex)
           
 
Method Summary
static long copyLarge(InputStream input, OutputStream output)
           
static void copyWithHttpClient(String inputURI, String outPutUri)
           
 void run()
           
 
Methods inherited from class org.gcube.datatransfer.agent.impl.handlers.TransferHandler
getTransferObjList, isErrorHappened, setTransferObj
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bufferSize

public static int bufferSize
Constructor Detail

LocalFileTransferAsyncHandler

public LocalFileTransferAsyncHandler(String[] inputFiles,
                                     String outPath,
                                     String transferId,
                                     org.gcube.datatransfer.agent.stubs.datatransferagent.TransferType type,
                                     org.gcube.datatransfer.agent.stubs.datatransferagent.DestData data,
                                     int startIndex,
                                     int endIndex)
Method Detail

run

public void run()

copyLarge

public static long copyLarge(InputStream input,
                             OutputStream output)
                      throws IOException
Throws:
IOException

copyWithHttpClient

public static void copyWithHttpClient(String inputURI,
                                      String outPutUri)
                               throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.