A partire dal 2026, per allinearci al nostro modello di sviluppo trunk stabile e garantire la stabilità della piattaforma per l'ecosistema, pubblicheremo il codice sorgente su AOSP nel secondo e nel quarto trimestre. Per compilare e contribuire ad AOSP, utilizza android-latest-release. Il branch del manifest android-latest-release farà sempre riferimento alla release più recente pubblicata su AOSP. Per saperne di più, consulta la sezione Modifiche ad AOSP.
Google utilizza la tecnologia AI per tradurre i contenuti nella tua lingua preferita. Le traduzioni generate dall'AI potrebbero contenere errori.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
IClusterClient
public
interface
IClusterClient
| com.android.tradefed.cluster.IClusterClient
|
Sottoclassi 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)
Ottieni lo stato del comando 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)
Ottieni TestEnvironment per una richiesta.
|
abstract
List<TestResource>
|
getTestResources(String requestId)
Visualizza i TestResource per una richiesta.
|
abstract
List<ClusterCommand>
|
leaseHostCommands(String clusterId, String hostname, List<ClusterDeviceInfo> devices, List<String> nextClusterIds, int maxTasksTolease)
Lease 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 cluster |
commandId |
String: ID comando cluster |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Ottieni lo stato del comando di un comando del cluster (lo stato e il motivo dell'annullamento, se annullato).
| Parametri |
requestId |
String: ID richiesta cluster |
commandId |
String: ID comando cluster |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
| Parametri |
requestId |
String |
commandId |
String |
| Genera |
IOException |
|
JSONException |
|
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
Ottieni TestEnvironment per una richiesta.
| Genera |
|
java.io.IOException |
|
org.json.JSONException |
IOException |
|
JSONException |
|
getTestResources
public abstract List<TestResource> getTestResources (String requestId)
Visualizza i TestResource per una richiesta.
| Genera |
|
java.io.IOException |
|
org.json.JSONException |
IOException |
|
JSONException |
|
leaseHostCommands
public abstract List<ClusterCommand> leaseHostCommands (String clusterId,
String hostname,
List<ClusterDeviceInfo> devices,
List<String> nextClusterIds,
int maxTasksTolease)
Lease ClusterCommand per l'host specificato.
| Parametri |
clusterId |
String: l'ID cluster dell'host |
hostname |
String: nome host |
devices |
List: deviceInfos the host has |
nextClusterIds |
List: un elenco degli ID dei cluster successivi da cui acquisire i comandi. |
maxTasksTolease |
int: il numero massimo di attività che possono essere attualmente affittate |
| Genera |
|
org.json.JSONException |
JSONException |
|
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
| Parametri |
requestId |
String |
commandId |
String |
testContext |
TestContext |
| Genera |
IOException |
|
JSONException |
|
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2026-06-22 UTC.
[null,null,["Ultimo aggiornamento 2026-06-22 UTC."],[],[]]