Google is committed to advancing racial equity for Black communities. See how.

ClusterCommandEvent

public class ClusterCommandEvent
extends Object implements IClusterEvent

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommandEvent


A class to encapsulate cluster command events to be uploaded.

Summary

Nested classes

class ClusterCommandEvent.Builder

 

enum ClusterCommandEvent.Type

 

Constants

int MAX_DATA_STRING_SIZE

Fields

public static final String DATA_KEY_ERROR

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_SUMMARY

public static final String DATA_KEY_TOTAL_TEST_COUNT

Public methods

static ClusterCommandEvent.Builder createEventBuilder()

Creates a base Builder.

static ClusterCommandEvent.Builder createEventBuilder(ClusterCommand command)

Creates a base Builder for the given ClusterCommand.

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

String toString()

Constants

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

Constant Value: 4095 (0x00000fff)

Fields

DATA_KEY_ERROR

public static final String DATA_KEY_ERROR

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_SUMMARY

public static final String DATA_KEY_SUMMARY

DATA_KEY_TOTAL_TEST_COUNT

public static final String DATA_KEY_TOTAL_TEST_COUNT

Public methods

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder ()

Creates a base Builder.

Returns
ClusterCommandEvent.Builder a Builder.

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

Creates a base Builder for the given ClusterCommand.

Parameters
command ClusterCommand

Returns
ClusterCommandEvent.Builder a Builder.

getAttemptId

public String getAttemptId ()

Returns
String

getCommandTaskId

public String getCommandTaskId ()

Returns
String

getData

public  getData ()

Returns

getDeviceSerials

public  getDeviceSerials ()

Returns

getHostName

public String getHostName ()

Returns
String

getInvocationStatus

public InvocationStatus getInvocationStatus ()

Returns
InvocationStatus

getTimestamp

public long getTimestamp ()

Returns
long

getType

public ClusterCommandEvent.Type getType ()

Returns
ClusterCommandEvent.Type

toJSON

public JSONObject toJSON ()

Returns
JSONObject

Throws
JSONException

toString

public String toString ()

Returns
String