LastShardDetector

public final class LastShardDetector
extends Object implements ITestInvocationListener

java.lang.Object
   ↳ com.android.tradefed.invoker.shard.LastShardDetector


執行本機區塊時,有時只想在最後一個區塊達到 invocationEnded(long) 時執行某些動作。這個回報器可用於偵測。

另請參閱:

摘要

公用建構函式

LastShardDetector()

公用方法

void invocationEnded(long elapsedTime)

回報叫用已終止,無論是成功或因某些錯誤條件而終止。

boolean isLastShardDone()

如果最後一個分片已呼叫 invocationEnded(long),則傳回 True。

公用建構函式

LastShardDetector

public LastShardDetector ()

公用方法

invocationEnded

public void invocationEnded (long elapsedTime)

回報叫用已終止,無論是成功或因某些錯誤條件而終止。

會由 TradeFederation 架構自動呼叫。

參數
elapsedTime long:叫用作業的經過時間 (以毫秒為單位)

isLastShardDone

public boolean isLastShardDone ()

如果最後一個分片曾呼叫 invocationEnded(long),則傳回 True。

傳回
boolean