RetryStatistics
public
class
RetryStatistics
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.retry.RetryStatistics |
Structure holding the statistics for a retry session of one IRemoteTest. Not all fields
might be populated depending of the RetryStrategy.
Summary
Fields | |
|---|---|
public
Map<Integer, Long> |
mAttemptIsolationCost
|
public
long |
mRetryFailure
|
public
long |
mRetrySuccess
|
public
long |
mRetryTime
|
Public constructors | |
|---|---|
RetryStatistics()
|
|
Public methods | |
|---|---|
static
final
RetryStatistics
|
aggregateStatistics(List<RetryStatistics> stats)
Helper method to aggregate the statistics of several retries. |
static
long
|
isolationCostPerAttempt(int attempt, List<RetryStatistics> stats)
|
Fields
mAttemptIsolationCost
public Map<Integer, Long> mAttemptIsolationCost
mRetryFailure
public long mRetryFailure
mRetrySuccess
public long mRetrySuccess
mRetryTime
public long mRetryTime
Public constructors
RetryStatistics
public RetryStatistics ()
Public methods
aggregateStatistics
public static final RetryStatistics aggregateStatistics (List<RetryStatistics> stats)
Helper method to aggregate the statistics of several retries.
| Parameters | |
|---|---|
stats |
List |
| Returns | |
|---|---|
RetryStatistics |
|
isolationCostPerAttempt
public static long isolationCostPerAttempt (int attempt,
List<RetryStatistics> stats)| Parameters | |
|---|---|
attempt |
int |
stats |
List |
| Returns | |
|---|---|
long |
|