ClusterClient

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

Herkese açık kurucular

ClusterClient()

Herkese açık yöntemler

IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader()

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

ClusterCommand.State getCommandState(String requestId, String commandId)

Bir küme komutunun durumunu belirleme.

ClusterCommandStatus getCommandStatus(String requestId, String commandId)

Bir küme komutunun komut durumunu (iptal edilmişse durum ve iptal nedeni) alın.

IClusterEventUploader<ClusterHostEvent> getHostEventUploader()

ClusterHostEvent yüklemek için kullanılabilecek bir IClusterEventUploader alın.

TestContext getTestContext(String requestId, String commandId)

TestEnvironment getTestEnvironment(String requestId)

Bir istek için TestEnvironment alın.

getTestResources(String requestId)

Bir istek için TestResource alın.

leaseHostCommands(String clusterId, String hostname, deviceInfos, nextClusterIds, int maxTasksTolease)

Belirtilen ana makine için ClusterCommand kiralayın.

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

Herkese açık kurucular

ClusterClient

public ClusterClient ()

Herkese açık yöntemler

getCommandEventUploader

public IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader ()

ClusterCommandEvent yüklemek için kullanılabilecek bir IClusterEventUploader alın.

İlerlemeler
IClusterEventUploader<ClusterCommandEvent>

getCommandState

public 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 IClusterEventUploader<ClusterHostEvent> getHostEventUploader ()

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

İlerlemeler
IClusterEventUploader<ClusterHostEvent>

getTestContext

public TestContext getTestContext (String requestId, 
                String commandId)

Parametreler
requestId String

commandId String

İlerlemeler
TestContext

Atışlar
JSONException

getTestEnvironment

public TestEnvironment getTestEnvironment (String requestId)

Bir istek için TestEnvironment alın.

İlerlemeler
TestEnvironment TestEnvironment nesnesi.

Atışlar
JSONException

getTestResources

public  getTestResources (String requestId)

Bir istek için TestResource alın.

İlerlemeler
TestResource listesi.

Atışlar
JSONException

leaseHostCommands

public  leaseHostCommands (String clusterId, 
                String hostname, 
                 deviceInfos, 
                 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ı

deviceInfos : 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
JSONException

updateTestContext

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

Parametreler
requestId String

commandId String

testContext TestContext

Atışlar
JSONException