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

kamu inşaatçılar

ClusterClient ()

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

getCommandEventYükleyici

public IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader ()

ClusterCommandEvent s 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 istek kimliği

commandId String : küme komut kimliği

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

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

İadeler
ClusterCommandStatus Komut iptal edilirse durumu ve iptal nedenini temsil eden bir ClusterCommandStatus. Belirlenemezse durum ClusterCommand.State#UNKNOWN olur.

getHostEventYükleyici

public IClusterEventUploader<ClusterHostEvent> getHostEventUploader ()

ClusterHostEvent s 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

getTestOrtamı

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 s alın.

İadeler
TestResource listesi.

Atar
JSONException

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ı

İadeler
bir ClusterCommand listesi

Atar
JSONException

güncellemeTestBağlam

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

parametreler
requestId String

commandId String

testContext TestContext

Atar
JSONException