ClusterCommandScheduler
  public
  
  
  
  class
  ClusterCommandScheduler
  
  
  
  
    extends CommandScheduler
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | com.android.tradefed.command.CommandScheduler | |
| ↳ | com.android.tradefed.cluster.ClusterCommandScheduler | |
支援 TFC (Tradefed 叢集) 的 ICommandScheduler。這個排程器會執行 TFC 指令佇列中的指令,並將叫用事件上傳至 TFC 指令事件佇列。
摘要
公用建構函式 | |
|---|---|
      
      ClusterCommandScheduler()
      
      
     | 
  |
公用方法 | |
|---|---|
        
        
        
        
        
        void
     | 
  
    
      
      shutdown()
      
      
        嘗試安全關閉指令排程器。  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      shutdownHard()
      
      
        嘗試強制關閉指令排程器。  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      start()
      
      
        啟動排程器,包括設定記錄、初始化   | 
  
受保護的方法 | |
|---|---|
        
        
        
        
        
        boolean
     | 
  
    
      
      dryRunCommand(com.android.tradefed.cluster.ClusterCommandScheduler.InvocationEventHandler handler, String[] args)
      
      
        判斷指定指令是否為模擬測試。  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      processReadyCommands(IDeviceManager manager)
      
      
        
  | 
  
公用建構函式
ClusterCommandScheduler
public ClusterCommandScheduler ()
公用方法
關機
public void shutdown ()
嘗試安全關閉指令排程器。
清除等待測試的指令,並要求所有進行中的叫用作業妥善關閉。
在呼叫關閉作業後,排程器主迴圈會等待所有進行中的叫用完成,然後才完全結束。
shutdownHard
public void shutdownHard ()
嘗試強制關閉指令排程器。與 shutdownHard(true) 相同。
受保護的方法
dryRunCommand
protected boolean dryRunCommand (com.android.tradefed.cluster.ClusterCommandScheduler.InvocationEventHandler handler, 
                String[] args)判斷指定指令是否為模擬測試。如果指令是模擬執行,請驗證指令。如果有任何設定問題,系統會擲回 ConfigurationException。
| 參數 | |
|---|---|
handler | 
        
          com.android.tradefed.cluster.ClusterCommandScheduler.InvocationEventHandler:InvocationEventHandler 用於回報模擬執行驗證的事件。 | 
      
args | 
        
          String:要驗證的指令。 | 
      
| 傳回 | |
|---|---|
boolean | 
        如果指令是模擬執行,則傳回 true;否則傳回 false。 | 
| 擲回 | |
|---|---|
ConfigurationException | 
          |
processReadyCommands
protected void processReadyCommands (IDeviceManager manager)
| 參數 | |
|---|---|
manager | 
        
          IDeviceManager  |