IClusterClient
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
TFC 백엔드와 상호작용하기 위한 인터페이스.
요약
공개 방법 |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () ClusterCommandEvent 를 업로드하는 데 사용할 수 있는 IClusterEventUploader 가져옵니다. |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) 클러스터 명령의 상태를 확인합니다. |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) 클러스터 명령의 명령 상태를 가져옵니다(취소된 경우 상태 및 취소 이유). |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () ClusterHostEvent 를 업로드하는 데 사용할 수 있는 IClusterEventUploader 가져옵니다. |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) 요청에 대한 TestEnvironment 가져옵니다. |
abstract | getTestResources (String requestId) 요청에 대한 TestResource 를 가져옵니다. |
abstract | leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) 주어진 호스트에 대해 ClusterCommand 임대하십시오. |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
상수
TYPE_NAME
public static final String TYPE_NAME
고유한 구성 개체 유형 이름입니다. GlobalConfiguration
에서 싱글톤 인스턴스를 검색하는 데 사용됩니다.
상수 값: "cluster_client"
공개 방법
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
클러스터 명령의 상태를 확인합니다.
매개변수 |
---|
requestId | String : 클러스터 요청 ID |
commandId | String : 클러스터 명령 ID |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
클러스터 명령의 명령 상태를 가져옵니다(취소된 경우 상태 및 취소 이유).
매개변수 |
---|
requestId | String : 클러스터 요청 ID |
commandId | String : 클러스터 명령 ID |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
매개변수 |
---|
requestId | String |
commandId | String |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
요청에 대한 TestEnvironment
가져옵니다.
던지기 |
---|
| IO예외 |
| org.json.JSON예외 |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
요청에 대한 TestResource
를 가져옵니다.
던지기 |
---|
| IO예외 |
| org.json.JSON예외 |
JSONException | |
임대 호스트 명령
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
주어진 호스트에 대해 ClusterCommand
임대하십시오.
매개변수 |
---|
clusterId | String : 호스트의 클러스터 ID |
hostname | String : 호스트 이름 |
devices | : 호스트가 가지고 있는 deviceInfos |
nextClusterIds | : 명령을 임대할 다음 클러스터 ID 목록입니다. |
maxTasksTolease | int : 현재 임대할 수 있는 최대 작업 수 |
던지기 |
---|
| org.json.JSON예외 |
JSONException | |
업데이트 테스트 컨텍스트
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
매개변수 |
---|
requestId | String |
commandId | String |
testContext | TestContext |