RetryPreparationDecision

public class RetryPreparationDecision
extends Object

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


用來說明是否重試準備作業,以及是否要讓模組執行失敗的類別。總體而言,會有 3 種情況: - NO_NEED_RETRY:無需重試準備,但需要停止模組執行。- RETRIED_SUCCESS:無需重試準備作業,也不需要停止模組執行作業。- RETRIED_FAILED:需要重試準備作業,但不需停止模組執行作業。

摘要

公用建構函式

RetryPreparationDecision(boolean shouldRetry, boolean shouldFailRun)

公用方法

Throwable getPreviousException()

重試後傳回先前的例外狀況。

void setPreviousException(Throwable exception)

在重試後設定先前的例外狀況。

boolean shouldFailRun()

傳回是否要停止模組執行。

boolean shouldRetry()

傳回是否要重試模組準備作業。

公用建構函式

RetryPreparationDecision

public RetryPreparationDecision (boolean shouldRetry, 
                boolean shouldFailRun)

參數
shouldRetry boolean

shouldFailRun boolean

公用方法

getPreviousException

public Throwable getPreviousException ()

重試後傳回先前的例外狀況。

傳回
Throwable

setPreviousException

public void setPreviousException (Throwable exception)

在重試後設定先前的例外狀況。

參數
exception Throwable

shouldFailRun

public boolean shouldFailRun ()

傳回是否要停止模組執行作業。

傳回
boolean

shouldRetry

public boolean shouldRetry ()

傳回是否要重試模組準備作業。

傳回
boolean