ClusterCommandScheduler
public class ClusterCommandScheduler
extends CommandScheduler
java.lang.Object | ||
↳ | com.android.tradefed.command.Command Scheduler | |
↳ | com.android.tradefed.cluster.ClusterCommand Scheduler |
ICommandScheduler
לתמיכה ב-TFC (Cluster Tradefed). מתזמן זה מריץ פקודות מתור הפקודה של 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).
שיטות מוגנות
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 |