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