| |
|
| java.lang.Object org.griphyn.cPlanner.partitioner.Partitioner
All known Subclasses: org.griphyn.cPlanner.partitioner.One2One, org.griphyn.cPlanner.partitioner.BFS, org.griphyn.cPlanner.partitioner.Label,
Partitioner | abstract public class Partitioner (Code) | | The abstract class that lays out the api to do the partitioning of the dax
into smaller daxes. It defines additional functions to get and set the name
of the partitions etc.
author: Karan Vahi version: $Revision: 50 $ |
Field Summary | |
final public static String | PACKAGE_NAME The package name where the implementing classes of this interface reside. | final public static String | VERSION The version number associated with this API of Code Generator. | protected Map | mGraph The map containing all the graph nodes. | protected LogManager | mLogger The handle to the internal logging object. | protected PegasusProperties | mProps The object holding all the properties pertaining to Pegasus. | protected GraphNode | mRoot The root node of the graph from where to start the BFS. |
Method Summary | |
abstract public String | description() Returns a textual description of the transfer implementation. | abstract public void | determinePartitions(Callback c) The main function that ends up traversing the graph structure corrsponding
to the dax and creates the smaller dax files(one dax file per partition)
and the .pdax file that illustrates the partition graph. |
PACKAGE_NAME | final public static String PACKAGE_NAME(Code) | | The package name where the implementing classes of this interface reside.
|
VERSION | final public static String VERSION(Code) | | The version number associated with this API of Code Generator.
|
mGraph | protected Map mGraph(Code) | | The map containing all the graph nodes. The key to the map are the logical
id's of the jobs as identified in the dax and the values are the
corresponding Graph Node objects.
|
mLogger | protected LogManager mLogger(Code) | | The handle to the internal logging object.
|
mRoot | protected GraphNode mRoot(Code) | | The root node of the graph from where to start the BFS.
|
Partitioner | public Partitioner(GraphNode root, Map graph, PegasusProperties properties)(Code) | | The overloaded constructor.
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: properties - the properties passed out to the planner. |
description | abstract public String description()(Code) | | Returns a textual description of the transfer implementation.
a short textual description |
determinePartitions | abstract public void determinePartitions(Callback c)(Code) | | The main function that ends up traversing the graph structure corrsponding
to the dax and creates the smaller dax files(one dax file per partition)
and the .pdax file that illustrates the partition graph. It is recommended
that the implementing classes use the already initialized handles to the
DAXWriter and PDAXWriter interfaces to write out the xml files. The
advantage of using these preinitialized handles is that they already
are correctly configured for the directories where Pegasus expects the
submit files and dax files to reside.
Parameters: c - the callback object that the partitioner calls out to. |
|
|
|