遠端動態池
public class RemoteDynamicPool
extends Object
implements ITestsPool
java.lang.Object | |
↳ | com.android.tradefed.invoker.shard.RemoteDynamicPool |
實施遠端工作佇列測試池
概括
公共方法 | |
---|---|
int | getAttemptNumber ( ITestSuite test) |
static RemoteDynamicPool | newInstance ( IDynamicShardingClient client, String poolId, moduleMapping) newInstance ( IDynamicShardingClient client, String poolId, moduleMapping) |
IRemoteTest | poll ( TestInformation info, boolean reportNotExecuted) 輪詢下一個要執行的測試。 |
ITokenRequest | pollRejectedTokenModule () 傳回被拒絕在所有裝置上執行的測試的清單。 |
void | returnToRemotePool ( ITestSuite test, int attemptNumber) |
公共方法
新實例
public static RemoteDynamicPool newInstance (IDynamicShardingClient client, String poolId,moduleMapping)
參數 | |
---|---|
client | IDynamicShardingClient |
poolId | String |
moduleMapping |
退貨 | |
---|---|
RemoteDynamicPool |
輪詢
public IRemoteTest poll (TestInformation info, boolean reportNotExecuted)
輪詢下一個要執行的測試。
參數 | |
---|---|
info | TestInformation |
reportNotExecuted | boolean |
退貨 | |
---|---|
IRemoteTest |
pollRejectedTokenModule
public ITokenRequest pollRejectedTokenModule ()
傳回被拒絕在所有裝置上執行的測試的清單。
退貨 | |
---|---|
ITokenRequest |
返回遠端池
public void returnToRemotePool (ITestSuite test, int attemptNumber)
參數 | |
---|---|
test | ITestSuite |
attemptNumber | int |