Java Doc for DagInfo.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » cPlanner » classes » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » pegasus 2.1.0 » org.griphyn.cPlanner.classes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.griphyn.cPlanner.classes.Data
      org.griphyn.cPlanner.classes.DagInfo

DagInfo
public class DagInfo extends Data (Code)
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.
author:
   Karan Vahi
author:
   Gaurang Mehta
version:
   $Revision: 314 $


Field Summary
public  Stringcount
     Refers to the number of the Abstract Dags which are being sent to the Concrete Planner in response to the user's request.
public  VectordagJobs
     Vector of String objects containing the jobname_id of jobs making the abstract dag.
public  StringflowID
     It is a unique identifier identifying the concrete DAG generated by Pegasus.
public  StringflowIDName
     It is the name of the dag as generated by Chimera in the dax.
public  Stringindex
     Refers to the number of the Dag.
public  TreeMaplfnMap
     Contains a unique ordered listing of the logical names referred to by the dag.
public  StringnameOfADag
     The name of the Abstract Dag taken from the adag element of the DAX generated by the Abstract Planner.
public  Vectorrelations
     Captures the parent child relations making up the DAG.
public  StringreleaseVersion
     Identifies the release version of the VDS software that was used to generate the workflow.

Constructor Summary
public  DagInfo()
     The default constructor.

Method Summary
public  voidaddNewJob(SubInfo job)
     Adds a new job to the dag.
public  voidaddNewRelation(String parent, String child)
     Adds a new PCRelation pair to the Vector of PCRelation pairs.
public  voidaddNewRelation(String parent, String child, boolean isDeleted)
     Adds a new PCRelation pair to the Vector of PCRelation pairs.
public  Objectclone()
     Returns a new copy of the Object.
public  voidgenerateFlowID()
     Generates the flow id for this current run.
public  voidgenerateFlowName()
     Generates the name of the flow.
public  VectorgetChildren(String node)
     Get all the children of a particular node.
Parameters:
  node - the name of the node whose children we want to find.
public  StringgetFlowTimestamp()
     Returns the flow timestamp for the workflow.
public  SetgetLFNs()
     It returns the list of lfns referred to by the DAG.
public  SetgetLFNs(boolean onlyInput)
     Returns the list of lfns referred to by the DAG.
public  StringgetLabel()
     Returns the label of the workflow, that was specified in the DAX.
public  VectorgetLeafNodes()
     This returns all the leaf nodes of the dag.
public  StringgetMTime()
     Returns the last modified time for the file containing the workflow description.
public  intgetNoOfJobs()
     Returns the number of jobs in the dag on the basis of number of elements in the dagJobs Vector.
public  VectorgetParents(String node)
     Gets all the parents of a particular node.
Parameters:
  node - the name of the job whose parents are to be found.
public  VectorgetRootNodes()
     It determines the root Nodes for the ADag looking at the relation pairs of the adag.
public  WorkflowMetricsgetWorkflowMetrics()
     Returns the workflow metrics so far.
public  booleanremove(SubInfo job)
     Removes a job from the dag/graph structure.
public  voidsetDAXMTime(String path)
     Sets the mtime (last modified time) for the DAX.
public  voidsetFlowTimestamp(String timestamp)
     Sets the flow timestamp for the workflow.
public  voidsetLabel(String label)
     Sets the label for the workflow.
public  voidsetReleaseVersion()
     Grabs the release version from VDS.Properties file.
public  StringtoString()
     Returns the a textual description of the object.
public  voidupdateLFNMap(String lfn, String type)
     Updates the lfn map, that contains the mapping of an lfn with the type.
Parameters:
  lfn - the logical file name.
Parameters:
  type - type the type of lfn (i|o|b).

Field Detail
count
public String count(Code)
Refers to the number of the Abstract Dags which are being sent to the Concrete Planner in response to the user's request.



dagJobs
public Vector dagJobs(Code)
Vector of String objects containing the jobname_id of jobs making the abstract dag.



flowID
public String flowID(Code)
It is a unique identifier identifying the concrete DAG generated by Pegasus. It consists of the dag name and the timestamp.
See Also:   DagInfo.flowIDName
See Also:   DagInfo.mFlowTimestamp



flowIDName
public String flowIDName(Code)
It is the name of the dag as generated by Chimera in the dax. If none is specified then a default name of PegasusRun is assigned.



index
public String index(Code)
Refers to the number of the Dag. Index can vary from 0 to count - 1.



lfnMap
public TreeMap lfnMap(Code)
Contains a unique ordered listing of the logical names referred to by the dag. The TreeMap implementation guarentees us a log(n) execution time for the basic operations. Hence should scale well. The key for the map is the lfn name. The value is a String flag denoting whether this file is an input(i) or output(o) or both (b) or none(n). A value of none(n) would denote an error condition.



nameOfADag
public String nameOfADag(Code)
The name of the Abstract Dag taken from the adag element of the DAX generated by the Abstract Planner.



relations
public Vector relations(Code)
Captures the parent child relations making up the DAG. It is a Vector of PCRelation objects.



releaseVersion
public String releaseVersion(Code)
Identifies the release version of the VDS software that was used to generate the workflow. It is populated from Version.java.
See Also:   org.griphyn.common.util.Version




Constructor Detail
DagInfo
public DagInfo()(Code)
The default constructor.




Method Detail
addNewJob
public void addNewJob(SubInfo job)(Code)
Adds a new job to the dag.
Parameters:
  job - the job to be added



addNewRelation
public void addNewRelation(String parent, String child)(Code)
Adds a new PCRelation pair to the Vector of PCRelation pairs. Since we are adding a new relation the isDeleted parameter should be false.
Parameters:
  parent - The parent in the relation pair
Parameters:
  child - The child in the relation pair
See Also:   DagInfo.relations



addNewRelation
public void addNewRelation(String parent, String child, boolean isDeleted)(Code)
Adds a new PCRelation pair to the Vector of PCRelation pairs.
Parameters:
  parent - The parent in the relation pair
Parameters:
  child - The child in the relation pair
Parameters:
  isDeleted - Whether the relation has been deleted due to thereduction algorithm or not
See Also:   DagInfo.relations



clone
public Object clone()(Code)
Returns a new copy of the Object. a copy of the object.



generateFlowID
public void generateFlowID()(Code)
Generates the flow id for this current run. It is made of the name of the dag and a timestamp. This is a simple concat of the mFlowTimestamp and the flowName. For it work correctly the function needs to be called after the flow name and timestamp have been generated.



generateFlowName
public void generateFlowName()(Code)
Generates the name of the flow. It is same as the nameOfADag if specified in dax generated by Chimera.



getChildren
public Vector getChildren(String node)(Code)
Get all the children of a particular node.
Parameters:
  node - the name of the node whose children we want to find. Vector containing the children of the node.



getFlowTimestamp
public String getFlowTimestamp()(Code)
Returns the flow timestamp for the workflow. the flowtimestamp



getLFNs
public Set getLFNs()(Code)
It returns the list of lfns referred to by the DAG. The list is unique as it is gotten from iterating through the lfnMap. a Set of String objects corresponding to thelogical filenames



getLFNs
public Set getLFNs(boolean onlyInput)(Code)
Returns the list of lfns referred to by the DAG. The list is unique as it is gotten from iterating through the lfnMap. The contents of the list are determined on the basis of the command line options passed by the user at runtime. For e.g. if the user has specified force, then one needs to search only for the input files.
Parameters:
  onlyInput - a boolean flag indicating that you need only the inputfiles to the whole workflow a set of logical filenames.



getLabel
public String getLabel()(Code)
Returns the label of the workflow, that was specified in the DAX. the label of the workflow.



getLeafNodes
public Vector getLeafNodes()(Code)
This returns all the leaf nodes of the dag. The way the structure of Dag is specified in terms of the parent child relationship pairs, the determination of the leaf nodes can be computationally intensive. The complexity if of order n^2. Vector of String corresponding to the job names ofthe leaf nodes.
See Also:   org.griphyn.cPlanner.classes.PCRelation
See Also:   org.griphyn.cPlanner.classes.DagInfo.relations



getMTime
public String getMTime()(Code)
Returns the last modified time for the file containing the workflow description. the MTime



getNoOfJobs
public int getNoOfJobs()(Code)
Returns the number of jobs in the dag on the basis of number of elements in the dagJobs Vector. the number of the jobs.



getParents
public Vector getParents(String node)(Code)
Gets all the parents of a particular node.
Parameters:
  node - the name of the job whose parents are to be found. Vector corresponding to the parents of the node.



getRootNodes
public Vector getRootNodes()(Code)
It determines the root Nodes for the ADag looking at the relation pairs of the adag. The way the structure of Dag is specified in terms of the parent child relationship pairs, the determination of the leaf nodes can be computationally intensive. The complexity if of order n^2. the root jobs of the Adag
See Also:   org.griphyn.cPlanner.classes.PCRelation
See Also:   org.griphyn.cPlanner.classes.DagInfo.relations



getWorkflowMetrics
public WorkflowMetrics getWorkflowMetrics()(Code)
Returns the workflow metrics so far. the workflow metrics



remove
public boolean remove(SubInfo job)(Code)
Removes a job from the dag/graph structure. It however does not delete the relations the edges that refer to the job.
Parameters:
  job - the job to be removed boolean indicating whether removal was successful or not.



setDAXMTime
public void setDAXMTime(String path)(Code)
Sets the mtime (last modified time) for the DAX. It is the time, when the DAX file was last modified. If the DAX file does not exist or an IO error occurs, the MTime is set to OL i.e . The DAX mTime is always generated in an extended format. Generating not in extended format, leads to the XML parser tripping while parsing the invocation record generated by Kickstart.
Parameters:
  path - the path to the DAX|PDAX file.



setFlowTimestamp
public void setFlowTimestamp(String timestamp)(Code)
Sets the flow timestamp for the workflow.
Parameters:
  timestamp - the flowtimestamp



setLabel
public void setLabel(String label)(Code)
Sets the label for the workflow.
Parameters:
  label - the label to be assigned to the workflow



setReleaseVersion
public void setReleaseVersion()(Code)
Grabs the release version from VDS.Properties file.
See Also:   org.griphyn.common.util.Version



toString
public String toString()(Code)
Returns the a textual description of the object. textual description.



updateLFNMap
public void updateLFNMap(String lfn, String type)(Code)
Updates the lfn map, that contains the mapping of an lfn with the type.
Parameters:
  lfn - the logical file name.
Parameters:
  type - type the type of lfn (i|o|b). usually a character.



Fields inherited from org.griphyn.cPlanner.classes.Data
public String mLogMsg(Code)(Java Doc)
public LogManager mLogger(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.classes.Data
public String setToString(Set s, String delim)(Code)(Java Doc)
abstract public String toString()(Code)(Java Doc)
public String vectorToString(String heading, Vector vector)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.