|
||||||||||
| 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.Group
public class Group
A site selector than ends up doing grouping jobs together on the basis of
an identifier specifed in the dax for the jobs, and schedules them on to the
same site. Currently, the identifier is key group in the pegasus
profile namespace. All the jobs that do not have a group associated with them
are put in one default group and end up being scheduled on the same pool.
A limitation of this site selector is that it does not check whether all the
jobs can be scheduled on a particular pool or not. It just checks whether
the first job can be or not. The reason for that is after the grouping the
the selector just hands the first job in each group to the other site selectors
that work on jobs. Currently, it hands it to the Random Site Selector.
In the DAX, a job tagged with groups will look as follows
group-1 -a top -T 6 -i -o
| Field Summary | |
|---|---|
private static String |
mDefaultGroup
The name of the group into which jobs are grouped if no group is specified in the dax. |
private static String |
mDescription
The description of the site selector. |
private Map |
mGroupMap
The map containing the the jobs grouped by the key group. |
private AbstractPerJob |
mSelector
The handle to the internal site selector that is used to schedule jobs amongst the groups. |
| 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 | |
|---|---|
Group()
The default constructor. |
|
| Method Summary | |
|---|---|
String |
description()
Returns the description of the site selector. |
void |
initialize(PegasusBag bag)
Initializes the site selector. |
private void |
insert(Job job)
Inserts the job into the group map. |
void |
mapWorkflow(Graph workflow,
List sites)
The call out to map a list of jobs on to the execution pools. |
| Methods inherited from class edu.isi.pegasus.planner.selector.site.Abstract |
|---|
mapWorkflow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String mDescription
private static final String mDefaultGroup
private Map mGroupMap
private AbstractPerJob mSelector
| Constructor Detail |
|---|
public Group()
| Method Detail |
|---|
public void initialize(PegasusBag bag)
initialize in interface SiteSelectorinitialize in class Abstractbag - the bag of objects that is useful for initialization.public String description()
public void mapWorkflow(Graph workflow,
List sites)
workflow - the workflow that needs to be scheduled.sites - the list of String objects representing the
execution pools that can be used.private void insert(Job job)
job - the job to be inserted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||