edu.isi.pegasus.planner.transfer.sls
Class SLSFactory

java.lang.Object
  extended by edu.isi.pegasus.planner.transfer.sls.SLSFactory

public class SLSFactory
extends Object

A factory class to load the appropriate type of SLS Implementation to do the Second Level Staging.

Version:
$Revision: 4612 $
Author:
Karan Vahi

Field Summary
static String DEFAULT_PACKAGE_NAME
          The default package where the all the implementing classes are supposed to reside.
static String DEFAULT_SLS_IMPL_CLASS
          The name of the class implementing the condor code generator.
 
Constructor Summary
SLSFactory()
           
 
Method Summary
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, String className)
          This method loads the appropriate code generator as specified by the user at runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PACKAGE_NAME

public static final 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 String DEFAULT_SLS_IMPL_CLASS
The name of the class implementing the condor code generator.

See Also:
Constant Field Values
Constructor Detail

SLSFactory

public SLSFactory()
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,
                               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


Copyright © 2011 The University of Southern California. All Rights Reserved.