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)
Reports that the invocation has terminated, whether successfully or due to some error condition. |
boolean
|
isLastShardDone()
Returns True if the last shard had called |
Public constructors
LastShardDetector
public LastShardDetector ()
Public methods
invocationEnded
public void invocationEnded (long elapsedTime)
Reports that the invocation has terminated, whether successfully or due to some error condition.
Will be automatically called by the TradeFederation framework.Parameters | |
---|---|
elapsedTime |
long : the elapsed time of the invocation in ms |
isLastShardDone
public boolean isLastShardDone ()
Returns True if the last shard had called invocationEnded(long)
.
Returns | |
---|---|
boolean |