DynamicShardHelper
public
class
DynamicShardHelper
extends ShardHelper
java.lang.Object | ||
↳ | com.android.tradefed.invoker.shard.ShardHelper | |
↳ | com.android.tradefed.invoker.shard.DynamicShardHelper |
Sharding strategy to allow work remote work queueing between multiple TF instances
Summary
Public constructors | |
---|---|
DynamicShardHelper()
|
Public methods | |
---|---|
boolean
|
shardConfig(IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)
Attempt to shard the configuration into sub-configurations, to be re-scheduled to run on multiple resources in parallel. |
Public constructors
DynamicShardHelper
public DynamicShardHelper ()
Public methods
shardConfig
public boolean shardConfig (IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)
Attempt to shard the configuration into sub-configurations, to be re-scheduled to run on multiple resources in parallel.
A successful shard action renders the current config empty, and invocation should not proceed.
Parameters | |
---|---|
config |
IConfiguration : the current IConfiguration . |
testInfo |
TestInformation : the TestInformation holding the tests information. |
rescheduler |
IRescheduler : the IRescheduler |
logger |
ITestLogger |
Returns | |
---|---|
boolean |
true if test was sharded. Otherwise return false |