org.gcube.datatransfer.agent.library.proxies
Interface AgentService
- All Known Implementing Classes:
- AgentLibrary
public interface AgentService
- Author:
- Andrea Manzi(CERN)
|
Method Summary |
void |
cancelTransfer(String transferId,
boolean forceCancel)
|
ArrayList<FileTransferOutcome> |
copyLocalFiles(ArrayList<File> inputFiles,
String destinationFolder,
boolean overwrite,
boolean unzip)
|
|
getTransferOutcomes(String transferId,
Class<T> outcomeType)
|
String |
monitorTransfer(String transferId)
|
String |
startTransfer(ArrayList<URI> inputURIs,
String outputFolder,
TransferOptions options)
|
String |
startTransfer(DataSource source,
DataStorage storage,
TransferOptions options)
|
ArrayList<FileTransferOutcome> |
startTransferSync(ArrayList<URI> inputURIs,
String outputFolder,
TransferOptions options)
|
ArrayList<TreeTransferOutcome> |
startTransferSync(org.gcube.data.trees.patterns.Pattern patternInput,
String inputSourceID,
String outputStorageId)
|
startTransfer
String startTransfer(DataSource source,
DataStorage storage,
TransferOptions options)
throws ConfigurationException,
TransferException
- Parameters:
source - storage - options -
- Returns:
-
- Throws:
ConfigurationException
TransferException
startTransferSync
ArrayList<TreeTransferOutcome> startTransferSync(org.gcube.data.trees.patterns.Pattern patternInput,
String inputSourceID,
String outputStorageId)
- Parameters:
patternInput - inputSourceID - outputStorageId -
- Returns:
- ArrayList
- Throws:
TransferException
startTransfer
String startTransfer(ArrayList<URI> inputURIs,
String outputFolder,
TransferOptions options)
throws ConfigurationException,
TransferException
- Parameters:
inputURIs - outputFolder - options -
- Returns:
-
- Throws:
ConfigurationException
TransferException
cancelTransfer
void cancelTransfer(String transferId,
boolean forceCancel)
throws CancelTransferException
- Parameters:
transferId - forceCancel -
- Throws:
CancelTransferException
monitorTransfer
String monitorTransfer(String transferId)
throws MonitorTransferException
- Parameters:
transferId -
- Returns:
-
- Throws:
MonitorTransferException
getTransferOutcomes
<T extends TransferOutcome> ArrayList<T> getTransferOutcomes(String transferId,
Class<T> outcomeType)
throws GetTransferOutcomesException
- Parameters:
transferId - outcomeType -
- Returns:
-
- Throws:
GetTransferOutcomesException
startTransferSync
ArrayList<FileTransferOutcome> startTransferSync(ArrayList<URI> inputURIs,
String outputFolder,
TransferOptions options)
throws TransferException,
ConfigurationException
- Parameters:
inputURLs - outputFolder - type - overwrite - storageManagerDetails -
- Returns:
-
- Throws:
TransferException
ConfigurationException
copyLocalFiles
ArrayList<FileTransferOutcome> copyLocalFiles(ArrayList<File> inputFiles,
String destinationFolder,
boolean overwrite,
boolean unzip)
throws TransferException
- Parameters:
inputFiles - destinationFolder - overwrite - unzip -
- Returns:
-
- Throws:
TransferException
Copyright © 2012. All Rights Reserved.