|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.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 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. |
| Constructor Summary | |
|---|---|
ImplementationFactory()
|
|
| Method Summary | |
|---|---|
private static String |
getProperty(int type)
Returns the name of the property that needs to be loaded for a particular type. |
static Implementation |
loadInstance(PegasusProperties properties,
PlannerOptions options)
Loads the implementing class corresponding to the mode specified by the user at runtime in the properties file. |
static Implementation |
loadInstance(PegasusProperties properties,
PlannerOptions options,
int type)
Loads the implementing class corresponding to the type specified by the user. |
private static Implementation |
loadInstance(String className,
PegasusProperties properties,
PlannerOptions options)
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 int TYPE_STAGE_IN
public static final int TYPE_STAGE_INTER
public static final int TYPE_STAGE_OUT
| Constructor Detail |
|---|
public ImplementationFactory()
| Method Detail |
|---|
public static Implementation loadInstance(PegasusProperties properties,
PlannerOptions options,
int type)
throws TransferImplementationFactoryException
properties - the PegasusProperties object containing all
the properties required by Pegasus.options - the options passed to the planner at runtime.type - the type for which implementation needs to be loaded.
TransferImplementationFactoryException - that nests any error that
might occur during the instantiation.DEFAULT_PACKAGE_NAME
public static Implementation loadInstance(PegasusProperties properties,
PlannerOptions options)
throws TransferImplementationFactoryException
properties - the PegasusProperties object containing all
the properties required by Pegasus.options - the options passed to the planner at runtime.
TransferImplementationFactoryException - that nests any error that
might occur during the instantiation.DEFAULT_PACKAGE_NAME
private static Implementation loadInstance(String className,
PegasusProperties properties,
PlannerOptions options)
throws TransferImplementationFactoryException
className - the name of the class that implements the mode.It can or
cannot be with the package name.properties - the PegasusProperties object containing all
the properties required by Pegasus.options - the options passed to the planner at runtime.
TransferImplementationFactoryException - that nests any error that
might occur during the instantiation.DEFAULT_PACKAGE_NAME
private static String getProperty(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 | |||||||||