|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.transfer.implementation.ImplementationFactory
public class ImplementationFactory
The factory class that loads an appropriate Transfer Immplementation class, as specified by the properties.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ImplementationFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public ImplementationFactory()
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||