集群命令调度器
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)
|
公共构造函数
集群命令调度器
public ClusterCommandScheduler ()
公共方法
关闭
public void shutdown ()
硬关机
public void shutdownHard ()
尝试强制关闭命令调度程序。与 shutdownHard(true) 相同。
受保护的方法
干运行命令
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 |