public final class COSXMLUploadTask extends COSXMLTask
限定符和类型 | 类和说明 |
---|---|
static class |
COSXMLUploadTask.COSXMLUploadTaskRequest
上传传输任务的请求
|
static class |
COSXMLUploadTask.COSXMLUploadTaskResult
上传传输任务的返回结果
|
COSXMLTask.OnGetHttpTaskMetrics, COSXMLTask.OnSignatureListener
限定符和类型 | 字段和说明 |
---|---|
protected long |
multiUploadSizeDivision
满足分片上传的文件最小长度
|
protected long |
sliceSize
分片大小
|
bucket, cosPath, cosXmlProgressListener, cosXmlResultListener, cosXmlService, headers, initMultipleUploadListener, internalInitMultipleUploadListener, internalProgressListener, internalStateListener, IS_EXIT, isNeedMd5, mException, monitor, mResult, onGetHttpTaskMetrics, onSignatureListener, queries, region, transferStateListener, waitTimeoutTimer
限定符和类型 | 方法和说明 |
---|---|
protected CosXmlRequest |
buildCOSXMLTaskRequest()
构造COSXMLTask返回的Request
|
protected CosXmlResult |
buildCOSXMLTaskResult(CosXmlResult sourceResult)
构造COSXMLTask返回的Result
|
protected boolean |
checkParameter() |
protected void |
encounterError(CosXmlRequest request,
CosXmlClientException clientException,
CosXmlServiceException serviceException) |
boolean |
getSendingCompleteRequest() |
java.lang.String |
getUploadId()
获取分片uploadId属性
|
protected void |
internalCancel() |
protected void |
internalCompleted() |
protected void |
internalFailed() |
protected void |
internalPause() |
protected void |
internalResume() |
boolean |
pauseSafely()
如果已经发送了 CompleteMultiUpload 请求,则不允许暂停
|
void |
resume()
恢复任务
|
void |
setUploadId(java.lang.String uploadId)
设置分片uploadId
|
protected void |
startUpload() |
protected void |
upload()
上传操作
|
cancel, clearResultAndException, getException, getHttpMetrics, getResult, getTaskState, pause, setCosXmlProgressListener, setCosXmlResultListener, setCosXmlService, setInitMultipleUploadListener, setOnGetHttpTaskMetrics, setOnSignatureListener, setTransferStateListener, startTimeoutTimer, updateState
protected long multiUploadSizeDivision
protected long sliceSize
protected boolean checkParameter()
protected void upload()
protected void internalCompleted()
internalCompleted
在类中 COSXMLTask
protected void internalFailed()
internalFailed
在类中 COSXMLTask
protected void internalPause()
internalPause
在类中 COSXMLTask
public boolean pauseSafely()
protected void internalCancel()
internalCancel
在类中 COSXMLTask
protected void internalResume()
internalResume
在类中 COSXMLTask
protected void encounterError(@Nullable CosXmlRequest request, CosXmlClientException clientException, CosXmlServiceException serviceException)
encounterError
在类中 COSXMLTask
protected CosXmlRequest buildCOSXMLTaskRequest()
COSXMLTask
buildCOSXMLTaskRequest
在类中 COSXMLTask
protected CosXmlResult buildCOSXMLTaskResult(CosXmlResult sourceResult)
COSXMLTask
buildCOSXMLTaskResult
在类中 COSXMLTask
sourceResult
- 原始CosXmlResultpublic java.lang.String getUploadId()
public void setUploadId(java.lang.String uploadId)
uploadId
- 分片uploadIdprotected void startUpload()
public void resume()
COSXMLTask
resume
在类中 COSXMLTask
public boolean getSendingCompleteRequest()