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)

参数
elapsedTime long

isLastShardDone

public boolean isLastShardDone ()

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

返回
boolean