edu.isi.pegasus.planner.transfer.implementation
public class ImplementationFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PACKAGE_NAME
The default package where the implementations reside, which this factory
loads.
|
static String |
DEFAULT_SETUP_TRANSFER_IMPLEMENTATION |
static String |
DEFAULT_TRANSFER_IMPLEMENTATION |
static int |
TYPE_SETUP
The constant designating the implementation to be loaded for setup tx jobs.
|
static int |
TYPE_STAGE_IN
The constant designating the implementation be loaded for stage in jobs.
|
static int |
TYPE_STAGE_INTER
The constant designating the implementation be loaded for inter pool jobs.
|
static int |
TYPE_STAGE_OUT
The constant designating the implementation be loaded for stage out jobs.
|
static int |
TYPE_SYMLINK_STAGE_IN
The constant designating the implementation to be loaded for symbolic tx jobs.
|
Constructor and Description |
---|
ImplementationFactory() |
Modifier and Type | Method and Description |
---|---|
private static String |
getPropertyKey(int type)
Returns the name of the property that needs to be loaded for a particular
type.
|
static Implementation |
loadInstance(PegasusBag bag,
int type)
Loads the implementing class corresponding to the type specified by the user.
|
private static Implementation |
loadInstance(String className,
PegasusBag bag)
Loads the implementing class corresponding to the class.
|
public static final String DEFAULT_PACKAGE_NAME
public static final String DEFAULT_TRANSFER_IMPLEMENTATION
public static final String DEFAULT_SETUP_TRANSFER_IMPLEMENTATION
public static final int TYPE_STAGE_IN
public static final int TYPE_STAGE_INTER
public static final int TYPE_STAGE_OUT
public static final int TYPE_SETUP
public static final int TYPE_SYMLINK_STAGE_IN
public static Implementation loadInstance(PegasusBag bag, int type) throws TransferImplementationFactoryException
bag
- the bag of initialization objects.type
- the type.TransferImplementationFactoryException
- that nests any error that
might occur during the instantiation.DEFAULT_PACKAGE_NAME
private static Implementation loadInstance(String className, PegasusBag bag) throws TransferImplementationFactoryException
className
- the name of the class that implements the mode.It can or
cannot be with the package name. Can be null to get
the factory to load the default implementationbag
- the bag of initialization objects.TransferImplementationFactoryException
- that nests any error that
might occur during the instantiation.DEFAULT_PACKAGE_NAME
private static String getPropertyKey(int type) throws IllegalArgumentException
type
- the type of implementation to be loaded.IllegalArgumentException