|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.parser.dax.DAX2Graph
public class DAX2Graph
This callback implementation ends up building a detailed structure of the graph referred to by the abstract plan in dax, that should make the graph traversals easier. Later on this graph representation would be used uniformly in the Pegasus code base.
| Field Summary | |
|---|---|
static String |
DUMMY_NODE_ID
The id of the dummy root node added on the top of the graph. |
protected Map |
mAbstractGraph
The map containing the a graph node for each of the jobs referred to in the dax. |
protected boolean |
mDone
A flag to specify whether the graph has been generated for the partition or not. |
protected String |
mLabel
The label of the abstract dax as set by Chimera. |
protected LogManager |
mLogger
The logging object. |
protected PegasusProperties |
mProps
The handle to the properties object. |
protected GraphNode |
mRoot
The root node for the graph that is constructed. |
| Fields inherited from interface edu.isi.pegasus.planner.parser.dax.Callback |
|---|
VERSION |
| Constructor Summary | |
|---|---|
DAX2Graph(PegasusProperties properties,
String dax)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
void |
cbCompoundTransformation(CompoundTransformation compoundTransformation)
Callback when a compound transformation is encountered in the DAX |
void |
cbDocument(Map attributes)
Callback when the opening tag was parsed. |
void |
cbDone()
Callback to signal that traversal of the DAX is complete. |
void |
cbExecutable(TransformationCatalogEntry tce)
Callback when a transformation catalog entry is encountered in the DAX |
void |
cbFile(ReplicaLocation rl)
Callback when a replica catalog entry is encountered in the DAX |
void |
cbJob(Job job)
This constructs a graph node for the job and ends up storing it in the internal map. |
void |
cbParents(String child,
List parents)
This updates the internal graph nodes of child with references to it's parents referred to by the list of parents passed. |
void |
cbWfInvoke(Invoke invoke)
Callback when a invoke entry is encountered in the top level inside the adag element in the DAX. |
Object |
get(Object key)
It returns the value associated with the key in the map. |
Object |
getConstructedObject()
Returns a Map indexed by the logical ID of the jobs, and each value being a GraphNode object. |
String |
getNameOfDAX()
Returns the name of the dax. |
protected void |
put(Object key,
Object value)
It puts the key and the value in the internal map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DUMMY_NODE_ID
protected Map mAbstractGraph
protected boolean mDone
protected String mLabel
protected GraphNode mRoot
protected PegasusProperties mProps
protected LogManager mLogger
| Constructor Detail |
|---|
public DAX2Graph(PegasusProperties properties,
String dax)
properties - the properties passed to the planner.dax - the path to the DAX file.| Method Detail |
|---|
public Object getConstructedObject()
getConstructedObject in interface Callbackpublic void cbDocument(Map attributes)
cbDocument in interface Callbackattributes - is a map of attribute key to attribute valuepublic void cbWfInvoke(Invoke invoke)
cbWfInvoke in interface Callbackinvoke - the invoke objectpublic void cbJob(Job job)
cbJob in interface Callbackjob - the job that was parsed.
public void cbParents(String child,
List parents)
cbParents in interface Callbackchild - the logical id of the child node.parents - list containing the logical id's of the parents of the
child nodes.public String getNameOfDAX()
public void cbDone()
cbDone in interface Callback
protected void put(Object key,
Object value)
key - the key to the entry in the map.value - the entry in the map.public Object get(Object key)
key - the key to the entry in the map.
public void cbCompoundTransformation(CompoundTransformation compoundTransformation)
cbCompoundTransformation in interface CallbackcompoundTransformation - the compound transforamtionpublic void cbFile(ReplicaLocation rl)
cbFile in interface Callbackrl - the ReplicaLocation objectpublic void cbExecutable(TransformationCatalogEntry tce)
cbExecutable in interface Callbacktce - the transformation catalog entry object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||