com.obs.services.model

## 接口 UploadProgressStatus

- 所有超级接口:
    TaskProgressStatus

      public interface UploadProgressStatus
      extends TaskProgressStatus

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `double` | `getAverageSpeed()` Obtain the average speed.
    `double` | `getInstantaneousSpeed()` Obtain the instantaneous speed.
    `ProgressStatus` | `getTaskStatus(String key)` Obtain the upload progress of a specified object.
    `ConcurrentHashMap<String,ProgressStatus>` | `getTaskTable()` Obtain the progress of the current uploading task.
    `long` | `getTotalSize()` Obtain the total size of uploaded objects.
    `long` | `getTransferredSize()` Obtain 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

          ProgressStatus getTaskStatus(String key)

      Obtain the upload progress of a specified object.
      参数:
        `key` - Object name
      返回:
        Upload progress of a specified object

Copyright © 2021. All rights reserved.