Class DAX2NewGraph
- java.lang.Object
-
- edu.isi.pegasus.planner.parser.dax.DAX2NewGraph
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanmDoneA flag to specify whether the graph has been generated for the partition or not.protected java.lang.StringmLabelThe label of the abstract dax.protected PegasusPropertiesmPropsThe handle to the properties object.protected GraphmWorkflowThe Graph instance that stores the abstract workflow as a Graph.
-
Constructor Summary
Constructors Constructor Description DAX2NewGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcbCompoundTransformation(CompoundTransformation compoundTransformation)Callback when a compound transformation is encountered in the DAXvoidcbDocument(java.util.Map attributes)Callback when the opening tag was parsed.voidcbDone()Callback to signal that traversal of the DAX is complete.voidcbExecutable(TransformationCatalogEntry tce)Callback when a transformation catalog entry is encountered in the DAXvoidcbFile(ReplicaLocation rl)Callback when a replica catalog entry is encountered in the DAXvoidcbJob(Job job)This constructs a graph node for the job and ends up storing it in the internal map.voidcbParents(java.lang.String child, java.util.List parents)This updates the internal graph nodes of child with references to it's parents referred to by the list of parents passed.voidcbWfInvoke(Invoke invoke)Callback when a invoke entry is encountered in the top level inside the adag element in the DAX.GraphNodeget(java.lang.String key)Returns theGraphNodeof the corresponding id.java.lang.ObjectgetConstructedObject()Returns the workflow represented in theGraphform.java.lang.StringgetNameOfDAX()Returns the name of the dax.voidinitialize(PegasusBag bag, java.lang.String dax)The overloaded constructor.
-
-
-
Field Detail
-
mWorkflow
protected Graph mWorkflow
The Graph instance that stores the abstract workflow as a Graph.
-
mDone
protected boolean mDone
A flag to specify whether the graph has been generated for the partition or not.
-
mLabel
protected java.lang.String mLabel
The label of the abstract dax.
-
mProps
protected PegasusProperties mProps
The handle to the properties object.
-
-
Method Detail
-
initialize
public void initialize(PegasusBag bag, java.lang.String dax)
The overloaded constructor.- Specified by:
initializein interfaceCallback- Parameters:
bag- the bag of initialization objects containing the properties and the loggerdax- the path to the DAX file.
-
getConstructedObject
public java.lang.Object getConstructedObject()
Returns the workflow represented in theGraphform.- Specified by:
getConstructedObjectin interfaceCallback- Returns:
Graphcontaining the abstract workflow referred in the dax.
-
cbDocument
public void cbDocument(java.util.Map attributes)
Callback when the opening tag was parsed. This contains all attributes and their raw values within a map. It ends up storing the attributes with the adag element in the internal memory structure.- Specified by:
cbDocumentin interfaceCallback- Parameters:
attributes- is a map of attribute key to attribute value
-
cbWfInvoke
public void cbWfInvoke(Invoke invoke)
Callback when a invoke entry is encountered in the top level inside the adag element in the DAX.- Specified by:
cbWfInvokein interfaceCallback- Parameters:
invoke- the invoke object
-
cbJob
public void cbJob(Job job)
This constructs a graph node for the job and ends up storing it in the internal map.
-
cbParents
public void cbParents(java.lang.String child, java.util.List parents)This updates the internal graph nodes of child with references to it's parents referred to by the list of parents passed. It gets the handle to the parents graph nodes from it's internal map.
-
getNameOfDAX
public java.lang.String getNameOfDAX()
Returns the name of the dax.
-
cbDone
public void cbDone()
Callback to signal that traversal of the DAX is complete. At this point a dummy root node is added to the graph, that is the parents to all the root nodes in the existing DAX.
-
get
public GraphNode get(java.lang.String key)
Returns theGraphNodeof the corresponding id.- Parameters:
key- the id of the node.- Returns:
GraphNode.
-
cbCompoundTransformation
public void cbCompoundTransformation(CompoundTransformation compoundTransformation)
Callback when a compound transformation is encountered in the DAX- Specified by:
cbCompoundTransformationin interfaceCallback- Parameters:
compoundTransformation- the compound transforamtion
-
cbFile
public void cbFile(ReplicaLocation rl)
Callback when a replica catalog entry is encountered in the DAX
-
cbExecutable
public void cbExecutable(TransformationCatalogEntry tce)
Callback when a transformation catalog entry is encountered in the DAX- Specified by:
cbExecutablein interfaceCallback- Parameters:
tce- the transformationc catalog entry object.
-
-