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()
启动调度程序,包括设置日志记录、初始化 |
受保护的方法 | |
---|---|
boolean
|
dryRunCommand(ClusterCommandScheduler.InvocationEventHandler handler, String[] args)
确定给定命令是否为试运行。 |
void
|
processReadyCommands(IDeviceManager manager)
|
公共构造函数
ClusterCommandScheduler
public ClusterCommandScheduler ()
公共方法
关机
public void shutdown ()
shutdownHard
public void shutdownHard ()
尝试强制关闭命令调度程序。与 shutdownHard(true) 相同。
受保护的方法
dryRunCommand
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 |