类 UploadFileRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.PutObjectBasicRequest
cn.warpin.thirdPart.huawei.obs.obs.services.model.UploadFileRequest
Parameters in a file upload request
-
字段概要
字段修饰符和类型字段说明private Callbackprivate Stringprivate booleanprivate booleanprivate Stringprivate ObjectMetadataprivate longprivate longprivate ProgressListenerprivate intprivate String从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.PutObjectBasicRequest
acl, extensionPermissionMap, sseCHeader, sseKmsHeader, successRedirectLocation从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
encodeHeaders, isIgnorePort, objectKey从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
bucketName, httpMethod, userHeaders -
构造器概要
构造器构造器说明UploadFileRequest(String bucketName, String objectKey) ConstructorUploadFileRequest(String bucketName, String objectKey, String uploadFile) ConstructorUploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize) ConstructorUploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum) ConstructorUploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint) ConstructorUploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint, String checkpointFile) ConstructorUploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint, String checkpointFile, boolean enableCheckSum) ConstructorUploadFileRequest(String bucketName, String objectKey, String uploadFile, String encodingType) Constructor -
方法概要
修饰符和类型方法说明Obtain the file used to record resumable upload progresses.Get encoding type for encoding objectKeyObtain object properties.longObtain the part size set for uploading the object.longObtain the callback threshold of the data transfer listener.Obtain the data transfer listener.intObtain the maximum number of threads used for processing upload tasks concurrently.Obtain the to-be-uploaded local file.booleanIdentify whether the resumable mode is enabled.booleanIdentify whether the file to be uploaded in resumable mode will be verified.voidsetCallback(Callback callback) voidsetCheckpointFile(String checkpointFile) Specify a file used to record resumable upload progresses.voidsetEnableCheckpoint(boolean enableCheckpoint) Specify whether to enable the resumable mode.voidsetEnableCheckSum(boolean enableCheckSum) Specify whether to verify the file to be uploaded in resumable mode.voidsetEncodingType(String encodingType) Set encoding type for encoding objectKey, could choose "url"voidsetObjectMetadata(ObjectMetadata objectMetadata) Set object properties.voidsetPartSize(long partSize) Set the part size for uploading the object.voidsetProgressInterval(long progressInterval) Set the callback threshold of the data transfer listener.voidsetProgressListener(ProgressListener progressListener) Set the data transfer listener.voidsetTaskNum(int taskNum) Set the maximum number of threads used for executing upload tasks concurrently.voidsetUploadFile(String uploadFile) Specify the local file to be uploaded.toString()从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.PutObjectBasicRequest
getAcl, getAllGrantPermissions, getDomainIdsByGrantPermission, getExtensionPermissionMap, getGrantPermissionsByDomainId, getSseCHeader, getSseKmsHeader, getSuccessRedirectLocation, grantExtensionPermission, setAcl, setExtensionPermissionMap, setSseCHeader, setSseKmsHeader, setSuccessRedirectLocation, withdrawExtensionPermission, withdrawExtensionPermissions从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.BaseObjectRequest
getIsIgnorePort, getObjectKey, isEncodeHeaders, setIsEncodeHeaders, setIsIgnorePort, setObjectKey从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders
-
字段详细资料
-
partSize
private long partSize -
taskNum
private int taskNum -
uploadFile
-
enableCheckpoint
private boolean enableCheckpoint -
checkpointFile
-
objectMetadata
-
enableCheckSum
private boolean enableCheckSum -
progressListener
-
encodingType
-
callback
-
progressInterval
private long progressInterval
-
-
构造器详细资料
-
UploadFileRequest
Constructor- 参数:
bucketName- Bucket nameobjectKey- Object name
-
UploadFileRequest
Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadFile- To-be-uploaded local file
-
UploadFileRequest
public UploadFileRequest(String bucketName, String objectKey, String uploadFile, String encodingType) Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadFile- To-be-uploaded local fileencodingType- Encoding type used for encoding objectKey
-
UploadFileRequest
Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadFile- To-be-uploaded local filepartSize- Part size
-
UploadFileRequest
public UploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum) Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadFile- To-be-uploaded local filepartSize- Part sizetaskNum- Maximum number of threads used for processing upload tasks concurrently
-
UploadFileRequest
public UploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint) Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadFile- To-be-uploaded local filepartSize- Part sizetaskNum- Maximum number of threads used for processing upload tasks concurrentlyenableCheckpoint- Whether to enable the resumable mode
-
UploadFileRequest
public UploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint, String checkpointFile) Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadFile- To-be-uploaded local filepartSize- Part sizetaskNum- Maximum number of threads used for processing upload tasks concurrentlyenableCheckpoint- Whether to enable the resumable modecheckpointFile- File used to record resumable upload progresses
-
UploadFileRequest
public UploadFileRequest(String bucketName, String objectKey, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint, String checkpointFile, boolean enableCheckSum) Constructor- 参数:
bucketName- Bucket nameobjectKey- Object nameuploadFile- To-be-uploaded local filepartSize- Part sizetaskNum- Maximum number of threads used for processing upload tasks concurrentlyenableCheckpoint- Whether to enable the resumable modecheckpointFile- File used to record resumable upload progressesenableCheckSum- Whether to verify the to-be-uploaded file upon non-initial uploads in resumable upload mode
-
-
方法详细资料
-
getPartSize
public long getPartSize()Obtain the part size set for uploading the object.- 返回:
- Part size
-
setPartSize
public void setPartSize(long partSize) Set the part size for uploading the object.- 参数:
partSize- Part size
-
getTaskNum
public int getTaskNum()Obtain the maximum number of threads used for processing upload tasks concurrently.- 返回:
- Maximum number of threads used for processing upload tasks concurrently
-
setTaskNum
public void setTaskNum(int taskNum) Set the maximum number of threads used for executing upload tasks concurrently.- 参数:
taskNum- Maximum number of threads used for processing upload tasks concurrently
-
getUploadFile
Obtain the to-be-uploaded local file.- 返回:
- To-be-uploaded local file
-
setUploadFile
Specify the local file to be uploaded.- 参数:
uploadFile- To-be-uploaded local file
-
isEnableCheckpoint
public boolean isEnableCheckpoint()Identify whether the resumable mode is enabled.- 返回:
- Identifier specifying whether the resumable mode is enabled
-
setEnableCheckpoint
public void setEnableCheckpoint(boolean enableCheckpoint) Specify whether to enable the resumable mode.- 参数:
enableCheckpoint- Identifier specifying whether the resumable mode is enabled
-
getCheckpointFile
Obtain the file used to record resumable upload progresses.- 返回:
- File used to record upload progresses
-
setCheckpointFile
Specify a file used to record resumable upload progresses.- 参数:
checkpointFile- File used to record upload progresses
-
getObjectMetadata
Obtain object properties.- 返回:
- Object properties
-
setObjectMetadata
Set object properties.- 参数:
objectMetadata- Object properties
-
isEnableCheckSum
public boolean isEnableCheckSum()Identify whether the file to be uploaded in resumable mode will be verified.- 返回:
- Identifier specifying whether to verify the to-be-uploaded file
-
setEnableCheckSum
public void setEnableCheckSum(boolean enableCheckSum) Specify whether to verify the file to be uploaded in resumable mode.- 参数:
enableCheckSum- Identifier specifying whether to verify the to-be-uploaded file
-
getProgressListener
Obtain the data transfer listener.- 返回:
- Data transfer listener
-
setProgressListener
Set the data transfer listener.- 参数:
progressListener- Data transfer listener
-
getProgressInterval
public long getProgressInterval()Obtain the callback threshold of the data transfer listener. The default value is 100 KB.- 返回:
- Callback threshold of the data transfer listener
-
setProgressInterval
public void setProgressInterval(long progressInterval) Set the callback threshold of the data transfer listener. The default value is 100 KB.- 参数:
progressInterval- Callback threshold of the data transfer listener
-
setEncodingType
Set encoding type for encoding objectKey, could choose "url"- 参数:
encodingType- encoding type for encoding objectKey
-
getEncodingType
Get encoding type for encoding objectKey- 返回:
- encodingType
-
getCallback
-
setCallback
-
toString
- 覆盖:
toString在类中BaseObjectRequest
-