类 DefaultProgressStatus
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.DefaultProgressStatus
- 所有已实现的接口:
ProgressStatus
-
字段概要
字段修饰符和类型字段说明private List<ProgressManager.BytesUnit> private longprivate final longprivate final longprivate final longprivate final longprivate final long -
构造器概要
构造器构造器说明DefaultProgressStatus(long newlyTransferredBytes, long transferredBytes, long totalBytes, long intervalMilliseconds, long totalMilliseconds) -
方法概要
修饰符和类型方法说明doubleObtain the average speed.doubleObtain the instantaneous speed.longObtain the number of new bytes.double已过时。longObtain the number of bytes to be transferred.intObtain the transfer progresslongObtain the number of transferred bytes.voidsetInstantaneousBytes(List<ProgressManager.BytesUnit> instantaneousBytes) 已过时。voidsetInstantaneousSpeed(long instantaneousSpeed)
-
字段详细资料
-
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
-
-
构造器详细资料
-
DefaultProgressStatus
public DefaultProgressStatus(long newlyTransferredBytes, long transferredBytes, long totalBytes, long intervalMilliseconds, long totalMilliseconds)
-
-
方法详细资料
-
getInstantaneousSpeed
public double getInstantaneousSpeed()从接口复制的说明:ProgressStatusObtain the instantaneous speed.- 指定者:
getInstantaneousSpeed在接口中ProgressStatus- 返回:
- Instantaneous speed
-
getOldInstantaneousSpeed
已过时。 -
getAverageSpeed
public double getAverageSpeed()从接口复制的说明:ProgressStatusObtain the average speed.- 指定者:
getAverageSpeed在接口中ProgressStatus- 返回:
- Average speed
-
getTransferPercentage
public int getTransferPercentage()从接口复制的说明:ProgressStatusObtain the transfer progress- 指定者:
getTransferPercentage在接口中ProgressStatus- 返回:
- Transfer progress
-
getNewlyTransferredBytes
public long getNewlyTransferredBytes()从接口复制的说明:ProgressStatusObtain the number of new bytes.- 指定者:
getNewlyTransferredBytes在接口中ProgressStatus- 返回:
- Number of bytes transferred since last progress refresh
-
getTransferredBytes
public long getTransferredBytes()从接口复制的说明:ProgressStatusObtain the number of transferred bytes.- 指定者:
getTransferredBytes在接口中ProgressStatus- 返回:
- Number of bytes that have been transferred
-
getTotalBytes
public long getTotalBytes()从接口复制的说明:ProgressStatusObtain the number of bytes to be transferred.- 指定者:
getTotalBytes在接口中ProgressStatus- 返回:
- Number of the total bytes to be transferred
-
setInstantaneousBytes
已过时。 -
setInstantaneousSpeed
public void setInstantaneousSpeed(long instantaneousSpeed)
-