public class MultipleFileUploadImpl extends MultipleFileTransfer<Upload> implements MultipleFileUpload
Transfer.TransferState
Constructor and Description |
---|
MultipleFileUploadImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
String keyPrefix,
String bucketName,
Collection<? extends Upload> subTransfers) |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of the bucket to which files are uploaded.
|
String |
getKeyPrefix()
Returns the key prefix of the virtual directory being uploaded to.
|
Collection<? extends Upload> |
getSubTransfers()
Returns a collection of sub transfers associated with the multi file upload.
|
void |
waitForCompletion()
Waits for this transfer to complete.
|
collateFinalState, setState
addProgressListener, addProgressListener, addStateChangeListener, getDescription, getMonitor, getProgress, getState, isDone, notifyStateChangeListeners, removeProgressListener, removeProgressListener, removeStateChangeListener, setMonitor, waitForException
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProgressListener, addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, removeProgressListener, waitForException
public MultipleFileUploadImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, String keyPrefix, String bucketName, Collection<? extends Upload> subTransfers)
public String getKeyPrefix()
getKeyPrefix
in interface MultipleFileUpload
public String getBucketName()
getBucketName
in interface MultipleFileUpload
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 Collection<? extends Upload> getSubTransfers()
MultipleFileUpload
getSubTransfers
in interface MultipleFileUpload