IRiprovaDecisione
public interface IRetryDecision
com.android.tradefed.retry.IRetryDecision |
Interfaccia che guida la decisione di riprovare e applica il filtro sulla classe per tentativi più mirati.
Riepilogo
Metodi pubblici | |
---|---|
abstract void | addLastAttempt ( lastResults) addLastAttempt ( lastResults) |
abstract int | getMaxRetryCount () Il numero massimo di tentativi durante il tentativo automatico. |
abstract RetryStatistics | getRetryStatistics () Restituisce i |
abstract RetryStrategy | getRetryStrategy () Il |
abstract boolean | isAutoRetryEnabled () Se abilitare o meno il tentativo automatico. |
abstract boolean | rebootAtLastAttempt () Se riavviare o meno il dispositivo prima dell'ultimo tentativo. |
abstract void | setInvocationContext (IInvocationContext context) Imposta il contesto di chiamata corrente. |
abstract boolean | shouldRetry (IRemoteTest test, int attemptJustExecuted, previousResults) shouldRetry (IRemoteTest test, int attemptJustExecuted, previousResults) Decidere se tentare o meno di riprovare. |
abstract boolean | shouldRetry (IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, previousResults) shouldRetry (IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, previousResults) Decidere se tentare o meno di riprovare. |
abstract boolean | useUpdatedReporting () Restituisce true se dobbiamo utilizzare i rapporti aggiornati. |
Metodi pubblici
addLastAttempt
public abstract void addLastAttempt (lastResults)
ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List))
sarà molto probabilmente chiamato prima che l'ultimo tentativo di tentativi, in modo che potrebbe mancare gli ultimissimi risultati di tentativo per le statistiche scopo. Questo metodo consente di fornire tali risultati per calcoli statistici adeguati.
getMaxRetryCount
public abstract int getMaxRetryCount ()
Il numero massimo di tentativi durante il tentativo automatico.
ritorna | |
---|---|
int |
getRetryStatistics
public abstract RetryStatistics getRetryStatistics ()
Restituisce i RetryStatistics
che rappresentano il tentativo.
ritorna | |
---|---|
RetryStatistics |
getRetryStrategy
public abstract RetryStrategy getRetryStrategy ()
Il RetryStrategy
usato durante auto-retry.
ritorna | |
---|---|
RetryStrategy |
isAutoRetryEnabled
public abstract boolean isAutoRetryEnabled ()
Se abilitare o meno il tentativo automatico.
ritorna | |
---|---|
boolean |
rebootAtLastAttempt
public abstract boolean rebootAtLastAttempt ()
Se riavviare o meno il dispositivo prima dell'ultimo tentativo.
ritorna | |
---|---|
boolean |
setInvocationContext
public abstract void setInvocationContext (IInvocationContext context)
Imposta il contesto di chiamata corrente.
Parametri | |
---|---|
context | IInvocationContext |
dovrebbeRiprovare
public abstract boolean shouldRetry (IRemoteTest test, int attemptJustExecuted,previousResults)
Decidere se tentare o meno di riprovare. Anche apportare le modifiche necessarie al IRemoteTest
necessario riprovare (applicazione di filtri, ecc).
Parametri | |
---|---|
test | IRemoteTest : IRemoteTest che appena eseguito. |
attemptJustExecuted | int : il numero del tentativo che abbiamo appena finito. |
previousResults | TestRunResult del test che appena eseguito. |
ritorna | |
---|---|
boolean | Vero se dovessimo riprovare, falso altrimenti. |
tiri | |
---|---|
DeviceNotAvailableException | Può essere lanciato durante il ripristino del dispositivo |
dovrebbeRiprovare
public abstract boolean shouldRetry (IRemoteTest test, ModuleDefinition module, int attemptJustExecuted,previousResults)
Decidere se tentare o meno di riprovare. Anche apportare le modifiche necessarie al IRemoteTest
necessario riprovare (applicazione di filtri, ecc).
Parametri | |
---|---|
test | IRemoteTest : IRemoteTest che appena eseguito. |
module | ModuleDefinition : Il ModuleDefinition oggetto per il modulo di test. |
attemptJustExecuted | int : il numero del tentativo che abbiamo appena finito. |
previousResults | TestRunResult del test che appena eseguito. |
ritorna | |
---|---|
boolean | Vero se dovessimo riprovare, falso altrimenti. |
tiri | |
---|---|
DeviceNotAvailableException | Può essere lanciato durante il ripristino del dispositivo |
useUpdatedReporting
public abstract boolean useUpdatedReporting ()
Restituisce true se dobbiamo utilizzare i rapporti aggiornati.
ritorna | |
---|---|
boolean |