| java.lang.Object org.griphyn.cPlanner.partitioner.PartitionerFactory
PartitionerFactory | public class PartitionerFactory (Code) | | 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.
author: Karan Vahi version: $Revision: 50 $ |
Method Summary | |
public static Partitioner | loadInstance(PegasusProperties properties, GraphNode root, Map graph, String className) Loads the implementing class corresponding to the type specified by the user.
The properties object passed should not be null.
Parameters: properties - the PegasusProperties object containing allthe properties required by Pegasus. Parameters: root - the dummy root node of the graph. Parameters: graph - the map containing all the nodes of the graph keyed bythe logical id of the nodes. Parameters: className - the name of the implementing class. |
DEFAULT_PACKAGE_NAME | final public static String DEFAULT_PACKAGE_NAME(Code) | | Package to prefix "just" class names with.
|
DEFAULT_PARTITIONING_CLASS | final public static String DEFAULT_PARTITIONING_CLASS(Code) | | The name of the class that does level based partitioning.
|
HORIZONTAL_PARTITIONING_CLASS | final public static String HORIZONTAL_PARTITIONING_CLASS(Code) | | The name of the class that does horizontal based partitioning.
|
LABEL_BASED_PARTITIONING_CLASS | final public static String LABEL_BASED_PARTITIONING_CLASS(Code) | | The name of the class that does label based partitioning.
|
LEVEL_BASED_PARTITIONING_CLASS | final public static String LEVEL_BASED_PARTITIONING_CLASS(Code) | | The name of the class that does level based partitioning.
|
loadInstance | public static Partitioner loadInstance(PegasusProperties properties, GraphNode root, Map graph, String className) throws PartitionerFactoryException(Code) | | Loads the implementing class corresponding to the type specified by the user.
The properties object passed should not be null.
Parameters: properties - the PegasusProperties object containing allthe properties required by Pegasus. Parameters: root - the dummy root node of the graph. Parameters: graph - the map containing all the nodes of the graph keyed bythe logical id of the nodes. Parameters: className - the name of the implementing class. the instance of the class implementing this interface. throws: PartitionerFactoryException - that nests any error thatmight occur during the instantiation See Also: PartitionerFactory.DEFAULT_PACKAGE_NAME |
|
|