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 (com.android.tradefed.cluster.ClusterCommandScheduler.InvocationEventHandler handler, String[] args) קובע אם פקודה נתונה היא ריצה יבשה. |
void | processReadyCommands ( IDeviceManager manager)
|
בנאים ציבוריים
ClusterCommandScheduler
public ClusterCommandScheduler ()
שיטות ציבוריות
לכבות
public void shutdown ()
נסה לכבות בחן את מתזמן הפקודות.
מנקה פקודות הממתינות לבדיקה, ומבקש שכל השיחות שמתנהלות ייסגרו בחן.
לאחר קריאת הכיבוי, הלולאה הראשית של המתזמן תחכה להשלמה של כל הפניות בתהליך לפני שתצא לחלוטין.
כיבוי קשה
public void shutdownHard ()
נסה לכבות בכוח את מתזמן הפקודות. זהה ל-shutdownHard (true).
שיטות מוגנות
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 |
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 (com.android.tradefed.cluster.ClusterCommandScheduler.InvocationEventHandler handler, String[] args) קובע אם פקודה נתונה היא ריצה יבשה. |
void | processReadyCommands ( IDeviceManager manager)
|
בנאים ציבוריים
ClusterCommandScheduler
public ClusterCommandScheduler ()
שיטות ציבוריות
לכבות
public void shutdown ()
נסה לכבות בחן את מתזמן הפקודות.
מנקה פקודות הממתינות לבדיקה, ומבקש שכל השיחות שמתנהלות ייסגרו בחן.
לאחר קריאת הכיבוי, הלולאה הראשית של המתזמן תחכה להשלמה של כל הפניות בתהליך לפני שתצא לחלוטין.
כיבוי קשה
public void shutdownHard ()
נסה לכבות בכוח את מתזמן הפקודות. זהה ל-shutdownHard (true).
שיטות מוגנות
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 |