Java Doc for DAX2DAG.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » vdl » euryale » 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.vdl.euryale 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.griphyn.vdl.euryale.DAX2DAG

DAX2DAG
public class DAX2DAG implements Callback(Code)
This class is used to convert in streaming mode information from an abstract DAG in XML (DAX) into a DAGMan .dag file and a couple of related files, i.e. Condor submit files and planner control files. The parser converts the DAX document specified in the commandline.
author:
   Kavitha Ranganathan
author:
   Jens-S. Vöckler
author:
   Yong Zhao
version:
   $Revision: 289 $
See Also:   DAXParser
See Also:   org.griphyn.vdl.dax.ADAG


Field Summary
final public static  Stringc_version
     Stores the current version number for whatever purposes.

Constructor Summary
public  DAX2DAG()
     Constructs a new instance of the converter and reads properties from the default position.

Method Summary
public  voidcb_document(java.util.Map attributes)
     Callback when the opening tag was parsed.
public  voidcb_done()
     Callback when the parsing of the document is done.
public  voidcb_filename(Filename filename)
     Callback when the section 1 filenames are being parsed.
public  voidcb_job(Job job)
     Callback for the job from section 2 jobs.
public  voidcb_parents(String child, java.util.List parents)
    
public  voidcheckConfigSubmit()
     Ensures that the submit file references the submit host local config file.
public  voidfinalizeProperties()
    
protected  LongOpt[]generateValidOptions()
     Creates a set of long options to use.
public  intincreaseVerbosity()
     Increases the verbosity of the app logging queue.
public static  voidmain(String[] args)
     Point of entry to convert the DAX into DAG with helper and submit files.
public  booleansetConfigFileTemplate(File cft)
     Reads the configuration file template into memory for kickstart V2 file generation.
public  voidsetDirectory(String dir)
     Sets the output directory.
public  voidsetMinimumLevel(int level)
     Sets the minimum level in the hashed file factory.
public  voidsetPostscript(String fn)
     Sets the DAGMan POST script location.
public  voidsetPrescript(String fn)
     Sets the DAGMan PRE script location.
public  StringsetProperty(String key, String value)
     Allows to set a property from the code.
public  booleansetSubmitFileTemplate(File sft)
     Reads the submit file template into memory for submit file generation.
public  DatesetTimestamp(Date then)
     Sets the timestamp that is being emitted in all files.
Parameters:
  then - is the new date to use for the timestamping.
public  voidsetWorkflowPropertyFile(File wfrc)
     Remembers which workflow property file should be chosen.
public  voidshowFinals()
    
public  voidshowUsage()
    

Field Detail
c_version
final public static String c_version(Code)
Stores the current version number for whatever purposes.




Constructor Detail
DAX2DAG
public DAX2DAG()(Code)
Constructs a new instance of the converter and reads properties from the default position.




Method Detail
cb_document
public void cb_document(java.util.Map attributes)(Code)
Callback when the opening tag was parsed. The attribute maps each attribute to its raw value. The callback initializes the DAG writer.
Parameters:
  attributes - is a map of attribute key to attribute value



cb_done
public void cb_done()(Code)
Callback when the parsing of the document is done. This callback closes and frees the DAG writer.



cb_filename
public void cb_filename(Filename filename)(Code)
Callback when the section 1 filenames are being parsed. This is unused by design, as the reduction of a DAG according to the existence of files happens dynamically.
Parameters:
  filename - is a DAX-style filename elements.



cb_job
public void cb_job(Job job)(Code)
Callback for the job from section 2 jobs. These jobs are completely assembled, but each is passed separately. For each job, the submit file needs to be created from the submit file template. Furthermore, for each submit file, the kickstart control file needs to be written, and some other useful files for the late planner.
Parameters:
  job - is the DAX-style job.



cb_parents
public void cb_parents(String child, java.util.List parents)(Code)



checkConfigSubmit
public void checkConfigSubmit()(Code)
Ensures that the submit file references the submit host local config file. The function will ensure that there is an input configuration inside the submit file, which refers to the configuration file.



finalizeProperties
public void finalizeProperties()(Code)



generateValidOptions
protected LongOpt[] generateValidOptions()(Code)
Creates a set of long options to use. initialized long options.



increaseVerbosity
public int increaseVerbosity()(Code)
Increases the verbosity of the app logging queue. the current level.



main
public static void main(String[] args)(Code)
Point of entry to convert the DAX into DAG with helper and submit files.
Parameters:
  args - are the commandline arguments.



setConfigFileTemplate
public boolean setConfigFileTemplate(File cft)(Code)
Reads the configuration file template into memory for kickstart V2 file generation. This function is only activated, if kickstart v2 configuration is being requested.
Parameters:
  cft - is the file that contains the config file template false if unable to read the config file template



setDirectory
public void setDirectory(String dir)(Code)
Sets the output directory. This directory will be dynamically created once the document header is found.
Parameters:
  dir - is the new directory to use



setMinimumLevel
public void setMinimumLevel(int level)(Code)
Sets the minimum level in the hashed file factory. This is to remember until the factory actually gets instantiated.
Parameters:
  level - is the minimum level requested



setPostscript
public void setPostscript(String fn)(Code)
Sets the DAGMan POST script location.
Parameters:
  fn - is the location of the POST script.



setPrescript
public void setPrescript(String fn)(Code)
Sets the DAGMan PRE script location.
Parameters:
  fn - is the location of the PRE script.



setProperty
public String setProperty(String key, String value)(Code)
Allows to set a property from the code.
Parameters:
  key - is the property key
Parameters:
  value - is the new value to store the previous value, or null



setSubmitFileTemplate
public boolean setSubmitFileTemplate(File sft)(Code)
Reads the submit file template into memory for submit file generation.
Parameters:
  sft - is a file that contains the submit file template false if unable to read the submit file template



setTimestamp
public Date setTimestamp(Date then)(Code)
Sets the timestamp that is being emitted in all files.
Parameters:
  then - is the new date to use for the timestamping. the previously valid timestamp.



setWorkflowPropertyFile
public void setWorkflowPropertyFile(File wfrc)(Code)
Remembers which workflow property file should be chosen. It will not be read now. Only its location will be remembered.
Parameters:
  wfrc - is the location of a property file.



showFinals
public void showFinals()(Code)



showUsage
public void showUsage()(Code)



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.