分片助手
public class ShardHelper
extends Object
implements IShardHelper
java.lang.Object | |
↳ | com.android.tradefed.invoker.shard.ShardHelper |
帮助程序类,用于创建分片并安排它们进行调用。
概括
领域 | |
---|---|
public static final String | LAST_SHARD_DETECTOR |
public static final String | SHARED_TEST_INFORMATION
|
公共建设者 | |
---|---|
ShardHelper () |
公开方法 | |
---|---|
boolean | shardConfig ( IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger) 尝试将配置分片为子配置,以将其重新安排为在多个资源上并行运行。 |
受保护的方法 | |
---|---|
IGlobalConfiguration | getGlobalConfiguration () 返回当前的全局配置。 |
void | validateOptions (TestInformation testInfo, IConfiguration config) 在配置上运行 |
领域
LAST_SHARD_DETECTOR
public static final String LAST_SHARD_DETECTOR
SHARED_TEST_INFORMATION
public static final String SHARED_TEST_INFORMATION
公共建设者
分片助手
public ShardHelper ()
公开方法
shardConfig
public boolean shardConfig (IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)
尝试将配置分片为子配置,以将其重新安排为在多个资源上并行运行。
成功的分片操作会使当前配置为空,并且不应继续进行调用。
参数 | |
---|---|
config | IConfiguration :当前的IConfiguration 。 |
testInfo | TestInformation :保存测试信息的TestInformation 。 |
rescheduler | IRescheduler : IRescheduler |
logger | ITestLogger |
退货 | |
---|---|
boolean | 如果测试已分片,则为true。否则返回false |
也可以看看:
受保护的方法
getGlobalConfiguration
protected IGlobalConfiguration getGlobalConfiguration ()
返回当前的全局配置。
退货 | |
---|---|
IGlobalConfiguration |
validateOptions
protected void validateOptions (TestInformation testInfo, IConfiguration config)
在配置上运行IConfiguration#validateOptions()
。
参数 | |
---|---|
testInfo | TestInformation |
config | IConfiguration |