edu.isi.pegasus.planner.selector.site
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 |
---|---|
String |
description()
Returns a brief description of the site selection technique being used.
|
void |
initialize(PegasusBag bag)
Initializes the site selector.
|
void |
mapJob(Job job,
List sites)
Maps a job in the workflow to an execution site.
|
private String |
selectRandomSite(List sites)
The random selection that selects randomly one of the records returned by
the transformation catalog.
|
mapWorkflow
mapWorkflow
public Random()
public void initialize(PegasusBag bag)
initialize
in interface SiteSelector
initialize
in class Abstract
bag
- the bag of objects that is useful for initialization.public void mapJob(Job job, 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 String description()