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.
    
  
  
    
  
  
  
  
    
  
  
    
    
    
  
  
ClusterClient
  public
  
  
  
  class
  ClusterClient
  
    extends Object
  
  
  
  
  
      implements
      
        IClusterClient
      
  
  
  
    
    | java.lang.Object | 
  
  
    
      | ↳ | com.android.tradefed.cluster.ClusterClient | 
  
  
    
  Implementacja IClusterClient do interakcji z backendem TFC.
Podsumowanie
| Metody publiczne | 
|---|
  
  
  
    | 
        
        
        
        
        
        IClusterEventUploader<ClusterCommandEvent> | 
      getCommandEventUploader()
      Uzyskaj IClusterEventUploader, którego możesz używać do przesyłaniaClusterCommandEvent. | 
  
  
  
  
    | 
        
        
        
        
        
        ClusterCommand.State | 
      getCommandState(String requestId, String commandId)
      Określ stan polecenia klastra.
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        ClusterCommandStatus | 
      getCommandStatus(String requestId, String commandId)
      Pobieranie stanu polecenia klastra (stan i przyczyna anulowania, jeśli zostało anulowane).
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        IClusterEventUploader<ClusterHostEvent> | 
      getHostEventUploader()
      Uzyskaj IClusterEventUploader, którego możesz używać do przesyłaniaClusterHostEvent. | 
  
  
  
  
    | 
        
        
        
        
        
        TestContext | 
      getTestContext(String requestId, String commandId)
      
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        TestEnvironment | 
      getTestEnvironment(String requestId)
      Uzyskaj TestEnvironmentdla prośby. | 
  
  
  
  
    | 
        
        
        
        
        
         | 
      getTestResources(String requestId)
      Uzyskaj TestResourcedla prośby. | 
  
  
  
  
    | 
        
        
        
        
        
         | 
      leaseHostCommands(String clusterId, String hostname,  deviceInfos,  nextClusterIds, int maxTasksTolease)
      Leasing ClusterCommanddla danego hosta. | 
  
  
  
  
    | 
        
        
        
        
        
        void | 
      updateTestContext(String requestId, String commandId, TestContext testContext)
      
        
    
 | 
  
Konstruktory publiczne
    ClusterClient
    
public ClusterClient ()
    
    
    
  
 
Metody publiczne
    getCommandState
    
public 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 TestContext getTestContext (String requestId, 
                String commandId)
    
    
    
  
    
    | Parametry | 
|---|
      
        | requestId | String | 
      
        | commandId | String | 
    
    
      
  
 
    getTestResources
    
public  getTestResources (String requestId)
    
    
    
  Uzyskaj TestResource dla prośby.
    
      
  
 
    leaseHostCommands
    
public  leaseHostCommands (String clusterId, 
                String hostname, 
                 deviceInfos, 
                 nextClusterIds, 
                int maxTasksTolease)
    
    
    
  Leasing ClusterCommand dla danego hosta.
    
    | Parametry | 
|---|
      
        | clusterId | String: identyfikator klastra hosta | 
      
        | hostname | String: nazwa hosta | 
      
        | deviceInfos | : 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ć | 
    
    
      
  
 
    updateTestContext
    
public 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."],[],[]]