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

Kamu inşaatçıları

ClusterClient ()

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

getCommandEventUploader

public IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader ()

ClusterCommandEvent s'yi yüklemek için kullanılabilecek bir IClusterEventUploader edinin.

İadeler
IClusterEventUploader < ClusterCommandEvent >

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

İadeler
ClusterCommand.State küme komutunun durumu veya durum belirlenemiyorsa ClusterCommand.State#UNKNOWN

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

İadeler
ClusterCommandStatus Komut iptal edilirse durumu ve iptal nedenini temsil eden bir ClusterCommandStatus. Belirlenemediği takdirde durum ClusterCommand.State#UNKNOWN olur.

getHostEventYükleyici

public IClusterEventUploader<ClusterHostEvent> getHostEventUploader ()

ClusterHostEvent s'yi yüklemek için kullanılabilecek bir IClusterEventUploader edinin.

İadeler
IClusterEventUploader < ClusterHostEvent >

getTestContext

public TestContext getTestContext (String requestId, 
                String commandId)

Parametreler
requestId String

commandId String

İadeler
TestContext

Atar
JSONException

getTestEnvironment

public TestEnvironment getTestEnvironment (String requestId)

Bir istek için TestEnvironment edinin.

İadeler
TestEnvironment bir TestEnvironment nesnesi.

Atar
JSONException

getTestResources

public  getTestResources (String requestId)

Bir istek için TestResource alın.

İadeler
TestResource bir listesi.

Atar
JSONException

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ı

İadeler
ClusterCommand bir listesi

Atar
JSONException

güncellemeTestContext

public void updateTestContext (String requestId, 
                String commandId, 
                TestContext testContext)

Parametreler
requestId String

commandId String

testContext TestContext

Atar
JSONException