org.gcube.datatransfer.agent.impl.handlers
Class LocalFileTransferAsyncHandler
java.lang.Object
org.gcube.datatransfer.agent.impl.handlers.TransferHandler
org.gcube.datatransfer.agent.impl.handlers.LocalFileTransferAsyncHandler
- All Implemented Interfaces:
- Runnable
public class LocalFileTransferAsyncHandler
- extends TransferHandler
- Author:
- Andrea Manzi(CERN)
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bufferSize
public static int bufferSize
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)
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.