ClusterClient

public class ClusterClient
extends Object implements IClusterClient

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterClient


TFC 백엔드와 상호작용하는 IClusterClient 구현입니다.

요약

공개 생성자

ClusterClient()

공개 메서드

IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader()

ClusterCommandEvent를 업로드하는 데 사용할 수 있는 IClusterEventUploader를 가져옵니다.

ClusterCommand.State getCommandState(String requestId, String commandId)

클러스터 명령어의 상태를 확인합니다.

ClusterCommandStatus getCommandStatus(String requestId, String commandId)

클러스터 명령어의 명령어 상태 (취소된 경우 상태 및 취소 사유)를 가져옵니다.

IClusterEventUploader<ClusterHostEvent> getHostEventUploader()

ClusterHostEvent를 업로드하는 데 사용할 수 있는 IClusterEventUploader를 가져옵니다.

TestContext getTestContext(String requestId, String commandId)

TestEnvironment getTestEnvironment(String requestId)

요청에 대한 TestEnvironment를 가져옵니다.

getTestResources(String requestId)

요청에 대한 TestResource를 가져옵니다.

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

지정된 호스트에 ClusterCommand를 임대합니다.

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

공개 생성자

ClusterClient

public ClusterClient ()

공개 메서드

getCommandEventUploader

public IClusterEventUploader<ClusterCommandEvent> getCommandEventUploader ()

ClusterCommandEvent를 업로드하는 데 사용할 수 있는 IClusterEventUploader를 가져옵니다.

반환 값
IClusterEventUploader<ClusterCommandEvent>

getCommandState

public ClusterCommand.State getCommandState (String requestId, 
                String commandId)

클러스터 명령어의 상태를 확인합니다.

매개변수
requestId String: 클러스터 요청 ID

commandId String: 클러스터 명령어 ID

반환 값
ClusterCommand.State 클러스터 명령어의 상태 또는 상태를 확인할 수 없는 경우 ClusterCommand.State.UNKNOWN

getCommandStatus

public ClusterCommandStatus getCommandStatus (String requestId, 
                String commandId)

클러스터 명령어의 명령어 상태 (취소된 경우 상태 및 취소 사유)를 가져옵니다.

매개변수
requestId String: 클러스터 요청 ID

commandId String: 클러스터 명령어 ID

반환 값
ClusterCommandStatus 명령이 취소된 경우 상태 및 취소 사유를 나타내는 ClusterCommandStatus입니다. 상태를 확인할 수 없는 경우 ClusterCommand.State.UNKNOWN입니다.

getHostEventUploader

public IClusterEventUploader<ClusterHostEvent> getHostEventUploader ()

ClusterHostEvent를 업로드하는 데 사용할 수 있는 IClusterEventUploader를 가져옵니다.

반환 값
IClusterEventUploader<ClusterHostEvent>

getTestContext

public TestContext getTestContext (String requestId, 
                String commandId)

매개변수
requestId String

commandId String

반환 값
TestContext

생성 값
JSONException

getTestEnvironment

public TestEnvironment getTestEnvironment (String requestId)

요청에 대한 TestEnvironment를 가져옵니다.

반환 값
TestEnvironment TestEnvironment 객체입니다.

생성 값
JSONException

getTestResources

public  getTestResources (String requestId)

요청에 대한 TestResource를 가져옵니다.

반환 값
TestResource 목록입니다.

생성 값
JSONException

leaseHostCommands

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

지정된 호스트에 ClusterCommand를 임대합니다.

매개변수
clusterId String: 호스트의 클러스터 ID입니다.

hostname String: 호스트 이름

deviceInfos : 호스트에 있는 deviceInfos

nextClusterIds : 명령어를 임대할 다음 클러스터 ID 목록입니다.

maxTasksTolease int: 현재 임대할 수 있는 최대 태스크 수입니다.

반환 값
ClusterCommand 목록

생성 값
JSONException

updateTestContext

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

매개변수
requestId String

commandId String

testContext TestContext

생성 값
JSONException