| java.lang.Object org.griphyn.cPlanner.cluster.ClustererFactory
ClustererFactory | public class ClustererFactory (Code) | | A factory class to load the appropriate Partitioner, and Clusterer Callback
for clustering. An abstract factory, as it loads the appropriate partitioner
matching a clustering technique.
author: Karan Vahi vahi@isi.edu version: $Revision: 450 $ |
Method Summary | |
public static Clusterer | loadClusterer(ADag dag, PegasusBag bag, String type) Loads the appropriate clusterer on the basis of the clustering type
specified in the options passed to the planner.
Parameters: dag - the workflow being clustered. Parameters: bag - the bag of initialization objects. Parameters: type - type of clustering to be used. | public static Partitioner | loadPartitioner(PegasusProperties properties, String type, GraphNode root, Map graph) Loads the appropriate partitioner on the basis of the clustering type
specified in the options passed to the planner.
Parameters: properties - the PegasusProperties object containing allthe properties required by Pegasus. Parameters: type - type of clustering to be used. 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. |
DEFAULT_PACKAGE_NAME | final public static String DEFAULT_PACKAGE_NAME(Code) | | The default package where all the implementations reside.
|
HORIZONTAL_CLUSTERING_CLASS | final public static String HORIZONTAL_CLUSTERING_CLASS(Code) | | The name of the class implementing horizontal clustering.
|
VERTICAL_CLUSTERING_CLASS | final public static String VERTICAL_CLUSTERING_CLASS(Code) | | The name of the class implementing vertical clustering.
|
loadPartitioner | public static Partitioner loadPartitioner(PegasusProperties properties, String type, GraphNode root, Map graph) throws ClustererFactoryException(Code) | | Loads the appropriate partitioner on the basis of the clustering type
specified in the options passed to the planner.
Parameters: properties - the PegasusProperties object containing allthe properties required by Pegasus. Parameters: type - type of clustering to be used. 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. the instance of the appropriate partitioner. throws: ClustererFactoryException - that nests any error thatmight occur during the instantiation See Also: ClustererFactory.DEFAULT_PACKAGE_NAME |
|
|