|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.selector.site.Abstract
edu.isi.pegasus.planner.selector.site.AbstractPerJob
edu.isi.pegasus.planner.selector.site.RoundRobin
public class RoundRobin
This ends up scheduling the jobs in a round robin manner. In order to avoid starvation, the jobs are scheduled in a round robin manner per level, and the queue is initialised for each level.
| Nested Class Summary | |
|---|---|
(package private) class |
RoundRobin.NameValue
A inner name value class that associates a string with an int value. |
| Field Summary | |
|---|---|
private int |
mCurrentLevel
The current level in the abstract workflow. |
private LinkedList |
mExecPools
The list of pools that have been given by the user at run time or has been authenticated against. |
| Fields inherited from class edu.isi.pegasus.planner.selector.site.Abstract |
|---|
mBag, mLogger, mProps, mSiteStore, mTCMapper |
| Fields inherited from interface edu.isi.pegasus.planner.selector.SiteSelector |
|---|
SITE_NOT_FOUND, VERSION |
| Constructor Summary | |
|---|---|
RoundRobin()
The default constructor. |
|
| Method Summary | |
|---|---|
String |
description()
Returns a brief description of the site selection techinque implemented by this class. |
private void |
initialiseList(List pools)
It initialises the internal list. |
void |
mapJob(Job job,
List sites)
Maps a job in the workflow to an execution site. |
| Methods inherited from class edu.isi.pegasus.planner.selector.site.AbstractPerJob |
|---|
mapWorkflow |
| Methods inherited from class edu.isi.pegasus.planner.selector.site.Abstract |
|---|
initialize, mapWorkflow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int mCurrentLevel
private LinkedList mExecPools
| Constructor Detail |
|---|
public RoundRobin()
| Method Detail |
|---|
public String description()
public void mapJob(Job job,
List sites)
mapJob in class AbstractPerJobjob - the job to be mapped.sites - the list of String objects representing the
execution sites that can be used.private void initialiseList(List pools)
pools - List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||