ClusterCommandScheduler
public class ClusterCommandScheduler
extends CommandScheduler
java.lang.Object | ||
↳ | com.android.tradefed.command.CommandScheduler | |
↳ | com.android.tradefed.cluster.ClusterCommandScheduler |
一个ICommandScheduler
以支持TFC(贸易集群)。该调度程序从TFC命令队列运行命令,并将调用事件上载到TFC命令事件队列。
概括
公共建设者 | |
---|---|
ClusterCommandScheduler () |
公开方法 | |
---|---|
void | shutdown () 尝试正常关闭命令调度程序。 |
void | shutdownHard () 尝试强行关闭命令调度程序。 |
void | start () 启动调度程序,包括日志记录的设置, |
受保护的方法 | |
---|---|
boolean | dryRunCommand (com.android.tradefed.cluster.ClusterCommandScheduler.InvocationEventHandler handler, String[] args) 确定给定命令是否为空运行。 |
void | processReadyCommands ( IDeviceManager manager)
|
公共建设者
集群命令调度程序
public ClusterCommandScheduler ()
公开方法
关掉
public void shutdown ()
尝试正常关闭命令调度程序。
清除等待测试的命令,并请求正常关闭所有正在进行的调用。调用shutdown后,调度程序主循环将等待所有正在进行的调用完成,然后再完全退出。受保护的方法
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 |