DynamicShardHelper

public class DynamicShardHelper
extends StrictShardHelper

java.lang.Object
   ↳ com.android.tradefed.invoker.shard.ShardHelper
     ↳ com.android.tradefed.invoker.shard.StrictShardHelper
       ↳ 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.

Protected methods

boolean shardConfigStrict(IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)

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

Protected methods

shardConfigStrict

protected boolean shardConfigStrict (IConfiguration config, 
                TestInformation testInfo, 
                IRescheduler rescheduler, 
                ITestLogger logger)

Parameters
config IConfiguration

testInfo TestInformation

rescheduler IRescheduler

logger ITestLogger

Returns
boolean