LastShardDetector

public final class LastShardDetector
extends Object implements ITestInvocationListener

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


When running local sharding, sometimes we only want to execute some actions when the last shard reaches invocationEnded(long). This reporter allows to detect it.

Summary

Public constructors

LastShardDetector()

Public methods

void invocationEnded(long elapsedTime)
boolean isLastShardDone()

Returns True if the last shard had called invocationEnded(long).

Public constructors

LastShardDetector

public LastShardDetector ()

Public methods

invocationEnded

public void invocationEnded (long elapsedTime)

Parameters
elapsedTime long

isLastShardDone

public boolean isLastShardDone ()

Returns True if the last shard had called invocationEnded(long).

Returns
boolean