ClusterCommandScheduler
public
class
ClusterCommandScheduler
extends CommandScheduler
| java.lang.Object | ||
| ↳ | com.android.tradefed.command.CommandScheduler | |
| ↳ | com.android.tradefed.cluster.ClusterCommandScheduler | |
ICommandScheduler לתמיכה ב-TFC (אשכול של Tradefed). מתזמן זה מפעיל פקודות מ-TFC command-queue ומעלה אירועי קריאה ל-TFC command-event-queue.
סיכום
קונסטרוקטורים גלויים לכולם | |
|---|---|
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).
התחל
public void start ()
הפעלת מתזמן האירועים, כולל הגדרת הרישום ביומן, אתחול של DeviceManager וכו'
שיטות מוגנות
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 |