com.netease.cloud.services.nos.transfer.internal
public class MultipleFileDownloadImpl extends MultipleFileTransfer implements MultipleFileDownload
Transfer.TransferState
subTransfers
monitor, progressListenerChain, 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.
|
collateFinalState
addProgressListener, addStateChangeListener, getDescription, getMonitor, getProgress, getState, isDone, removeProgressListener, removeStateChangeListener, rethrowExecutionException, setMonitor, setState, unwrapExecutionException, waitForCompletion, waitForException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProgressListener, getDescription, getProgress, getState, isDone, removeProgressListener, waitForCompletion, 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 abort() throws IOException
IOException
Copyright © 2017. All Rights Reserved.