Od 27 marca 2025 r. zalecamy używanie android-latest-release zamiast aosp-main do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
  
         
       
     
  
  
  
    
  
  
  
    
    
      
    
    
      
      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_NAMEUnikalna nazwa typu obiektu konfiguracji.
          
    
 | 
    
    
| Metody publiczne | 
|---|
  
  
  
    | 
        abstract
        
        
        
        
        IClusterEventUploader<ClusterCommandEvent> | 
      getCommandEventUploader()
      Uzyskaj IClusterEventUploader, którego możesz używać do przesyłaniaClusterCommandEvent. | 
  
  
  
  
    | 
        abstract
        
        
        
        
        ClusterCommand.State | 
      getCommandState(String requestId, String commandId)
      Określ stan polecenia klastra.
        
    
 | 
  
  
  
  
    | 
        
        default
        
        
        
        ClusterCommandStatus | 
      getCommandStatus(String requestId, String commandId)
      Pobieranie stanu polecenia klastra (stan i przyczyna anulowania, jeśli zostało anulowane).
        
    
 | 
  
  
  
  
    | 
        abstract
        
        
        
        
        IClusterEventUploader<ClusterHostEvent> | 
      getHostEventUploader()
      Uzyskaj IClusterEventUploader, którego możesz używać do przesyłaniaClusterHostEvent. | 
  
  
  
  
    | 
        abstract
        
        
        
        
        TestContext | 
      getTestContext(String requestId, String commandId)
       | 
  
  
  
  
    | 
        abstract
        
        
        
        
        TestEnvironment | 
      getTestEnvironment(String requestId)
      Uzyskaj TestEnvironmentdla prośby. | 
  
  
  
  
    | 
        abstract
        
        
        
        
         | 
      getTestResources(String requestId)
      Uzyskaj TestResourcedla prośby. | 
  
  
  
  
    | 
        abstract
        
        
        
        
         | 
      leaseHostCommands(String clusterId, String hostname,  devices,  nextClusterIds, int maxTasksTolease)
      Leasing ClusterCommanddla danego 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)
    
    
    
  Pobieranie stanu polecenia klastra (stan i przyczyna 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 | 
    
    
      
  
 
    getTestEnvironment
    
public abstract TestEnvironment getTestEnvironment (String requestId)
    
    
    
  Uzyskaj TestEnvironment dla prośby.
    
      
      | Rzuty | 
|---|
        
          |  | IOException | 
        
          |  | org.json.JSONException | 
        
          | JSONException |  | 
      
  
 
    getTestResources
    
public abstract  getTestResources (String requestId)
    
    
    
  Uzyskaj TestResource dla prośby.
    
      
      | Rzuty | 
|---|
        
          |  | IOException | 
        
          |  | org.json.JSONException | 
        
          | JSONException |  | 
      
  
 
    leaseHostCommands
    
public abstract  leaseHostCommands (String clusterId, 
                String hostname, 
                 devices, 
                 nextClusterIds, 
                int maxTasksTolease)
    
    
    
  Leasing ClusterCommand dla danego hosta.
    
    | Parametry | 
|---|
      
        | clusterId | String: identyfikator klastra hosta | 
      
        | hostname | String: nazwa hosta | 
      
        | devices | : informacje o urządzeniu hosta, | 
      
        | nextClusterIds | : lista identyfikatorów kolejnych klastrów, z których mają być wypożyczane polecenia. | 
      
        | maxTasksTolease | int: maksymalna liczba zadań, które można obecnie wydzierżać | 
    
    
      
      | Rzuty | 
|---|
        
          |  | org.json.JSONException | 
        
          | JSONException |  | 
      
  
 
    updateTestContext
    
public abstract void updateTestContext (String requestId, 
                String commandId, 
                TestContext testContext)
    
    
    
  
    
    | Parametry | 
|---|
      
        | requestId | String | 
      
        | commandId | String | 
      
        | testContext | TestContext | 
    
      
  
 
 
 
  
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  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: 2025-07-27 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: 2025-07-27 UTC."],[],[]]