|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.cluster.ClustererFactory
public class ClustererFactory
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.
| Field Summary | |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
The default package where all the implementations reside. |
static String |
HORIZONTAL_CLUSTERING_CLASS
The name of the class implementing horizontal clustering. |
private static String |
LABEL_CLUSTERING_TYPE
The type corresponding to label based clustering. |
private static Map |
mClustererTable
The table that maps a clustering technique to a clustering impelemntation. |
private static Map |
mPartitionerTable
The table that maps clustering technique to a partitioner. |
static String |
VERTICAL_CLUSTERING_CLASS
The name of the class implementing vertical clustering. |
| Constructor Summary | |
|---|---|
ClustererFactory()
|
|
| Method Summary | |
|---|---|
private static Map |
clustererTable()
Returns a table that maps, the clustering technique to an appropriate class implementing that clustering technique. |
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. |
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. |
private static Map |
partitionerTable()
Returns a table that maps, the clustering technique to an appropriate partitioning technique. |
| 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 HORIZONTAL_CLUSTERING_CLASS
public static final String VERTICAL_CLUSTERING_CLASS
private static final String LABEL_CLUSTERING_TYPE
private static Map mPartitionerTable
private static Map mClustererTable
| Constructor Detail |
|---|
public ClustererFactory()
| Method Detail |
|---|
public static Partitioner loadPartitioner(PegasusProperties properties,
String type,
GraphNode root,
Map graph)
throws ClustererFactoryException
properties - the PegasusProperties object containing all
the properties required by Pegasus.type - type of clustering to be used.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.
ClustererFactoryException - that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
public static Clusterer loadClusterer(ADag dag,
PegasusBag bag,
String type)
throws ClustererFactoryException
dag - the workflow being clustered.bag - the bag of initialization objects.type - type of clustering to be used.
ClustererFactoryException - that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAMEprivate static Map clustererTable()
private static Map partitionerTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||