Class SiteSelectorFactory
java.lang.Object
edu.isi.pegasus.planner.selector.site.SiteSelectorFactory
A factory class to load the appropriate type of Site Selector, as specified by the user at
runtime in properties. Each invocation of the factory results in a SiteSelector being
instantiated.
- Version:
- $Revision$
- Author:
- Karan Vahi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SiteSelector
loadInstance
(edu.isi.pegasus.planner.classes.PegasusBag bag) Loads the implementing class corresponding to the mode specified by the user at runtime in the properties file.
-
Field Details
-
DEFAULT_PACKAGE_NAME
The default package where the all the implementing classes provided with the VDS reside.- See Also:
-
DEFAULT_SITE_SELECTOR
The name of the class in the DEFAULT package, that corresponds to the default site selector.- See Also:
-
-
Constructor Details
-
SiteSelectorFactory
public SiteSelectorFactory()
-
-
Method Details
-
loadInstance
public static SiteSelector loadInstance(edu.isi.pegasus.planner.classes.PegasusBag bag) throws SiteSelectorFactoryException Loads the implementing class corresponding to the mode specified by the user at runtime in the properties file. A default replica selector is loaded if property is not specified in the properties.- Parameters:
bag
- the bag of objects that is required.- Returns:
- the instance of the class implementing this interface.
- Throws:
SiteSelectorFactoryException
- that chains any error that might occur during the instantiation- See Also:
-