public class AgentLibrary extends Object implements AgentService, AgentServiceAsync
Constructor and Description |
---|
AgentLibrary(org.gcube.common.clients.delegates.ProxyDelegate<AgentServiceJAXWSStubs> config) |
Modifier and Type | Method and Description |
---|---|
void |
cancelTransfer(String transferId,
boolean forceCancel)
Cancel a scheduled/running transfer
|
ArrayList<org.gcube.datatransfer.common.outcome.FileTransferOutcome> |
copyLocalFiles(ArrayList<File> inputFiles,
String destinationFolder,
boolean overwrite,
boolean unzip) |
String |
createTreeSource(String sourceID,
String address,
int port) |
ArrayList<org.gcube.datatransfer.common.objs.LocalSource> |
getLocalSources(String path) |
<T extends org.gcube.datatransfer.common.outcome.TransferOutcome> |
getTransferOutcomes(String transferId,
Class<T> outcomeType)
/**
|
ArrayList<String> |
getTreeSources(String reader_or_writer_TYPE) |
String |
monitorTransfer(String transferId) |
org.gcube.datatransfer.common.agent.Types.MonitorTransferReportMessage |
monitorTransferWithProgress(String transferId) |
String |
removeGenericResource(String sourceID) |
String |
startTransfer(ArrayList<URI> inputURIs,
ArrayList<URI> outputURIs,
org.gcube.datatransfer.common.options.TransferOptions options) |
String |
startTransfer(ArrayList<URI> inputURIs,
String outputFolder,
org.gcube.datatransfer.common.options.TransferOptions options) |
Future<?> |
startTransfer(ArrayList<URI> inputURIs,
String outputFolder,
org.gcube.datatransfer.common.options.TransferOptions options,
org.gcube.common.clients.delegates.Callback callback) |
String |
startTransfer(DataSource source,
DataStorage storage,
org.gcube.datatransfer.common.options.TransferOptions options) |
String |
startTransfer(org.gcube.data.trees.patterns.Pattern patternInput,
String inputSourceID,
String outputStorageId) |
Future<?> |
startTransfer(org.gcube.data.trees.patterns.Pattern patternInput,
String inputSourceID,
String outputStorageId,
org.gcube.common.clients.delegates.Callback callback) |
ArrayList<org.gcube.datatransfer.common.outcome.FileTransferOutcome> |
startTransferSync(ArrayList<URI> inputURIs,
String outputFolder,
org.gcube.datatransfer.common.options.TransferOptions options) |
ArrayList<org.gcube.datatransfer.common.outcome.TreeTransferOutcome> |
startTransferSync(org.gcube.data.trees.patterns.Pattern patternInput,
String inputSourceID,
String outputStorageId) |
public AgentLibrary(org.gcube.common.clients.delegates.ProxyDelegate<AgentServiceJAXWSStubs> config)
public ArrayList<org.gcube.datatransfer.common.outcome.TreeTransferOutcome> startTransferSync(org.gcube.data.trees.patterns.Pattern patternInput, String inputSourceID, String outputStorageId)
startTransferSync
in interface AgentService
public String startTransfer(org.gcube.data.trees.patterns.Pattern patternInput, String inputSourceID, String outputStorageId) throws TransferException
TransferException
public ArrayList<org.gcube.datatransfer.common.outcome.FileTransferOutcome> startTransferSync(ArrayList<URI> inputURIs, String outputFolder, org.gcube.datatransfer.common.options.TransferOptions options) throws TransferException, ConfigurationException
startTransferSync
in interface AgentService
ConfigurationException
TransferException
public String startTransfer(ArrayList<URI> inputURIs, String outputFolder, org.gcube.datatransfer.common.options.TransferOptions options) throws TransferException, ConfigurationException
startTransfer
in interface AgentService
inputURLs
- outputFolder
- type
- overwrite
- storageManagerDetails
- TransferException
ConfigurationException
Exception
public void cancelTransfer(String transferId, boolean forceCancel) throws CancelTransferException
cancelTransfer
in interface AgentService
transferId
- forceStop
- cancel the transfer even if it's runningException
CancelTransferException
public ArrayList<org.gcube.datatransfer.common.outcome.FileTransferOutcome> copyLocalFiles(ArrayList<File> inputFiles, String destinationFolder, boolean overwrite, boolean unzip) throws TransferException
copyLocalFiles
in interface AgentService
inputFiles
- destinationFolder
- overwrite
- FileTransferOutcome
Exception
TransferException
public ArrayList<org.gcube.datatransfer.common.objs.LocalSource> getLocalSources(String path)
public Future<?> startTransfer(org.gcube.data.trees.patterns.Pattern patternInput, String inputSourceID, String outputStorageId, org.gcube.common.clients.delegates.Callback callback)
startTransfer
in interface AgentServiceAsync
public Future<?> startTransfer(ArrayList<URI> inputURIs, String outputFolder, org.gcube.datatransfer.common.options.TransferOptions options, org.gcube.common.clients.delegates.Callback callback) throws ConfigurationException
startTransfer
in interface AgentServiceAsync
ConfigurationException
public String monitorTransfer(String transferId) throws MonitorTransferException
monitorTransfer
in interface AgentService
MonitorTransferException
public <T extends org.gcube.datatransfer.common.outcome.TransferOutcome> ArrayList<T> getTransferOutcomes(String transferId, Class<T> outcomeType) throws GetTransferOutcomesException
AgentService
getTransferOutcomes
in interface AgentService
GetTransferOutcomesException
public String startTransfer(DataSource source, DataStorage storage, org.gcube.datatransfer.common.options.TransferOptions options) throws ConfigurationException, TransferException
startTransfer
in interface AgentService
ConfigurationException
TransferException
public String startTransfer(ArrayList<URI> inputURIs, ArrayList<URI> outputURIs, org.gcube.datatransfer.common.options.TransferOptions options) throws ConfigurationException, TransferException
startTransfer
in interface AgentService
ConfigurationException
TransferException
public org.gcube.datatransfer.common.agent.Types.MonitorTransferReportMessage monitorTransferWithProgress(String transferId) throws MonitorTransferException
monitorTransferWithProgress
in interface AgentService
MonitorTransferException
Copyright © 2016. All Rights Reserved.