public abstract class Transferer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Client |
client |
protected org.gcube.data.transfer.model.Destination |
destination |
protected Set<org.gcube.data.transfer.model.PluginInvocation> |
invocations |
protected boolean |
prepared |
protected Source |
source |
| Modifier | Constructor and Description |
|---|---|
protected |
Transferer(Client client) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDestination() |
protected void |
checkPluginInvocations() |
protected void |
checkSource() |
protected void |
clean() |
protected TransferResult |
doTheTransfer(org.gcube.data.transfer.model.TransferRequest request) |
Transferer |
fromURL(URL sourceURL) |
org.gcube.data.transfer.model.TransferCapabilities |
getDestinationCapabilities() |
Transferer |
localFile(File f) |
Transferer |
localFile(String path) |
protected void |
prepare() |
protected abstract org.gcube.data.transfer.model.TransferRequest |
prepareRequest() |
void |
reset() |
void |
setDestination(org.gcube.data.transfer.model.Destination destination) |
void |
setInvocations(Set<org.gcube.data.transfer.model.PluginInvocation> invocations) |
Transferer |
storageFileId(String fileId) |
TransferResult |
transfer() |
protected Client client
protected Source source
protected boolean prepared
protected org.gcube.data.transfer.model.Destination destination
protected Set<org.gcube.data.transfer.model.PluginInvocation> invocations
protected Transferer(Client client)
public void setDestination(org.gcube.data.transfer.model.Destination destination)
public void setInvocations(Set<org.gcube.data.transfer.model.PluginInvocation> invocations)
public Transferer localFile(File f) throws InvalidSourceException
InvalidSourceExceptionpublic Transferer localFile(String path) throws InvalidSourceException
InvalidSourceExceptionpublic Transferer storageFileId(String fileId) throws InvalidSourceException
InvalidSourceExceptionpublic Transferer fromURL(URL sourceURL) throws InvalidSourceException
InvalidSourceExceptionpublic void reset()
public TransferResult transfer() throws SourceNotSetException, InvalidSourceException, FailedTransferException, InitializationException, InvalidDestinationException, DestinationNotSetException
protected TransferResult doTheTransfer(org.gcube.data.transfer.model.TransferRequest request) throws FailedTransferException
FailedTransferExceptionprotected void checkDestination()
throws InvalidDestinationException,
DestinationNotSetException,
UnreachableNodeException
protected void checkSource()
throws SourceNotSetException,
InvalidSourceException
protected void checkPluginInvocations()
protected abstract org.gcube.data.transfer.model.TransferRequest prepareRequest()
throws InitializationException
InitializationExceptionprotected void prepare()
throws InitializationException
InitializationExceptionprotected void clean()
public org.gcube.data.transfer.model.TransferCapabilities getDestinationCapabilities()
throws UnreachableNodeException
UnreachableNodeExceptionCopyright © 2021. All Rights Reserved.