| java.lang.Object org.griphyn.cPlanner.transfer.implementation.ImplementationFactory
ImplementationFactory | public class ImplementationFactory (Code) | | The factory class that loads an appropriate Transfer Immplementation class,
as specified by the properties.
author: Karan Vahi version: $Revision: 50 $ |
Field Summary | |
final public static String | DEFAULT_PACKAGE_NAME The default package where the implementations reside, which this factory
loads. | final public static int | TYPE_STAGE_IN The constant designating the implementation be loaded for stage in jobs. | final public static int | TYPE_STAGE_INTER The constant designating the implementation be loaded for inter pool jobs. | final public static int | TYPE_STAGE_OUT The constant designating the implementation be loaded for stage out jobs. |
DEFAULT_PACKAGE_NAME | final public static String DEFAULT_PACKAGE_NAME(Code) | | The default package where the implementations reside, which this factory
loads.
|
TYPE_STAGE_IN | final public static int TYPE_STAGE_IN(Code) | | The constant designating the implementation be loaded for stage in jobs.
|
TYPE_STAGE_INTER | final public static int TYPE_STAGE_INTER(Code) | | The constant designating the implementation be loaded for inter pool jobs.
|
TYPE_STAGE_OUT | final public static int TYPE_STAGE_OUT(Code) | | The constant designating the implementation be loaded for stage out jobs.
|
loadInstance | public static Implementation loadInstance(PegasusProperties properties, PlannerOptions options, int type) throws TransferImplementationFactoryException(Code) | | Loads the implementing class corresponding to the type specified by the user.
The type is used to determine what property to be picked up from the
properties file. The properties object passed should not be null.
Parameters: properties - the PegasusProperties object containing allthe properties required by Pegasus. Parameters: options - the options passed to the planner at runtime. Parameters: type - the type for which implementation needs to be loaded. the instance of the class implementing this interface. exception: TransferImplementationFactoryException - that nests any error thatmight occur during the instantiation. See Also: ImplementationFactory.DEFAULT_PACKAGE_NAME |
|
|