Küme İstemcisi
public class ClusterClient
extends Object
implements IClusterClient
java.lang.Object |
↳ | com.android.tradefed.cluster.ClusterClient |
TFC arka ucuyla etkileşime geçmek için bir IClusterClient
uygulaması.
Özet
Genel yöntemler |
---|
IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () ClusterCommandEvent s'yi 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 edilirse iptal nedeni). |
IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () ClusterHostEvent s'yi 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 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) Verme 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 isteği kimliği |
commandId | String : küme komut kimliği |
Komut Durumu'nu al
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Bir küme komutunun komut durumunu alın (durum ve iptal edilirse iptal nedeni).
Parametreler |
---|
requestId | String : küme isteği 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
alın.
kiralamaHostKomutları
public leaseHostCommands (String clusterId,
String hostname,
deviceInfos,
nextClusterIds,
int maxTasksTolease)
Verme ana bilgisayarı için ClusterCommand
kiralayın.
Parametreler |
---|
clusterId | String : ana bilgisayarın küme kimliği |
hostname | String : ana bilgisayar adı |
deviceInfos | : Ana bilgisayarın sahip olduğu cihaz bilgileri |
nextClusterIds | : komutların kiralanacağı sonraki küme kimliklerinin listesi. |
maxTasksTolease | int : şu anda kiralanabilecek maksimum görev sayısı |
güncellemeTestContext
public void updateTestContext (String requestId,
String commandId,
TestContext testContext)
Parametreler |
---|
requestId | String |
commandId | String |
testContext | TestContext |