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()

啟動排程器,包括設定記錄、初始化 DeviceManager

受保護的方法

boolean dryRunCommand(ClusterCommandScheduler.InvocationEventHandler handler, String[] args)

判斷指定指令是否為模擬測試。

void processReadyCommands(IDeviceManager manager)

公用建構函式

ClusterCommandScheduler

public ClusterCommandScheduler ()

公用方法

關機

public void shutdown ()

shutdownHard

public void shutdownHard ()

嘗試強制關閉指令排程器。與 shutdownHard(true) 相同。

start

public void start ()

啟動排程器,包括設定記錄、初始化 DeviceManager

受保護的方法

dryRunCommand

protected boolean dryRunCommand (ClusterCommandScheduler.InvocationEventHandler handler, 
                String[] args)

判斷指定指令是否為模擬測試。如果指令是模擬執行,請驗證指令。如果有任何設定問題,系統會擲回 ConfigurationException。

參數
handler ClusterCommandScheduler.InvocationEventHandlerERROR(InvocationEventHandler/com.android.tradefed.cluster.ClusterCommandScheduler.InvocationEventHandler InvocationEventHandler) 用於回報模擬執行驗證的事件。

args String:要驗證的指令。

傳回
boolean 如果指令是模擬執行,則傳回 true;否則傳回 false。

擲回
com.android.tradefed.config.ConfigurationException
ConfigurationException

processReadyCommands

protected void processReadyCommands (IDeviceManager manager)

參數
manager IDeviceManager