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.
See also:
Summary
Public constructors | |
|---|---|
LastShardDetector()
|
|
Public methods | |
|---|---|
void
|
invocationEnded(long elapsedTime)
|
boolean
|
isLastShardDone()
Returns True if the last shard had called |
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 |
|