public class DownloadFileRequest extends Object
Constructor and Description |
---|
DownloadFileRequest(String bucketName,
String objectKey)
Constructor
|
DownloadFileRequest(String bucketName,
String objectKey,
String downloadFile)
Constructor
|
DownloadFileRequest(String bucketName,
String objectKey,
String downloadFile,
long partSize)
Constructor
|
DownloadFileRequest(String bucketName,
String objectKey,
String downloadFile,
long partSize,
int taskNum)
Constructor
|
DownloadFileRequest(String bucketName,
String objectKey,
String downloadFile,
long partSize,
int taskNum,
boolean enableCheckpoint)
Constructor
|
DownloadFileRequest(String bucketName,
String objectKey,
String downloadFile,
long partSize,
int taskNum,
boolean enableCheckpoint,
String checkpointFile)
Constructor
|
DownloadFileRequest(String bucketName,
String objectKey,
String downloadFile,
long partSize,
int taskNum,
boolean enableCheckpoint,
String checkpointFile,
String versionId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Obtain the bucket name.
|
CacheOptionEnum |
getCacheOption()
Obtain the control option of the read-ahead cache.
|
String |
getCheckpointFile()
File used to record download progresses in resumable mode
|
String |
getDownloadFile()
Obtain the path to the to-be-downloaded file.
|
String |
getIfMatchTag()
Obtain the ETag verification conditions for downloading the object.
|
Date |
getIfModifiedSince()
Obtain the time conditions set for downloading the object.
|
String |
getIfNoneMatchTag()
Obtain the ETag verification conditions for downloading the object.
|
Date |
getIfUnmodifiedSince()
Obtain the time conditions for downloading the object.
|
String |
getObjectKey()
Obtain the object name.
|
long |
getPartSize()
Obtain the part size.
|
long |
getProgressInterval()
Obtain the callback threshold of the data transfer listener.
|
ProgressListener |
getProgressListener()
Obtain the data transfer listener.
|
int |
getTaskNum()
Obtain the maximum number of threads used for processing download tasks concurrently.
|
String |
getTempDownloadFile()
Obtain the temporary file generated during the download.
|
long |
getTtl()
Obtain the cache data expiration time.
|
String |
getVersionId()
Obtain the object version ID.
|
boolean |
isEnableCheckpoint()
Identify whether the resumable mode is enabled.
|
void |
setBucketName(String bucketName)
Set the bucket name.
|
void |
setCacheOption(CacheOptionEnum cacheOption)
Set the control option of the read-ahead cache.
|
void |
setCheckpointFile(String checkpointFile)
Specify a file used to record resumable download progresses.
|
void |
setDownloadFile(String downloadFile)
Set the path to the to-be-downloaded file.
|
void |
setEnableCheckpoint(boolean enableCheckpoint)
Specify whether to enable the resumable mode.
|
void |
setIfMatchTag(String ifMatchTag)
Set the ETag verification conditions for downloading the object.
|
void |
setIfModifiedSince(Date ifModifiedSince)
Set the time conditions set for downloading the object.
|
void |
setIfNoneMatchTag(String ifNoneMatchTag)
Set the ETag verification conditions for downloading the object.
|
void |
setIfUnmodifiedSince(Date ifUnmodifiedSince)
Set the time conditions for downloading the object.
|
void |
setObjectKey(String objectKey)
Set the object name.
|
void |
setPartSize(long partSize)
Set the part size.
|
void |
setProgressInterval(long progressInterval)
Set the callback threshold of the data transfer listener.
|
void |
setProgressListener(ProgressListener progressListener)
Set the data transfer listener.
|
void |
setTaskNum(int taskNum)
Set the maximum number of threads used for processing download tasks concurrently.
|
void |
setTtl(long ttl)
Set the cache data expiration time.
|
void |
setVersionId(String versionId)
Set the version ID of the object.
|
String |
toString() |
public DownloadFileRequest(String bucketName, String objectKey)
bucketName
- Bucket nameobjectKey
- Object namepublic DownloadFileRequest(String bucketName, String objectKey, String downloadFile)
bucketName
- Bucket nameobjectKey
- Object namedownloadFile
- Path to the to-be-downloaded filepublic DownloadFileRequest(String bucketName, String objectKey, String downloadFile, long partSize)
bucketName
- Bucket nameobjectKey
- Object namedownloadFile
- Path to the to-be-downloaded filepartSize
- Part sizepublic DownloadFileRequest(String bucketName, String objectKey, String downloadFile, long partSize, int taskNum)
bucketName
- Bucket nameobjectKey
- Object namedownloadFile
- Path to the to-be-downloaded filepartSize
- Part sizetaskNum
- Maximum number of threads used for processing download tasks concurrentlypublic DownloadFileRequest(String bucketName, String objectKey, String downloadFile, long partSize, int taskNum, boolean enableCheckpoint)
bucketName
- Bucket nameobjectKey
- Object namedownloadFile
- Path to the to-be-downloaded filepartSize
- Part sizetaskNum
- Maximum number of threads used for processing download tasks concurrentlyenableCheckpoint
- Whether to enable the resumable modepublic DownloadFileRequest(String bucketName, String objectKey, String downloadFile, long partSize, int taskNum, boolean enableCheckpoint, String checkpointFile)
bucketName
- Bucket nameobjectKey
- Object namedownloadFile
- Path to the to-be-downloaded filepartSize
- Part sizetaskNum
- Maximum number of threads used for processing download tasks concurrentlyenableCheckpoint
- Whether to enable the resumable modecheckpointFile
- File used to record download progresses in resumable modepublic DownloadFileRequest(String bucketName, String objectKey, String downloadFile, long partSize, int taskNum, boolean enableCheckpoint, String checkpointFile, String versionId)
bucketName
- Bucket nameobjectKey
- Object namedownloadFile
- Path to the to-be-downloaded filepartSize
- Part sizetaskNum
- Maximum number of threads used for processing download tasks concurrentlyenableCheckpoint
- Whether to enable the resumable modecheckpointFile
- File used to record download progresses in resumable modeversionId
- Version ID of the objectpublic String getBucketName()
public void setBucketName(String bucketName)
bucketName
- Bucket namepublic String getObjectKey()
public void setObjectKey(String objectKey)
objectKey
- Object namepublic String getDownloadFile()
public void setDownloadFile(String downloadFile)
downloadFile
- Path to the to-be-downloaded filepublic long getPartSize()
public void setPartSize(long partSize)
partSize
- Part sizepublic int getTaskNum()
public void setTaskNum(int taskNum)
taskNum
- Maximum number of threads used for processing download tasks concurrentlypublic boolean isEnableCheckpoint()
public void setEnableCheckpoint(boolean enableCheckpoint)
enableCheckpoint
- Identifier specifying whether the resumable mode is enabledpublic String getCheckpointFile()
public void setCheckpointFile(String checkpointFile)
checkpointFile
- File used to record the download progresspublic String getTempDownloadFile()
public Date getIfModifiedSince()
public void setIfModifiedSince(Date ifModifiedSince)
ifModifiedSince
- Time condition set for downloading the objectpublic Date getIfUnmodifiedSince()
public void setIfUnmodifiedSince(Date ifUnmodifiedSince)
ifUnmodifiedSince
- Time condition set for downloading the objectpublic String getIfMatchTag()
public void setIfMatchTag(String ifMatchTag)
ifMatchTag
- ETag verification condition set for downloading the objectpublic String getIfNoneMatchTag()
public void setIfNoneMatchTag(String ifNoneMatchTag)
ifNoneMatchTag
- ETag verification condition set for downloading the objectpublic String getVersionId()
public void setVersionId(String versionId)
versionId
- Version ID of the objectpublic ProgressListener getProgressListener()
public void setProgressListener(ProgressListener progressListener)
progressListener
- Data transfer listenerpublic long getProgressInterval()
public void setProgressInterval(long progressInterval)
progressInterval
- Callback threshold of the data transfer listenerpublic CacheOptionEnum getCacheOption()
public void setCacheOption(CacheOptionEnum cacheOption)
cacheOption
- Control option of the read-ahead cachepublic long getTtl()
public void setTtl(long ttl)
ttl
- Cache data expiration timeCopyright © 2019. All rights reserved.