类 DefaultProgressStatus

java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.DefaultProgressStatus
所有已实现的接口:
ProgressStatus

public class DefaultProgressStatus extends Object implements ProgressStatus
  • 字段详细资料

    • newlyTransferredBytes

      private final long newlyTransferredBytes
    • transferredBytes

      private final long transferredBytes
    • totalBytes

      private final long totalBytes
    • intervalMilliseconds

      private final long intervalMilliseconds
    • totalMilliseconds

      private final long totalMilliseconds
    • instantaneousSpeed

      private long instantaneousSpeed
    • instantaneousBytes

      private List<ProgressManager.BytesUnit> instantaneousBytes
  • 构造器详细资料

    • DefaultProgressStatus

      public DefaultProgressStatus(long newlyTransferredBytes, long transferredBytes, long totalBytes, long intervalMilliseconds, long totalMilliseconds)
  • 方法详细资料

    • getInstantaneousSpeed

      public double getInstantaneousSpeed()
      从接口复制的说明: ProgressStatus
      Obtain the instantaneous speed.
      指定者:
      getInstantaneousSpeed 在接口中 ProgressStatus
      返回:
      Instantaneous speed
    • getOldInstantaneousSpeed

      @Deprecated public double getOldInstantaneousSpeed()
      已过时。
    • getAverageSpeed

      public double getAverageSpeed()
      从接口复制的说明: ProgressStatus
      Obtain the average speed.
      指定者:
      getAverageSpeed 在接口中 ProgressStatus
      返回:
      Average speed
    • getTransferPercentage

      public int getTransferPercentage()
      从接口复制的说明: ProgressStatus
      Obtain the transfer progress
      指定者:
      getTransferPercentage 在接口中 ProgressStatus
      返回:
      Transfer progress
    • getNewlyTransferredBytes

      public long getNewlyTransferredBytes()
      从接口复制的说明: ProgressStatus
      Obtain the number of new bytes.
      指定者:
      getNewlyTransferredBytes 在接口中 ProgressStatus
      返回:
      Number of bytes transferred since last progress refresh
    • getTransferredBytes

      public long getTransferredBytes()
      从接口复制的说明: ProgressStatus
      Obtain the number of transferred bytes.
      指定者:
      getTransferredBytes 在接口中 ProgressStatus
      返回:
      Number of bytes that have been transferred
    • getTotalBytes

      public long getTotalBytes()
      从接口复制的说明: ProgressStatus
      Obtain the number of bytes to be transferred.
      指定者:
      getTotalBytes 在接口中 ProgressStatus
      返回:
      Number of the total bytes to be transferred
    • setInstantaneousBytes

      @Deprecated public void setInstantaneousBytes(List<ProgressManager.BytesUnit> instantaneousBytes)
      已过时。
    • setInstantaneousSpeed

      public void setInstantaneousSpeed(long instantaneousSpeed)