클러스터명령
public class ClusterCommand
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommand |
TF 클러스터에서 가져온 작업을 나타내는 클래스입니다.
요약
중첩 클래스 | |
---|---|
enum | ClusterCommand.RequestType |
enum | ClusterCommand.State TF 클러스터의 명령 상태입니다. |
공개 생성자 | |
---|---|
ClusterCommand (String commandId, String taskId, String cmdLine) | |
ClusterCommand (String requestId, String commandId, String taskId, String cmdLine, String attemptId, ClusterCommand.RequestType requestType, Integer shardCount, Integer shardIndex) 건설자. |
공개 메소드 | |
---|---|
static ClusterCommand | fromJson (JSONObject json) |
String | getAttemptId () 시도 ID를 반환합니다. |
String | getCommandId () 명령 ID를 반환합니다. |
String | getCommandLine () 명령줄 문자열을 반환합니다. |
UniqueMultiMap<String, String> | getExtraOptions () |
String | getRequestId () 요청 ID를 반환합니다. |
ClusterCommand.RequestType | getRequestType () 요청 유형을 반환합니다. |
Integer | getShardCount () 샤드 수를 반환합니다. |
Integer | getShardIndex () 샤드 인덱스를 반환합니다. |
getTargetDeviceSerials () 이 명령이 실행을 시도할 대상 장치 일련 목록을 반환합니다. | |
String | getTaskId () 작업 ID를 반환합니다. |
void | setTargetDeviceSerials ( targetDeviceSerials) setTargetDeviceSerials ( targetDeviceSerials) 명령이 실행을 시도할 대상 장치 일련 목록을 설정합니다. |
공개 생성자
클러스터명령
public ClusterCommand (String commandId, String taskId, String cmdLine)
매개변수 | |
---|---|
commandId | String |
taskId | String |
cmdLine | String |
클러스터명령
public ClusterCommand (String requestId, String commandId, String taskId, String cmdLine, String attemptId, ClusterCommand.RequestType requestType, Integer shardCount, Integer shardIndex)
건설자.
매개변수 | |
---|---|
requestId | String : 요청 ID |
commandId | String : 이 작업을 실행한 명령의 ID입니다. |
taskId | String : 이 작업의 ID |
cmdLine | String : 실행할 명령줄 |
attemptId | String |
requestType | ClusterCommand.RequestType : 요청 유형 |
shardCount | Integer : 샤드 수 |
shardIndex | Integer : 샤드 인덱스 |
공개 메소드
fromJson
public static ClusterCommand fromJson (JSONObject json)
매개변수 | |
---|---|
json | JSONObject |
보고 | |
---|---|
ClusterCommand |
던지기 | |
---|---|
JSONException |
getAtemptId
public String getAttemptId ()
시도 ID를 반환합니다. 시도는 여러 명령 실행을 구별하는 데 사용되는 무작위로 생성된 GUID입니다.
보고 | |
---|---|
String | 시도 ID |
getCommandId
public String getCommandId ()
명령 ID를 반환합니다.
보고 | |
---|---|
String | 명령 ID |
getCommandLine
public String getCommandLine ()
명령줄 문자열을 반환합니다.
보고 | |
---|---|
String | 명령줄 문자열. |
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
보고 | |
---|---|
UniqueMultiMap<String, String> | 주입할 추가 옵션의 멀티맵 |
getRequestId
public String getRequestId ()
요청 ID를 반환합니다.
보고 | |
---|---|
String | 요청 ID |
getRequestType
public ClusterCommand.RequestType getRequestType ()
요청 유형을 반환합니다.
보고 | |
---|---|
ClusterCommand.RequestType | 요청 유형 |
getShardCount
public Integer getShardCount ()
샤드 수를 반환합니다.
보고 | |
---|---|
Integer | 샤드 수. |
getShardIndex
public Integer getShardIndex ()
샤드 인덱스를 반환합니다.
보고 | |
---|---|
Integer | 샤드 인덱스. |
getTargetDeviceSerials
publicgetTargetDeviceSerials ()
이 명령이 실행을 시도할 대상 장치 일련 목록을 반환합니다.
보고 | |
---|---|
대상 장치 일련번호 목록 |
getTaskId
public String getTaskId ()
작업 ID를 반환합니다.
보고 | |
---|---|
String | 작업 ID입니다. |
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials)
명령이 실행을 시도할 대상 장치 일련 목록을 설정합니다.
매개변수 | |
---|---|
targetDeviceSerials |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]