클러스터 명령
public class ClusterCommand
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.cluster.ClusterCommand |
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 |
getAttemptId
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 |