RetryStatistics

public class RetryStatistics
extends Object

java.lang.Object
   ↳ com.android.tradefed.retry.RetryStatistics


這個結構體會保留單一 IRemoteTest 的重試工作階段統計資料。視 RetryStrategy 而定,系統可能不會填入所有欄位。

摘要

欄位

public Map<Integer, Long> mAttemptIsolationCost

public long mRetryFailure

public long mRetrySuccess

public long mRetryTime

公用建構函式

RetryStatistics()

公用方法

static final RetryStatistics aggregateStatistics(List<RetryStatistics> stats)

Helper method to aggregate the statistics of several retries.

static long isolationCostPerAttempt(int attempt, List<RetryStatistics> stats)

欄位

mAttemptIsolationCost

public Map<Integer, Long> mAttemptIsolationCost

mRetryFailure

public long mRetryFailure

mRetrySuccess

public long mRetrySuccess

mRetryTime

public long mRetryTime

公用建構函式

RetryStatistics

public RetryStatistics ()

公用方法

aggregateStatistics

public static final RetryStatistics aggregateStatistics (List<RetryStatistics> stats)

輔助方法,可匯總多次重試的統計資料。

參數
stats List

傳回
RetryStatistics

isolationCostPerAttempt

public static long isolationCostPerAttempt (int attempt, 
                List<RetryStatistics> stats)

參數
attempt int

stats List

傳回
long