IClusterClient
public
interface
IClusterClient
com.android.tradefed.cluster.IClusterClient |
TFC arka ucuyla etkileşim kurmak için kullanılan bir arayüz.
Özet
Sabitler | |
---|---|
String |
TYPE_NAME
Benzersiz yapılandırma nesnesi türü adı. |
Herkese açık yöntemler | |
---|---|
abstract
IClusterEventUploader<ClusterCommandEvent>
|
getCommandEventUploader()
|
abstract
ClusterCommand.State
|
getCommandState(String requestId, String commandId)
Bir küme komutunun durumunu belirleme. |
default
ClusterCommandStatus
|
getCommandStatus(String requestId, String commandId)
Bir küme komutunun komut durumunu (iptal edilmişse durum ve iptal nedeni) alın. |
abstract
IClusterEventUploader<ClusterHostEvent>
|
getHostEventUploader()
|
abstract
TestContext
|
getTestContext(String requestId, String commandId)
|
abstract
TestEnvironment
|
getTestEnvironment(String requestId)
Bir istek için |
abstract
|
getTestResources(String requestId)
Bir istek için |
abstract
|
leaseHostCommands(String clusterId, String hostname,
Belirtilen ana makine için |
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ı. GlobalConfiguration
kaynağından tekil örneği almak için kullanılır.
Sabit Değer: "cluster_client"
Herkese açık yöntemler
getCommandEventUploader
public abstract IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader ()
ClusterCommandEvent
yüklemek için kullanılabilecek bir IClusterEventUploader
edinin.
İlerlemeler | |
---|---|
IClusterEventUploader<ClusterCommandEvent> |
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId, String commandId)
Bir küme komutunun durumunu belirleme.
Parametreler | |
---|---|
requestId |
String : küme istek kimliği |
commandId |
String : küme komut kimliği |
İlerlemeler | |
---|---|
ClusterCommand.State |
cluster komutunun durumu veya durum belirlenemiyorsa ClusterCommand.State.UNKNOWN |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId, String commandId)
Bir küme komutunun komut durumunu (iptal edilmişse durum ve iptal nedeni) alın.
Parametreler | |
---|---|
requestId |
String : küme istek kimliği |
commandId |
String : küme komut kimliği |
İlerlemeler | |
---|---|
ClusterCommandStatus |
Durumu ve komut iptal edilirse iptal nedenini temsil eden bir ClusterCommandStatus. Durum belirlenemezse ClusterCommand.State.UNKNOWN olur. |
getHostEventUploader
public abstract IClusterEventUploader<ClusterHostEvent> getHostEventUploader ()
ClusterHostEvent
yüklemek için kullanılabilecek bir IClusterEventUploader
edinin.
İlerlemeler | |
---|---|
IClusterEventUploader<ClusterHostEvent> |
getTestContext
public abstract TestContext getTestContext (String requestId, String commandId)
Parametreler | |
---|---|
requestId |
String |
commandId |
String |
İlerlemeler | |
---|---|
TestContext |
Atışlar | |
---|---|
JSONException |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
Bir istek için TestEnvironment
alın.
İlerlemeler | |
---|---|
TestEnvironment |
TestEnvironment nesnesi. |
Atışlar | |
---|---|
|
IOException |
|
org.json.JSONException |
JSONException |
getTestResources
public abstractgetTestResources (String requestId)
Bir istek için TestResource
alın.
İlerlemeler | |
---|---|
|
TestResource listesi. |
Atışlar | |
---|---|
|
IOException |
|
org.json.JSONException |
JSONException |
leaseHostCommands
public abstractleaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease)
Belirtilen ana makine için ClusterCommand
kiralayın.
Parametreler | |
---|---|
clusterId |
String : Ana makinenin küme kimliği |
hostname |
String : ana makine adı |
devices |
: Barındırıcının sahip olduğu deviceInfos |
nextClusterIds |
: Komut kiralanacak sonraki küme kimliklerinin listesi. |
maxTasksTolease |
int : Şu anda kiralanabilen maksimum görev sayısı |
İlerlemeler | |
---|---|
|
ClusterCommand listesi |
Atışlar | |
---|---|
|
org.json.JSONException |
JSONException |
updateTestContext
public abstract void updateTestContext (String requestId, String commandId, TestContext testContext)
Parametreler | |
---|---|
requestId |
String |
commandId |
String |
testContext |
TestContext |
Atışlar | |
---|---|
JSONException |