Class SLSFactory
- java.lang.Object
-
- edu.isi.pegasus.planner.transfer.sls.SLSFactory
-
public class SLSFactory extends java.lang.Object
A factory class to load the appropriate type of SLS Implementation to do the Second Level Staging.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_PACKAGE_NAME
The default package where the all the implementing classes are supposed to reside.static java.lang.String
DEFAULT_SLS_IMPL_CLASS
The name of the class implementing the condor code generator.
-
Constructor Summary
Constructors Constructor Description SLSFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SLS
loadInstance(PegasusBag bag)
This method loads the appropriate implementing code generator as specified by the user at runtime.static SLS
loadInstance(PegasusBag bag, java.lang.String className)
This method loads the appropriate code generator as specified by the user at runtime.
-
-
-
Field Detail
-
DEFAULT_PACKAGE_NAME
public static final java.lang.String DEFAULT_PACKAGE_NAME
The default package where the all the implementing classes are supposed to reside.- See Also:
- Constant Field Values
-
DEFAULT_SLS_IMPL_CLASS
public static final java.lang.String DEFAULT_SLS_IMPL_CLASS
The name of the class implementing the condor code generator.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadInstance
public static SLS loadInstance(PegasusBag bag) throws SLSFactoryException
This method loads the appropriate implementing code generator as specified by the user at runtime. If the megadag mode is specified in the options, then that is used to load the implementing class, overriding the submit mode specified in the properties file.- Parameters:
bag
- the bag of initialization objects.- Returns:
- the instance of the class implementing this interface.
- Throws:
CodeGeneratorFactoryException
- that nests any error that might occur during the instantiation of the implementation.SLSFactoryException
- See Also:
DEFAULT_PACKAGE_NAME
-
loadInstance
public static SLS loadInstance(PegasusBag bag, java.lang.String className) throws SLSFactoryException
This method loads the appropriate code generator as specified by the user at runtime.- Parameters:
bag
- the bag of initialization objects.className
- the name of the implementing class.- Returns:
- the instance of the class implementing this interface.
- Throws:
CodeGeneratorFactoryException
- that nests any error that might occur during the instantiation of the implementation.SLSFactoryException
- See Also:
DEFAULT_PACKAGE_NAME
-
-