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 uses AI technology to translate content into your preferred language. AI translations can contain errors.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
ClusterClient
public
class
ClusterClient
extends Object
implements
IClusterClient
| java.lang.Object
|
| ↳ |
com.android.tradefed.cluster.ClusterClient
|
Un'implementazione IClusterClient per interagire con il backend di TFC.
Riepilogo
Metodi pubblici |
IClusterEventUploader<ClusterCommandEvent>
|
getCommandEventUploader()
Ottieni un IClusterEventUploader che può essere utilizzato per caricare ClusterCommandEvent.
|
ClusterCommand.State
|
getCommandState(String requestId, String commandId)
Determina lo stato di un comando del cluster.
|
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).
|
IClusterEventUploader<ClusterHostEvent>
|
getHostEventUploader()
Ottieni un IClusterEventUploader che può essere utilizzato per caricare ClusterHostEvent.
|
TestContext
|
getTestContext(String requestId, String commandId)
|
TestEnvironment
|
getTestEnvironment(String requestId)
Ottieni TestEnvironment per una richiesta.
|
List<TestResource>
|
getTestResources(String requestId)
Visualizza i TestResource per una richiesta.
|
List<ClusterCommand>
|
leaseHostCommands(String clusterId, String hostname, List<ClusterDeviceInfo> deviceInfos, List<String> nextClusterIds, int maxTasksTolease)
Lease ClusterCommand per l'host specificato.
|
void
|
updateTestContext(String requestId, String commandId, TestContext testContext)
|
Costruttori pubblici
ClusterClient
public ClusterClient ()
Metodi pubblici
getCommandState
public 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 TestContext getTestContext (String requestId,
String commandId)
| Parametri |
requestId |
String |
commandId |
String |
| Genera |
IOException |
|
JSONException |
|
getTestEnvironment
public TestEnvironment getTestEnvironment (String requestId)
Ottieni TestEnvironment per una richiesta.
| Genera |
IOException |
|
JSONException |
|
getTestResources
public List<TestResource> getTestResources (String requestId)
Visualizza i TestResource per una richiesta.
| Genera |
IOException |
|
JSONException |
|
leaseHostCommands
public List<ClusterCommand> leaseHostCommands (String clusterId,
String hostname,
List<ClusterDeviceInfo> deviceInfos,
List<String> nextClusterIds,
int maxTasksTolease)
Lease ClusterCommand per l'host specificato.
| Parametri |
clusterId |
String: l'ID cluster dell'host |
hostname |
String: nome host |
deviceInfos |
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 |
updateTestContext
public 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.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2026-06-22 UTC."],[],[]]