类 UploadFileRequest
java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.BaseObjectRequest
com.obs.services.model.PutObjectBasicRequest
com.obs.services.model.UploadFileRequest
-
字段概要
从类继承的字段 com.obs.services.model.PutObjectBasicRequest
acl, extensionPermissionMap, sseCHeader, sseKmsHeader, successRedirectLocation从类继承的字段 com.obs.services.model.BaseObjectRequest
encodeHeaders, isIgnorePort, objectKey从类继承的字段 com.obs.services.model.GenericRequest
bucketName, cancelHandler, 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.booleanbooleanbooleanvoidsetCallback(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"voidsetNeedAbortUploadFileAfterCancel(boolean needAbortUploadFileAfterCancel) voidsetNeedCalculateCRC64(boolean needCalculateCRC64) voidsetNeedStreamCalculateCRC64(boolean needStreamCalculateCRC64) 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()从类继承的方法 com.obs.services.model.PutObjectBasicRequest
getAcl, getAllGrantPermissions, getDomainIdsByGrantPermission, getExtensionPermissionMap, getGrantPermissionsByDomainId, getSseCHeader, getSseKmsHeader, getSuccessRedirectLocation, grantExtensionPermission, setAcl, setExtensionPermissionMap, setSseCHeader, setSseKmsHeader, setSuccessRedirectLocation, withdrawExtensionPermission, withdrawExtensionPermissions从类继承的方法 com.obs.services.model.BaseObjectRequest
getIsIgnorePort, getObjectKey, isEncodeHeaders, setIsEncodeHeaders, setIsIgnorePort, setObjectKey从类继承的方法 com.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaders
-
构造器详细资料
-
UploadFileRequest
-
UploadFileRequest
-
UploadFileRequest
-
UploadFileRequest
-
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
-
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
-
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
-
getCallback
-
setCallback
-
isNeedAbortUploadFileAfterCancel
public boolean isNeedAbortUploadFileAfterCancel() -
setNeedAbortUploadFileAfterCancel
public void setNeedAbortUploadFileAfterCancel(boolean needAbortUploadFileAfterCancel) -
isNeedCalculateCRC64
public boolean isNeedCalculateCRC64()- 返回:
- Whether you need sdk to calculate CRC64 value and add it to header
-
setNeedCalculateCRC64
public void setNeedCalculateCRC64(boolean needCalculateCRC64) - 参数:
needCalculateCRC64- Whether you need sdk to calculate CRC64 value and add it to header
-
isNeedStreamCalculateCRC64
public boolean isNeedStreamCalculateCRC64()- 返回:
- Whether you need sdk to calculate CRC64 value by stream, priority is lower than needCalculateCRC64
-
setNeedStreamCalculateCRC64
public void setNeedStreamCalculateCRC64(boolean needStreamCalculateCRC64) - 参数:
needStreamCalculateCRC64- Whether you need sdk to calculate CRC64 value by stream, priority is lower than needCalculateCRC64
-
toString
- 覆盖:
toString在类中BaseObjectRequest
-