public class MultipleFileUploadImpl extends MultipleFileTransfer<Upload> implements MultipleFileUpload
Transfer.TransferState
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucketName |
private java.lang.String |
keyPrefix |
subTransfers
listenerChain, monitor, state, stateChangeListeners
Constructor and Description |
---|
MultipleFileUploadImpl(java.lang.String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
java.lang.String keyPrefix,
java.lang.String bucketName,
java.util.Collection<? extends Upload> subTransfers) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBucketName()
Returns the name of the bucket to which files are uploaded.
|
java.lang.String |
getKeyPrefix()
Returns the key prefix of the virtual directory being uploaded to.
|
java.util.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, 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
private final java.lang.String keyPrefix
private final java.lang.String bucketName
public MultipleFileUploadImpl(java.lang.String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, java.lang.String keyPrefix, java.lang.String bucketName, java.util.Collection<? extends Upload> subTransfers)
public java.lang.String getKeyPrefix()
getKeyPrefix
in interface MultipleFileUpload
public java.lang.String getBucketName()
getBucketName
in interface MultipleFileUpload
public void waitForCompletion() throws AmazonClientException, AmazonServiceException, java.lang.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.java.lang.InterruptedException
- If this thread is interrupted while waiting for the transfer
to complete.public java.util.Collection<? extends Upload> getSubTransfers()
MultipleFileUpload
getSubTransfers
in interface MultipleFileUpload