|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.partitioner.PartitionerFactory
public class PartitionerFactory
A Factory class to load the right type of partitioner at runtime, as specified by the Properties. Each invocation, results in a new partitioner being loaded.
| Field Summary | |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
Package to prefix "just" class names with. |
static String |
DEFAULT_PARTITIONING_CLASS
The name of the class that does level based partitioning. |
static String |
HORIZONTAL_PARTITIONING_CLASS
The name of the class that does horizontal based partitioning. |
static String |
LABEL_BASED_PARTITIONING_CLASS
The name of the class that does label based partitioning. |
static String |
LEVEL_BASED_PARTITIONING_CLASS
The name of the class that does level based partitioning. |
private static String[] |
PARTITIONING_CLASSES
An array of known partitioning classes. |
| Constructor Summary | |
|---|---|
PartitionerFactory()
|
|
| Method Summary | |
|---|---|
static Partitioner |
loadInstance(PegasusProperties properties,
GraphNode root,
Map graph,
String className)
Loads the implementing class corresponding to the type specified by the user. |
| 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 LEVEL_BASED_PARTITIONING_CLASS
public static final String LABEL_BASED_PARTITIONING_CLASS
public static final String HORIZONTAL_PARTITIONING_CLASS
public static final String DEFAULT_PARTITIONING_CLASS
private static final String[] PARTITIONING_CLASSES
| Constructor Detail |
|---|
public PartitionerFactory()
| Method Detail |
|---|
public static Partitioner loadInstance(PegasusProperties properties,
GraphNode root,
Map graph,
String className)
throws PartitionerFactoryException
properties - the PegasusProperties object containing all
the properties required by Pegasus.root - the dummy root node of the graph.graph - the map containing all the nodes of the graph keyed by
the logical id of the nodes.className - the name of the implementing class.
PartitionerFactoryException - that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||