public class MultipleFileDownloadImpl extends MultipleFileTransfer implements MultipleFileDownload
Transfer.TransferState
subTransfers
monitor, progressListenerChain, progressListenerChainCallbackExecutor, state, stateChangeListeners
构造器和说明 |
---|
MultipleFileDownloadImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
String keyPrefix,
String bucketName,
Collection<? extends Download> downloads) |
MultipleFileDownloadImpl(String description,
TransferProgress transferProgress,
ProgressListenerChain progressListenerChain,
String keyPrefix,
String bucketName,
Collection<? extends Download> downloads)
|
限定符和类型 | 方法和说明 |
---|---|
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)
@Deprecated public MultipleFileDownloadImpl(String description, TransferProgress transferProgress, ProgressListenerChain progressListenerChain, String keyPrefix, String bucketName, Collection<? extends Download> downloads)
public String getKeyPrefix()
getKeyPrefix
在接口中 MultipleFileDownload
public String getBucketName()
getBucketName
在接口中 MultipleFileDownload
public void waitForCompletion() throws SCSClientException, SCSServiceException, InterruptedException
waitForCompletion
在接口中 Transfer
waitForCompletion
在类中 AbstractTransfer
SCSClientException
- If any errors were encountered in the client while making the
request or handling the response.SCSServiceException
- 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
在接口中 MultipleFileDownload
IOException
Copyright © 2016. All rights reserved.