IClusterClient
public
interface
IClusterClient
com.android.tradefed.cluster.IClusterClient
|
Classi di sottoclasse indirette note
|
Un'interfaccia per interagire con il backend di TFC.
Riepilogo
Costanti |
String |
TYPE_NAME
Il nome univoco del tipo di oggetto di configurazione.
|
Metodi pubblici |
abstract
IClusterEventUploader<ClusterCommandEvent>
|
getCommandEventUploader()
Ottieni un IClusterEventUploader che può essere utilizzato per caricare ClusterCommandEvent .
|
abstract
ClusterCommand.State
|
getCommandState(String requestId, String commandId)
Determina lo stato di un comando del cluster.
|
default
ClusterCommandStatus
|
getCommandStatus(String requestId, String commandId)
Visualizza lo stato di un comando del cluster (lo stato e il motivo dell'annullamento, se annullato).
|
abstract
IClusterEventUploader<ClusterHostEvent>
|
getHostEventUploader()
Ottieni un IClusterEventUploader che può essere utilizzato per caricare ClusterHostEvent .
|
abstract
TestContext
|
getTestContext(String requestId, String commandId)
|
abstract
TestEnvironment
|
getTestEnvironment(String requestId)
Ricevi TestEnvironment per una richiesta.
|
abstract
|
getTestResources(String requestId)
Ricevi TestResource per una richiesta.
|
abstract
|
leaseHostCommands(String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease)
Affitto ClusterCommand per l'host specificato.
|
abstract
void
|
updateTestContext(String requestId, String commandId, TestContext testContext)
|
Costanti
TYPE_NAME
public static final String TYPE_NAME
Il nome univoco del tipo di oggetto di configurazione. Utilizzato per recuperare l'istanza singleton da GlobalConfiguration
.
Valore costante:
"cluster_client"
Metodi pubblici
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
Determina lo stato di un comando del cluster.
Parametri |
requestId |
String : ID richiesta del cluster |
commandId |
String : ID comando cluster |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Visualizza lo stato di un comando del cluster (lo stato e il motivo dell'annullamento, se annullato).
Parametri |
requestId |
String : ID richiesta del cluster |
commandId |
String : ID comando cluster |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
Parametri |
requestId |
String |
commandId |
String |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
Ricevi TestEnvironment
per una richiesta.
Lanci |
|
IOException |
|
org.json.JSONException |
JSONException |
|
getTestResources
public abstract getTestResources (String requestId)
Ricevi TestResource
per una richiesta.
Lanci |
|
IOException |
|
org.json.JSONException |
JSONException |
|
leaseHostCommands
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
Affitto ClusterCommand
per l'host specificato.
Parametri |
clusterId |
String : ID cluster per l'host |
hostname |
String : nome host |
devices |
: deviceInfos dell'organizzatore |
nextClusterIds |
: un elenco di ID cluster successivi da cui acquisire i comandi. |
maxTasksTolease |
int : il numero massimo di attività che possono essere attualmente acquistate |
Lanci |
|
org.json.JSONException |
JSONException |
|
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
Parametri |
requestId |
String |
commandId |
String |
testContext |
TestContext |