A partire dal 2026, per allinearci al nostro modello di sviluppo stabile del trunk e garantire la stabilità della piattaforma per l'ecosistema, pubblicheremo il codice sorgente su AOSP nel secondo e nel quarto trimestre. Per la creazione e il contributo ad AOSP, consigliamo di utilizzare android-latest-release anziché aosp-main. Il ramo del manifest android-latest-release farà sempre riferimento alla release più recente inviata ad AOSP. Per saperne di più, vedi 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 di IClusterClient per interagire con il backend del 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)
Visualizza lo stato 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)
Ricevi TestEnvironment per una richiesta.
|
|
getTestResources(String requestId)
Ricevi TestResource per una richiesta.
|
|
leaseHostCommands(String clusterId, String hostname, deviceInfos, nextClusterIds, int maxTasksTolease)
Affitto 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 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 TestContext getTestContext (String requestId,
String commandId)
| Parametri |
requestId |
String |
commandId |
String |
getTestResources
public getTestResources (String requestId)
Ricevi TestResource per una richiesta.
leaseHostCommands
public leaseHostCommands (String clusterId,
String hostname,
deviceInfos,
nextClusterIds,
int maxTasksTolease)
Affitto ClusterCommand per l'host specificato.
| Parametri |
clusterId |
String: ID cluster per l'host |
hostname |
String: nome host |
deviceInfos |
: deviceInfos dell'organizzatore |
nextClusterIds |
: un elenco di ID cluster successivi da cui concedere in leasing i comandi. |
maxTasksTolease |
int: il numero massimo di attività che possono essere attualmente acquistate |
updateTestContext
public void updateTestContext (String requestId,
String commandId,
TestContext testContext)
| Parametri |
requestId |
String |
commandId |
String |
testContext |
TestContext |
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 2025-07-27 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 2025-07-27 UTC."],[],[]]