Class PDAXCallbackFactory
- java.lang.Object
-
- edu.isi.pegasus.planner.parser.pdax.PDAXCallbackFactory
-
public class PDAXCallbackFactory extends java.lang.Object
A factory class to load the appropriate DAX callback implementations that need to be passed to the DAX Parser.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_PACKAGE_NAME
Package to prefix "just" class names with.
-
Constructor Summary
Constructors Constructor Description PDAXCallbackFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Callback
loadInstance(PegasusProperties properties, PlannerOptions options, java.lang.String directory)
Loads the implementing class corresponding to the type specified by the user.static Callback
loadInstance(PegasusProperties properties, PlannerOptions options, java.lang.String directory, java.lang.String className)
Loads the implementing class corresponding to the type specified by the user.
-
-
-
Field Detail
-
DEFAULT_PACKAGE_NAME
public static final java.lang.String DEFAULT_PACKAGE_NAME
Package to prefix "just" class names with.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadInstance
public static Callback loadInstance(PegasusProperties properties, PlannerOptions options, java.lang.String directory) throws PDAXCallbackFactoryException
Loads the implementing class corresponding to the type specified by the user. The properties object passed should not be null. The callback that is loaded, is the one referred to in the properties by the user.- Parameters:
directory
- the base level directory in which the output files are to be generated.properties
- thePegasusProperties
object containing all the properties required by Pegasus.- Returns:
- the instance of the class implementing this interface.
- Throws:
PDAXCallbackFactoryException
- that nests any error that might occur during the instantiation- See Also:
DEFAULT_PACKAGE_NAME
,org.griphyn.cPlanner.common.PegasusProperties#getPartitionerDAXCallback()
-
loadInstance
public static Callback loadInstance(PegasusProperties properties, PlannerOptions options, java.lang.String directory, java.lang.String className) throws PDAXCallbackFactoryException
Loads the implementing class corresponding to the type specified by the user. The properties object passed should not be null. The callback that is loaded, is the one referred to by the className parameter passed.- Parameters:
properties
- thePegasusProperties
object containing all the properties required by Pegasus. dag|noop|daglite.options
- thePlannerOptions
object containing the options passed to gencdag.directory
- the directory where the pdax file and parititioned daxes reside.className
- the name of the implementing class.- Returns:
- the instance of the class implementing this interface.
- Throws:
PDAXCallbackFactoryException
- that nests any error that might occur during the instantiation- See Also:
DEFAULT_PACKAGE_NAME
-
-