接口 UploadProgressStatus
-
方法概要
修饰符和类型方法说明doubleObtain the average speed.doubleObtain the instantaneous speed.getTaskStatus(String key) Obtain the upload progress of a specified object.Obtain the progress of the current uploading task.longObtain the total size of uploaded objects.longObtain the size of transferred data in bytes.从接口继承的方法 com.obs.services.model.TaskProgressStatus
getExecPercentage, getExecTaskNum, getFailTaskNum, getSucceedTaskNum, getTotalTaskNum
-
方法详细资料
-
getTotalSize
long getTotalSize()Obtain the total size of uploaded objects.- 返回:
- Total size of uploaded objects. The value -1 indicates that the total size is still being calculated.
-
getTransferredSize
long getTransferredSize()Obtain the size of transferred data in bytes.- 返回:
- Size of data in bytes that have been transferred
-
getInstantaneousSpeed
double getInstantaneousSpeed()Obtain the instantaneous speed.- 返回:
- Instantaneous speed
-
getAverageSpeed
double getAverageSpeed()Obtain the average speed.- 返回:
- Average speed
-
getTaskTable
ConcurrentHashMap<String,ProgressStatus> getTaskTable()Obtain the progress of the current uploading task.- 返回:
- taskTable Progress of the current uploading task
-
getTaskStatus
Obtain the upload progress of a specified object.- 参数:
key- Object name- 返回:
- Upload progress of a specified object
-