クラスターコマンドイベント

public class ClusterCommandEvent
extends Object implements IClusterEvent

java.lang.オブジェクト
com.android.tradefed.cluster.ClusterCommandEvent


アップロードするクラスターコマンドイベントをカプセル化するクラス。

まとめ

入れ子になったクラス

class ClusterCommandEvent.Builder

定数

int MAX_DATA_STRING_SIZE

田畑

public static final String DATA_KEY_ERROR

public static final String DATA_KEY_ERROR_ID_CODE

public static final String DATA_KEY_ERROR_ID_NAME

public static final String DATA_KEY_ERROR_STATUS

public static final String DATA_KEY_FAILED_TEST_COUNT

public static final String DATA_KEY_FAILED_TEST_RUN_COUNT

public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS

public static final String DATA_KEY_LOST_DEVICE_DETECTED

public static final String DATA_KEY_PASSED_TEST_COUNT

public static final String DATA_KEY_SETUP_TIME_MILLIS

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

public static final String DATA_KEY_SUMMARY

public static final String DATA_KEY_TOTAL_TEST_COUNT

パブリックメソッド

static ClusterCommandEvent.Builder createEventBuilder ()

基本のBuilderを作成します。

static ClusterCommandEvent.Builder createEventBuilder ( ClusterCommand command)

指定されたClusterCommandのベースBuilderを作成します。

String getAttemptId ()
String getCommandTaskId ()
getData ()
getDeviceSerials ()
String getHostName ()
InvocationStatus getInvocationStatus ()
long getTimestamp ()
ClusterCommandEvent.Type getType ()
JSONObject toJSON ()

String toString ()

定数

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

定数値: 4095 (0x00000fff)

田畑

データキー_エラー

public static final String DATA_KEY_ERROR

DATA_KEY_ERROR_ID_CODE

public static final String DATA_KEY_ERROR_ID_CODE

DATA_KEY_ERROR_ID_NAME

public static final String DATA_KEY_ERROR_ID_NAME

DATA_KEY_ERROR_STATUS

public static final String DATA_KEY_ERROR_STATUS

DATA_KEY_FAILED_TEST_COUNT

public static final String DATA_KEY_FAILED_TEST_COUNT

DATA_KEY_FAILED_TEST_RUN_COUNT

public static final String DATA_KEY_FAILED_TEST_RUN_COUNT

DATA_KEY_FETCH_BUILD_TIME_MILLIS

public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS

DATA_KEY_LOST_DEVICE_DETECTED

public static final String DATA_KEY_LOST_DEVICE_DETECTED

DATA_KEY_PASSED_TEST_COUNT

public static final String DATA_KEY_PASSED_TEST_COUNT

DATA_KEY_SETUP_TIME_MILLIS

public static final String DATA_KEY_SETUP_TIME_MILLIS

DATA_KEY_SUBPROCESS_COMMAND_ERROR

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

データキー_概要

public static final String DATA_KEY_SUMMARY

DATA_KEY_TOTAL_TEST_COUNT

public static final String DATA_KEY_TOTAL_TEST_COUNT

パブリックメソッド

イベントビルダーの作成

public static ClusterCommandEvent.Builder createEventBuilder ()

基本のBuilderを作成します。

戻り値
ClusterCommandEvent.Builder Builder

イベントビルダーの作成

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

指定されたClusterCommandのベースBuilderを作成します。

パラメーター
command ClusterCommand

戻り値
ClusterCommandEvent.Builder Builder

getAttemptId

public String getAttemptId ()

戻り値
String

getCommandTaskId

public String getCommandTaskId ()

戻り値
String

データの取得

public  getData ()

戻り値

getDeviceSerials

public  getDeviceSerials ()

戻り値

getホスト名

public String getHostName ()

戻り値
String

getInvocationStatus

public InvocationStatus getInvocationStatus ()

戻り値
InvocationStatus

タイムスタンプの取得

public long getTimestamp ()

戻り値
long

getType

public ClusterCommandEvent.Type getType ()

戻り値
ClusterCommandEvent.Type

toJSON

public JSONObject toJSON ()

戻り値
JSONObject

投げる
JSONException

toString

public String toString ()

戻り値
String