|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.griphyn.cPlanner.classes.Data
org.griphyn.cPlanner.classes.DagInfo
Holds the information needed to make one dag file corresponding to a Abstract Dag. It holds information to generate the .dax file which is submitted to Condor.
| Field Summary | |
String |
count
Refers to the number of the Abstract Dags which are being sent to the Concrete Planner in response to the user's request. |
Vector |
dagJobs
Vector of String objects containing the jobname_id of jobs making the abstract dag. |
private static String |
DEFAULT_NAME
The default name for the ADag object, if not supplied in the DAX. |
String |
flowID
It is a unique identifier identifying the concrete DAG generated by Pegasus. |
String |
flowIDName
It is the name of the dag as generated by Chimera in the dax. |
String |
index
Refers to the number of the Dag. |
TreeMap |
lfnMap
Contains a unique ordered listing of the logical names referred to by the dag. |
private String |
mDAXMTime
Keeps the last modified time of the DAX. |
private String |
mFlowTimestamp
The ISO timestamp corresponding to the time when Pegasus is invoked for a dax. |
String |
nameOfADag
The name of the Abstract Dag taken from the adag element of the DAX generated by the Abstract Planner. |
Vector |
relations
Captures the parent child relations making up the DAG. |
String |
releaseVersion
Identifies the release version of the VDS software that was used to generate the workflow. |
| Fields inherited from class org.griphyn.cPlanner.classes.Data |
mLogger, mLogMsg |
| Constructor Summary | |
DagInfo()
The default constructor. |
|
| Method Summary | |
void |
addNewJob(String newJob)
Adds a new job to the dag. |
void |
addNewRelation(String parent,
String child)
Adds a new PCRelation pair to the Vector of PCRelation
pairs. |
void |
addNewRelation(String parent,
String child,
boolean isDeleted)
Adds a new PCRelation pair to the Vector of PCRelation pairs. |
Object |
clone()
Returns a new copy of the Object. |
void |
generateFlowID()
Generates the flow id for this current run. |
void |
generateFlowName()
Generates the name of the flow. |
void |
generateFlowTimestamp(boolean extendedFormat)
Generates the timestamp at which this particular run of Pegasus was invoked. |
Vector |
getChildren(String node)
Get all the children of a particular node. |
String |
getFlowTimestamp()
Returns the flow timestamp for the workflow. |
String |
getLabel()
Returns the label of the workflow, that was specified in the DAX. |
Vector |
getLeafNodes()
This returns all the leaf nodes of the dag. |
Vector |
getLFNList()
It returns the list of lfns referred to by the DAG. |
String |
getMTime()
Returns the last modified time for the file containing the workflow description. |
int |
getNoOfJobs()
Returns the number of jobs in the dag on the basis of number of elements in the dagJobs Vector. |
Vector |
getParents(String node)
Gets all the parents of a particular node. |
Vector |
getRootNodes()
It determines the root Nodes for the ADag looking at the relation pairs of the adag. |
boolean |
remove(String jobName)
Removes a job from the dag/graph structure. |
void |
setDAXMTime(String path)
Sets the mtime (last modified time) for the DAX. |
void |
setLabel(String label)
Sets the label for the workflow. |
void |
setReleaseVersion()
Grabs the release version from VDS.Properties file. |
String |
toString()
Returns the a textual description of the object. |
void |
updateLFNMap(String lfn,
String type)
Updates the lfn map, that contains the mapping of an lfn with the type. |
| Methods inherited from class org.griphyn.cPlanner.classes.Data |
setToString, vectorToString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final String DEFAULT_NAME
public Vector dagJobs
public Vector relations
PCRelation objects.
public String nameOfADag
public String count
public String index
public String flowID
flowIDName,
mFlowTimestamppublic String flowIDName
private String mFlowTimestamp
private String mDAXMTime
public String releaseVersion
Versionpublic TreeMap lfnMap
| Constructor Detail |
public DagInfo()
| Method Detail |
public void addNewJob(String newJob)
newJob - the name of the new job
public void addNewRelation(String parent,
String child)
PCRelation
pairs. Since we are adding a new relation the isDeleted parameter should
be false.
parent - The parent in the relation pairchild - The child in the relation pairrelations
public void addNewRelation(String parent,
String child,
boolean isDeleted)
PCRelation pairs.
parent - The parent in the relation pairchild - The child in the relation pairisDeleted - Whether the relation has been deleted due to the
reduction algorithm or notrelationspublic boolean remove(String jobName)
jobName - the name of the job.
public Vector getLFNList()
String objects corresponding to the
logical filenamespublic String getLabel()
public String getMTime()
public String getFlowTimestamp()
public int getNoOfJobs()
dagJobs Vector.
public Vector getParents(String node)
node - the name of the job whose parents are to be found.
public Vector getChildren(String node)
node - the name of the node whose children we want to find.
public Vector getLeafNodes()
String corresponding to the job names of
the leaf nodes.PCRelation,
relationspublic Vector getRootNodes()
PCRelation,
relationspublic void generateFlowID()
public void generateFlowName()
public void setLabel(String label)
label - the label to be assigned to the workflowpublic void setDAXMTime(String path)
path - the path to the DAX|PDAX file.public void generateFlowTimestamp(boolean extendedFormat)
extendedFormat - will use the extended ISO 8601 format which
separates the different timestamp items. If false, the basic
format will be used. In UTC and basic format, the 'T' separator
will be omitted.public void setReleaseVersion()
Version
public void updateLFNMap(String lfn,
String type)
lfn - the logical file name.type - type the type of lfn (i|o|b). usually a character.public Object clone()
clone in class Datapublic String toString()
toString in class Data
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||