Küme İstemcisi
public class ClusterClient
extends Object
implements IClusterClient
java.lang.Object |
↳ | com.android.tradefed.cluster.ClusterClient |
TFC arka ucuyla etkileşim için bir IClusterClient
uygulaması.
Özet
Genel yöntemler |
---|
IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () ClusterCommandEvent s yüklemek için kullanılabilecek bir IClusterEventUploader edinin. |
ClusterCommand.State | getCommandState (String requestId, String commandId) Bir küme komutunun durumunu belirleyin. |
ClusterCommandStatus | getCommandStatus (String requestId, String commandId) Bir küme komutunun komut durumunu alın (durum ve iptal edildiyse iptal nedeni). |
IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () ClusterHostEvent s yüklemek için kullanılabilecek bir IClusterEventUploader edinin. |
TestContext | getTestContext (String requestId, String commandId) |
TestEnvironment | getTestEnvironment (String requestId) Bir istek için TestEnvironment edinin. |
| getTestResources (String requestId) Bir istek için TestResource s alın. |
| leaseHostCommands (String clusterId, String hostname, deviceInfos, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, deviceInfos, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, deviceInfos, nextClusterIds, int maxTasksTolease) Verici ana bilgisayar için ClusterCommand kiralayın. |
void | updateTestContext (String requestId, String commandId, TestContext testContext) |
kamu inşaatçılar
Küme İstemcisi
public ClusterClient ()
Genel yöntemler
GetCommandState
public ClusterCommand.State getCommandState (String requestId,
String commandId)
Bir küme komutunun durumunu belirleyin.
parametreler |
---|
requestId | String : küme istek kimliği |
commandId | String : küme komut kimliği |
GetCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Bir küme komutunun komut durumunu alın (durum ve iptal edildiyse iptal nedeni).
parametreler |
---|
requestId | String : küme istek kimliği |
commandId | String : küme komut kimliği |
getTestContext
public TestContext getTestContext (String requestId,
String commandId)
parametreler |
---|
requestId | String |
commandId | String |
getTestResources
public getTestResources (String requestId)
Bir istek için TestResource
s alın.
kiralamaHostKomutları
public leaseHostCommands (String clusterId,
String hostname,
deviceInfos,
nextClusterIds,
int maxTasksTolease)
Verici ana bilgisayar için ClusterCommand
kiralayın.
parametreler |
---|
clusterId | String : ana bilgisayar için küme kimliği |
hostname | String : ana bilgisayar adı |
deviceInfos | : Ana bilgisayarın sahip olduğu deviceInfos |
nextClusterIds | : komutları kiralanacak sonraki küme kimliklerinin listesi. |
maxTasksTolease | int : kiralanabilecek maksimum görev sayısı |
güncellemeTestBağlam
public void updateTestContext (String requestId,
String commandId,
TestContext testContext)
parametreler |
---|
requestId | String |
commandId | String |
testContext | TestContext |