public class MultipleFileDownloadImpl extends MultipleFileTransfer<Download> implements MultipleFileDownload
Transfer.TransferState
subTransfers
listenerChain, monitor, state, stateChangeListeners
Constructor and Description |
---|
MultipleFileDownloadImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
String keyPrefix,
String bucketName,
Collection<? extends Download> downloads) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts all outstanding downloads.
|
String |
getBucketName()
Returns the name of the bucket from which files are downloaded.
|
String |
getKeyPrefix()
Returns the key prefix of the virtual directory being downloaded.
|
void |
waitForCompletion()
Waits for this transfer to complete.
|
collateFinalState, setState
addProgressListener, addProgressListener, addStateChangeListener, fireProgressEvent, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, unwrapExecutionException, waitForException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForException
public MultipleFileDownloadImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, String keyPrefix, String bucketName, Collection<? extends Download> downloads)
public String getKeyPrefix()
getKeyPrefix
in interface MultipleFileDownload
public String getBucketName()
getBucketName
in interface MultipleFileDownload
public void waitForCompletion() throws AmazonClientException, AmazonServiceException, InterruptedException
waitForCompletion
in interface Transfer
waitForCompletion
in class AbstractTransfer
AmazonClientException
- If any errors were encountered in the client while making the
request or handling the response.AmazonServiceException
- If any errors occurred in Amazon S3 while processing the
request.InterruptedException
- If this thread is interrupted while waiting for the transfer
to complete.public void abort() throws IOException
abort
in interface MultipleFileDownload
IOException
Copyright © 2019. All rights reserved.