Package edu.isi.pegasus.planner.selector
Class TransformationSelector
- java.lang.Object
-
- edu.isi.pegasus.planner.selector.TransformationSelector
-
-
Field Summary
Fields Modifier and Type Field Description protected edu.isi.pegasus.common.logging.LogManager
mLogger
static java.lang.String
PACKAGE_NAME
-
Constructor Summary
Constructors Constructor Description TransformationSelector()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List
getTCEntry(java.util.List<edu.isi.pegasus.planner.catalog.transformation.TransformationCatalogEntry> tcentries, java.lang.String preferredSite)
Takes a list of TransformationCatalogEntry objects and returns 1 or many TransformationCatalogEntry objects as a list depending on the type of selection algorithm.static TransformationSelector
loadTXSelector(java.lang.String className)
Loads the implementing class corresponding to the mode specified by the user at runtime in the properties file.
-
-
-
Field Detail
-
PACKAGE_NAME
public static final java.lang.String PACKAGE_NAME
- See Also:
- Constant Field Values
-
mLogger
protected edu.isi.pegasus.common.logging.LogManager mLogger
-
-
Method Detail
-
getTCEntry
public abstract java.util.List getTCEntry(java.util.List<edu.isi.pegasus.planner.catalog.transformation.TransformationCatalogEntry> tcentries, java.lang.String preferredSite)
Takes a list of TransformationCatalogEntry objects and returns 1 or many TransformationCatalogEntry objects as a list depending on the type of selection algorithm. The Random and RoundRobin implementation ensure that only one entry is returned and should be run last when chaining multiple selectors- Parameters:
tcentries
- ListpreferredSite
- the preferred site for selecting the TC entries- Returns:
- List
-
loadTXSelector
public static TransformationSelector loadTXSelector(java.lang.String className) throws edu.isi.pegasus.common.util.FactoryException
Loads the implementing class corresponding to the mode specified by the user at runtime in the properties file.- Parameters:
className
- String The name of the class that implements the mode. It is the name of the class, not the complete name with package. That is added by itself.- Returns:
- TransformationSelector
- Throws:
edu.isi.pegasus.common.util.FactoryException
- that nests any error that might occur during the instantiation of the implementation.
-
-