最后碎片检测器

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 。

公共构造函数

最后碎片检测器

public LastShardDetector ()

公共方法

调用结束

public void invocationEnded (long elapsedTime)

报告调用已终止,无论是成功还是由于某些错误情况。

将由 TradeFederation 框架自动调用。

参数
elapsedTime long :调用所用的时间(以毫秒为单位)

最后一个分片完成

public boolean isLastShardDone ()

如果最后一个分片调用了invocationEnded(long)则返回 True 。

退货
boolean