public class ClustererFactory extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ClustererFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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_NAME
private static Map clustererTable()
private static Map partitionerTable()
Copyright © 2011 The University of Southern California. All Rights Reserved.