W 2026 r., aby dostosować się do naszego modelu stabilnego rozwoju trunk i zapewnić stabilność platformy w ekosystemie, będziemy publikować kod źródłowy w AOSP w drugim i czwartym kwartale. Do tworzenia i współtworzenia AOSP używaj gałęzi android-latest-release. Gałąź manifestu android-latest-release będzie zawsze odwoływać się do najnowszej wersji przesłanej do AOSP. Więcej informacji znajdziesz w artykule Zmiany w AOSP.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
IClusterClient
public
interface
IClusterClient
| com.android.tradefed.cluster.IClusterClient
|
Interfejs do interakcji z backendem TFC.
Podsumowanie
Stałe |
String |
TYPE_NAME
Unikalna nazwa typu obiektu konfiguracji.
|
Metody publiczne |
abstract
IClusterEventUploader<ClusterCommandEvent>
|
getCommandEventUploader()
Uzyskaj IClusterEventUploader, którego możesz użyć do przesyłania ClusterCommandEvent.
|
abstract
ClusterCommand.State
|
getCommandState(String requestId, String commandId)
Określ stan polecenia klastra.
|
default
ClusterCommandStatus
|
getCommandStatus(String requestId, String commandId)
Pobierz stan polecenia klastra (stan i przyczynę anulowania, jeśli zostało anulowane).
|
abstract
IClusterEventUploader<ClusterHostEvent>
|
getHostEventUploader()
Uzyskaj IClusterEventUploader, którego możesz użyć do przesyłania ClusterHostEvent.
|
abstract
TestContext
|
getTestContext(String requestId, String commandId)
|
abstract
TestEnvironment
|
getTestEnvironment(String requestId)
Uzyskaj TestEnvironment za prośbę.
|
abstract
List<TestResource>
|
getTestResources(String requestId)
Uzyskaj TestResource dla prośby.
|
abstract
List<ClusterCommand>
|
leaseHostCommands(String clusterId, String hostname, List<ClusterDeviceInfo> devices, List<String> nextClusterIds, int maxTasksTolease)
Dzierżawa ClusterCommand dla podanego hosta.
|
abstract
void
|
updateTestContext(String requestId, String commandId, TestContext testContext)
|
Stałe
TYPE_NAME
public static final String TYPE_NAME
Unikalna nazwa typu obiektu konfiguracji. Służy do pobierania instancji singletona z GlobalConfiguration.
Wartość stała:
"cluster_client"
Metody publiczne
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
Określ stan polecenia klastra.
| Parametry |
requestId |
String: identyfikator żądania klastra |
commandId |
String: identyfikator polecenia klastra |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
Pobierz stan polecenia klastra (stan i przyczynę anulowania, jeśli zostało anulowane).
| Parametry |
requestId |
String: identyfikator żądania klastra |
commandId |
String: identyfikator polecenia klastra |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
| Parametry |
requestId |
String |
commandId |
String |
| Zgłasza |
IOException |
|
JSONException |
|
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
Uzyskaj TestEnvironment za prośbę.
| Zgłasza |
|
java.io.IOException |
|
org.json.JSONException |
IOException |
|
JSONException |
|
getTestResources
public abstract List<TestResource> getTestResources (String requestId)
Uzyskaj TestResource dla prośby.
| Zgłasza |
|
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)
Dzierżawa ClusterCommand dla podanego hosta.
| Parametry |
clusterId |
String: identyfikator klastra hosta. |
hostname |
String: nazwa hosta |
devices |
List: deviceInfos hosta |
nextClusterIds |
List: lista identyfikatorów następnych klastrów, z których mają być pobierane polecenia. |
maxTasksTolease |
int: maksymalna liczba zadań, które można obecnie wypożyczyć |
| Zgłasza |
|
org.json.JSONException |
JSONException |
|
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
| Parametry |
requestId |
String |
commandId |
String |
testContext |
TestContext |
| Zgłasza |
IOException |
|
JSONException |
|
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2026-06-22 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2026-06-22 UTC."],[],[]]