ClusterCommand

public class ClusterCommand
extends Object

java.lang.Object
   ↳ 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()

샤드 색인을 반환합니다.

List<String> getTargetDeviceSerials()

이 명령어가 실행을 시도할 대상 기기 일련번호 목록을 반환합니다.

String getTaskId()

작업 ID를 반환합니다.

void setTargetDeviceSerials(List<String> targetDeviceSerials)

명령어를 실행하려고 하는 대상 기기 일련번호 목록을 설정합니다.

공개 생성자

ClusterCommand

public ClusterCommand (String commandId, 
                String taskId, 
                String cmdLine)

매개변수
commandId String

taskId String

cmdLine String

ClusterCommand

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

public List<String> getTargetDeviceSerials ()

이 명령어가 실행을 시도할 대상 기기 일련번호 목록을 반환합니다.

반환
List<String> 대상 기기 일련번호 목록

getTaskId

public String getTaskId ()

작업 ID를 반환합니다.

반환
String 작업 ID입니다.

setTargetDeviceSerials

public void setTargetDeviceSerials (List<String> targetDeviceSerials)

명령어를 실행하려고 하는 대상 기기 일련번호 목록을 설정합니다.

매개변수
targetDeviceSerials List: 설정할 기기 일련번호 목록