IRetryDecision

public interface IRetryDecision

com.android.tradefed.retry.IRetryDecision


Interfaccia che guida la decisione di nuovo tentativo e applica il filtro sulla classe per tentativi più mirati.

Riepilogo

Metodi pubblici

abstract void addLastAttempt ( lastResults) addLastAttempt ( lastResults)

ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List)) verrà molto probabilmente chiamato prima dell'ultimo tentativo, quindi potremmo perdere i risultati dell'ultimo tentativo a fini statistici.

default void addToSkipRetryList (String filterEntry)

Aggiungi una voce per evitare di riprovare.

abstract int getMaxRetryCount ()

Il numero massimo di tentativi durante il tentativo automatico.

abstract RetryStatistics getRetryStatistics ()

Restituisce RetryStatistics che rappresenta il nuovo tentativo.

abstract RetryStrategy getRetryStrategy ()

La RetryStrategy utilizzata durante il tentativo automatico.

abstract boolean isAutoRetryEnabled ()

Se abilitare o meno il nuovo 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 un nuovo tentativo.

abstract boolean shouldRetry ( IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, previousResults, DeviceNotAvailableException dnae) shouldRetry ( IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, previousResults, DeviceNotAvailableException dnae)

Decidere se tentare o meno un nuovo tentativo.

abstract RetryPreparationDecision shouldRetryPreparation ( ModuleDefinition module, int attempt, int maxAttempt)

Decidere se ritentare o meno la preparazione del modulo.

abstract boolean useUpdatedReporting ()

Restituisce vero se dobbiamo utilizzare il reporting aggiornato.

Metodi pubblici

aggiungiUltimotentativo

public abstract void addLastAttempt ( lastResults)

ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List)) verrà molto probabilmente chiamato prima dell'ultimo tentativo, quindi potremmo perdere i risultati dell'ultimo tentativo a fini statistici. Questo metodo consente di fornire tali risultati per calcoli statistici corretti.

addToSkipRetryList

public void addToSkipRetryList (String filterEntry)

Aggiungi una voce per evitare di riprovare.

Parametri
filterEntry String

getMaxRetryCount

public abstract int getMaxRetryCount ()

Il numero massimo di tentativi durante il tentativo automatico.

ritorna
int

getRetryStatistics

public abstract RetryStatistics getRetryStatistics ()

Restituisce RetryStatistics che rappresenta il nuovo tentativo.

ritorna
RetryStatistics

getRetryStrategy

public abstract RetryStrategy getRetryStrategy ()

La RetryStrategy utilizzata durante il tentativo automatico.

ritorna
RetryStrategy

èAutoRetryEnabled

public abstract boolean isAutoRetryEnabled ()

Se abilitare o meno il nuovo tentativo automatico.

ritorna
boolean

riavvioall'ultimotentativo

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 un nuovo tentativo. Apportare inoltre le modifiche necessarie a IRemoteTest da riprovare (applicazione di filtri e così via).

Parametri
test IRemoteTest : IRemoteTest appena eseguito.

attemptJustExecuted int : il numero del tentativo appena eseguito.

previousResults : l'elenco dei TestRunResult del test appena eseguito.

ritorna
boolean Vero se dovessimo riprovare, Falso altrimenti.

Lancia
DeviceNotAvailableException Può essere lanciato durante il ripristino del dispositivo

dovrebbeRiprovare

public abstract boolean shouldRetry (IRemoteTest test, 
                ModuleDefinition module, 
                int attemptJustExecuted, 
                 previousResults, 
                DeviceNotAvailableException dnae)

Decidere se tentare o meno un nuovo tentativo. Apportare inoltre le modifiche necessarie a IRemoteTest da riprovare (applicazione di filtri e così via).

Parametri
test IRemoteTest : IRemoteTest appena eseguito.

module ModuleDefinition : l'oggetto ModuleDefinition per il modulo di test.

attemptJustExecuted int : il numero del tentativo appena eseguito.

previousResults : l'elenco dei TestRunResult del test appena eseguito.

dnae DeviceNotAvailableException : eccezione DeviceNotAvailableException dell'eccezione dispositivo non disponibile.

ritorna
boolean Vero se dovessimo riprovare, Falso altrimenti.

Lancia
DeviceNotAvailableException Può essere lanciato durante il ripristino del dispositivo

dovrebbeRiprovaPreparazione

public abstract RetryPreparationDecision shouldRetryPreparation (ModuleDefinition module, 
                int attempt, 
                int maxAttempt)

Decidere se ritentare o meno la preparazione del modulo.

Parametri
module ModuleDefinition

attempt int

maxAttempt int

ritorna
RetryPreparationDecision

utilizzareUpdatedReporting

public abstract boolean useUpdatedReporting ()

Restituisce vero se dobbiamo utilizzare il reporting aggiornato.

ritorna
boolean