ClusterCommand

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)

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

공개 생성자

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를 반환합니다. 시도는 여러 개의 URL을 구분하는 데 사용되는 무작위로 생성된 GUID입니다. 실행할 수 있습니다

반환 값
String 시도 ID

getCommandId

public String getCommandId ()

명령어 ID를 반환합니다.

반환 값
String 명령어 ID

get명령줄

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 : 설정할 기기 일련번호 목록입니다.