RetryStatistics

public class RetryStatistics
extends Object

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


Estrutura que contém as estatísticas de uma sessão de nova tentativa de um IRemoteTest. Nem todos os campos podem ser preenchidos, dependendo do RetryStrategy.

Resumo

Campos

public Map<Integer, Long> mAttemptIsolationCost

public long mRetryFailure

public long mRetrySuccess

public long mRetryTime

Construtores públicos

RetryStatistics()

Métodos públicos

static final RetryStatistics aggregateStatistics(List<RetryStatistics> stats)

Método auxiliar para agregar as estatísticas de várias tentativas.

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

Campos

mAttemptIsolationCost

public Map<Integer, Long> mAttemptIsolationCost

mRetryFailure

public long mRetryFailure

mRetrySuccess

public long mRetrySuccess

mRetryTime

public long mRetryTime

Construtores públicos

RetryStatistics

public RetryStatistics ()

Métodos públicos

aggregateStatistics

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

Método auxiliar para agregar as estatísticas de várias tentativas.

Parâmetros
stats List

Retorna
RetryStatistics

isolationCostPerAttempt

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

Parâmetros
attempt int

stats List

Retorna
long