ClusterCommandScheduler
public
class
ClusterCommandScheduler
extends CommandScheduler
| java.lang.Object | |||
| ↳ | java.lang.Thread | ||
| ↳ | com.android.tradefed.command.CommandScheduler | ||
| ↳ | com.android.tradefed.cluster.ClusterCommandScheduler | ||
ICommandScheduler כדי לתמוך ב-TFC (Tradefed Cluster). מתזמן זה מריץ פקודות מ-TFC command-queue ומעלה אירועי הפעלה ל-TFC command-event-queue.
סיכום
constructors ציבוריים | |
|---|---|
ClusterCommandScheduler()
|
|
methods ציבוריים | |
|---|---|
void
|
shutdown()
|
void
|
shutdownHard()
לנסות לכבות בכוח את מתזמן הפקודות. |
void
|
start()
הפעלת המתזמן, כולל הגדרת הרישום ביומן, הפעלה של |
שיטות מוגנות | |
|---|---|
boolean
|
dryRunCommand(ClusterCommandScheduler.InvocationEventHandler handler, String[] args)
קובעת אם פקודה נתונה היא הרצה יבשה. |
void
|
processReadyCommands(IDeviceManager manager)
|
constructors ציבוריים
ClusterCommandScheduler
public ClusterCommandScheduler ()
methods ציבוריים
כיבוי
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. |
| הקפצת הודעות שגיאה (throw) | |
|---|---|
|
com.android.tradefed.config.ConfigurationException |
ConfigurationException |
|
processReadyCommands
protected void processReadyCommands (IDeviceManager manager)
| פרמטרים | |
|---|---|
manager |
IDeviceManager |