|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.partitioner.Partitioner
edu.isi.pegasus.planner.partitioner.Label
public class Label
This partitioner partitions the DAX into smaller partitions as specified by the labels associated with the jobs. If no label is specified, then the partitioner puts the job into a unique partition corresponding to the job ID.
| Field Summary | |
|---|---|
static String |
DESCRIPTION
A short description about the partitioner. |
private LogManager |
mLogger
The handle to the Logging object. |
private Map |
mPartitionMap
A map indexed by the label. |
private LinkedList |
mQueue
The first in first out queue, that manages the set of gray vertices in a breadth first search. |
| Fields inherited from class edu.isi.pegasus.planner.partitioner.Partitioner |
|---|
mGraph, mProps, mRoot, PACKAGE_NAME, VERSION |
| Constructor Summary | |
|---|---|
Label(GraphNode root,
Map graph,
PegasusProperties properties)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
String |
description()
Returns a textual description of the transfer implementation. |
void |
determinePartitions(Callback c)
Partitions the graph passed in the constructor, on the basis of the labels associated with the nodes in the graph. |
private String |
getLabel(GraphNode node)
Returns the label for the node. |
private String |
getPartitionID(int id)
Constructs the id for the partition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DESCRIPTION
private Map mPartitionMap
private LinkedList mQueue
private LogManager mLogger
| Constructor Detail |
|---|
public Label(GraphNode root,
Map graph,
PegasusProperties properties)
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.properties - the properties passed to the planner.| Method Detail |
|---|
public void determinePartitions(Callback c)
determinePartitions in class Partitionerc - the callback for the partitioner.public String description()
description in class Partitionerprivate String getLabel(GraphNode node)
node - the node for which the label is required.
private String getPartitionID(int id)
id - the integer id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||