ClusterCommandEvent

public class ClusterCommandEvent
extends Object implements IClusterEvent

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


Una classe per incapsulare gli eventi dei comandi del cluster da caricare.

Riepilogo

Classi nidificate

class ClusterCommandEvent.Builder

 

Costanti

int MAX_DATA_STRING_SIZE

Campi

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

Metodi pubblici

static ClusterCommandEvent.Builder createEventBuilder()

Crea un'Builder di base.

static ClusterCommandEvent.Builder createEventBuilder(ClusterCommand command)

Crea un valore Builder di base per il ClusterCommand specificato.

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

String toString()

Costanti

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

Valore costante: 4095 (0x00000fff)

Campi

ERRORE_chiave_DATA

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_CONFIGURA_TIME_MILLIS

public static final String DATA_KEY_SETUP_TIME_MILLIS

ERRORE_COMANDO_SUBPROCESSO_DATA_KEY_SUBPROCESS

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

DATA_KEY_SUMMARY

public static final String DATA_KEY_SUMMARY

DATA_KEY_TOTAL_TEST_COUNT

public static final String DATA_KEY_TOTAL_TEST_COUNT

Metodi pubblici

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder ()

Crea un'Builder di base.

Ritorni
ClusterCommandEvent.Builder Builder.

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

Crea un valore Builder di base per il ClusterCommand specificato.

Parametri
command ClusterCommand

Ritorni
ClusterCommandEvent.Builder Builder.

ID tentativo

public String getAttemptId ()

Ritorni
String

getCommandTaskId

public String getCommandTaskId ()

Ritorni
String

getData

public  getData ()

Ritorni

getDeviceSerials

public  getDeviceSerials ()

Ritorni

getHostName

public String getHostName ()

Ritorni
String

getInvocationStatus

public InvocationStatus getInvocationStatus ()

Ritorni
InvocationStatus

getTimestamp

public long getTimestamp ()

Ritorni
long

getType

public ClusterCommandEvent.Type getType ()

Ritorni
ClusterCommandEvent.Type

toJSON

public JSONObject toJSON ()

Ritorni
JSONObject

Lanci
JSONException

ToString

public String toString ()

Ritorni
String