IClusterClient
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
Bilinen dolaylı alt sınıflar |
TFC arka ucuyla etkileşim kurmaya yönelik bir arayüz.
Özet
Sabitler |
---|
String | TYPE_NAME Benzersiz yapılandırma nesnesi türü adı. |
Genel yöntemler |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () ClusterCommandEvent s'yi yüklemek için kullanılabilecek bir IClusterEventUploader edinin. |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) Bir küme komutunun durumunu belirleyin. |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) Bir küme komutunun komut durumunu alın (durum ve iptal edilirse iptal nedeni). |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () ClusterHostEvent s'yi yüklemek için kullanılabilecek bir IClusterEventUploader edinin. |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) Bir istek için TestEnvironment edinin. |
abstract | getTestResources (String requestId) Bir istek için TestResource alın. |
abstract | leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) Verme ana bilgisayarı için ClusterCommand kiralayın. |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
Sabitler
TYPE_NAME
public static final String TYPE_NAME
Benzersiz yapılandırma nesnesi türü adı. Singleton örneğini GlobalConfiguration
almak için kullanılır.
Sabit Değer: "cluster_client"
Genel yöntemler
getCommandState
public abstract 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 abstract TestContext getTestContext (String requestId,
String commandId)
Parametreler |
---|
requestId | String |
commandId | String |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
Bir istek için TestEnvironment
edinin.
Atar |
---|
| IO İstisnası |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
Bir istek için TestResource
alın.
Atar |
---|
| IO İstisnası |
| org.json.JSONException |
JSONException | |
kiralamaHostKomutları
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
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ı |
devices | : 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ı |
Atar |
---|
| org.json.JSONException |
JSONException | |
güncellemeTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
Parametreler |
---|
requestId | String |
commandId | String |
testContext | TestContext |