ClusterCommandScheduler

public class ClusterCommandScheduler
extends CommandScheduler

java.lang.Object
com.android.tradefed.command.CommandScheduler
com.android.tradefed.cluster.ClusterCommandScheduler


支持 TFC (Tradefed Cluster) 的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 ()

硬關機

public void shutdownHard ()

嘗試強制關閉命令調度程序。與 shutdownHard(true) 相同。

開始

public void start ()

啟動調度程序,包括設置日誌記錄、初始化DeviceManager

受保護的方法

dryRun命令

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