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 () 启动调度程序,包括设置日志记录、初始化 |
受保护的方法 | |
---|---|
boolean | dryRunCommand (ClusterCommandScheduler.InvocationEventHandler handler, String[] args) 确定给定命令是否为空运行。 |
void | processReadyCommands ( IDeviceManager manager)
|
公共构造函数
ClusterCommandScheduler
public ClusterCommandScheduler ()
公共方法
关闭
public void shutdown ()
硬关机
public void shutdownHard ()
尝试强制关闭命令调度程序。与 shutdownHard(true) 相同。
受保护的方法
dryRun命令
protected boolean dryRunCommand (ClusterCommandScheduler.InvocationEventHandler handler, String[] args)
确定给定命令是否为空运行。如果命令是试运行,请对其进行验证。如果有任何配置问题,它将抛出 ConfigurationException。
参数 | |
---|---|
handler | ClusterCommandScheduler.InvocationEventHandler : ERROR(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 |