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()

샤드 색인을 반환합니다.

getTargetDeviceSerials()

이 명령어를 실행하려는 대상 기기 일련번호 목록을 반환합니다.

String getTaskId()

작업 ID를 반환합니다.

void setTargetDeviceSerials( 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  getTargetDeviceSerials ()

이 명령어를 실행하려는 대상 기기 일련번호 목록을 반환합니다.

반환 값
대상 기기 일련번호 목록

getTaskId

public String getTaskId ()

작업 ID를 반환합니다.

반환 값
String 태스크 ID를 입력합니다.

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

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

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