public class Random extends AbstractPerJob
mBag, mLogger, mProps, mSiteStore, mTCMapper
SITE_NOT_FOUND, VERSION
Constructor and Description |
---|
Random()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
Returns a brief description of the site selection technique being used.
|
void |
initialize(edu.isi.pegasus.planner.classes.PegasusBag bag)
Initializes the site selector.
|
void |
mapJob(edu.isi.pegasus.planner.classes.Job job,
java.util.List sites)
Maps a job in the workflow to an execution site.
|
private java.lang.String |
selectRandomSite(java.util.List sites)
The random selection that selects randomly one of the records returned by
the transformation catalog.
|
mapWorkflow
public Random()
public void initialize(edu.isi.pegasus.planner.classes.PegasusBag bag)
initialize
in interface SiteSelector
initialize
in class Abstract
bag
- the bag of objects that is useful for initialization.public void mapJob(edu.isi.pegasus.planner.classes.Job job, java.util.List sites)
mapJob
in class AbstractPerJob
job
- the job to be mapped.sites
- the list of String
objects representing the
execution sites that can be used.public java.lang.String description()
private java.lang.String selectRandomSite(java.util.List sites)
sites
- List of String
objects.