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


java.lang.Object
   org.griphyn.cPlanner.code.generator.Abstract
      org.griphyn.cPlanner.code.generator.GRMS

GRMS
public class GRMS extends Abstract (Code)
This generates the submit files in the xml format that can be used to submit the workflow to a GRMS server.
author:
   Karan Vahi
version:
   $Revision: 410 $


Field Summary
final public static  StringSCHEMA
     The workflow schema to which this writer conforms.
final public static  StringSCHEMA_LOCATION
     The "not-so-official" location URL of the GRMS workflow schema definition.
final public static  StringSCHEMA_NAMESPACE
     The "official" namespace URI of the GRMS workflow schema.
final public static  StringSCHEMA_VERSION
     The version to report.
final public static  StringSTDOUT_PREFIX
     The prefix that needs to be added to the stdout to make GRMS aware of a kickstart output.

Constructor Summary
public  GRMS()
     The default constructor.

Method Summary
protected  StringargumentsToXML(SubInfo job)
     This method returns the xml description of the arguments that are passed to the transformation that is being invoked.
Parameters:
  job - the job description.
protected  StringenvToXML(ENV env)
     This method returns the xml description of the environment variables associated with the job.
Parameters:
  env - the EnvNS object that contains the environmentvariables for the job.
protected  StringexecutableToXML(SubInfo job)
     This method returns the xml description for the executable that is to be executed, that includes the arguments with which it is to be invoked, the path to the executable and location of it's stdout , stdin and stderr.
Parameters:
  job - the GRMS job.
protected  StringexecutableToXML(String path, String args, String stdin, String stdout, String stderr)
     This method returns the xml description for the executable that is to be executed, that includes the arguments with which it is to be invoked, the path to the executable and location of it's stdout , stdin and stderr.
Parameters:
  path - the path to the executable.
Parameters:
  args - the arguments to the executable.
Parameters:
  stdin - the url for the stdin of the job.
Parameters:
  stdout - the url for the stdin of the job.
Parameters:
  stderr - the url for the stdin of the job.
public  voidgenerateCode(ADag dag)
     Generates the code for the concrete workflow in the GRMS input format. The GRMS input format is xml based.
public  voidgenerateCode(ADag dag, SubInfo job)
     Generates the code for a single job in the input format of the workflow executor being used.
public  voidinitialize(PegasusBag bag)
     Initializes the Code Generator implementation.
protected  StringjobToXML(ADag dag, SubInfo job)
     It returns the corresponding xml description for a particular job.
Parameters:
  dag - the dag of which the job is a part of.
Parameters:
  job - object containing job info.
protected  StringrelationsToXML(ADag dag, SubInfo job)
     This method returns the xml description of the relations between the jobs. It refers to the associated ADag object with this class to get hold of the parents to the job.
Parameters:
  dag - the dag of which the job is a part of.
Parameters:
  job - the SubInfo object containing the job description.
protected  StringstdErrToXML(String url)
     This method returins the xml description for specifying the stdout.
Parameters:
  url - the url to the stdout file.
protected  StringstdInToXML(String url)
     This method returns the xml description for specifying the stdout.
Parameters:
  url - the url to the stdout file.
protected  StringstdOutToXML(String url)
     This method returns the xml description for specifying the stdout.
Parameters:
  url - the url to the stdout file.
protected  StringurlToXML(String lfn, String url, char type)
     This method returns the xml description of the url.

Field Detail
SCHEMA
final public static String SCHEMA(Code)
The workflow schema to which this writer conforms.



SCHEMA_LOCATION
final public static String SCHEMA_LOCATION(Code)
The "not-so-official" location URL of the GRMS workflow schema definition.



SCHEMA_NAMESPACE
final public static String SCHEMA_NAMESPACE(Code)
The "official" namespace URI of the GRMS workflow schema.



SCHEMA_VERSION
final public static String SCHEMA_VERSION(Code)
The version to report.



STDOUT_PREFIX
final public static String STDOUT_PREFIX(Code)
The prefix that needs to be added to the stdout to make GRMS aware of a kickstart output.




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




Method Detail
argumentsToXML
protected String argumentsToXML(SubInfo job)(Code)
This method returns the xml description of the arguments that are passed to the transformation that is being invoked.
Parameters:
  job - the job description. the xml description of the arguments.



envToXML
protected String envToXML(ENV env)(Code)
This method returns the xml description of the environment variables associated with the job.
Parameters:
  env - the EnvNS object that contains the environmentvariables for the job. the xml element if there are any environment variableselse an empty string.



executableToXML
protected String executableToXML(SubInfo job)(Code)
This method returns the xml description for the executable that is to be executed, that includes the arguments with which it is to be invoked, the path to the executable and location of it's stdout , stdin and stderr.
Parameters:
  job - the GRMS job. String



executableToXML
protected String executableToXML(String path, String args, String stdin, String stdout, String stderr)(Code)
This method returns the xml description for the executable that is to be executed, that includes the arguments with which it is to be invoked, the path to the executable and location of it's stdout , stdin and stderr.
Parameters:
  path - the path to the executable.
Parameters:
  args - the arguments to the executable.
Parameters:
  stdin - the url for the stdin of the job.
Parameters:
  stdout - the url for the stdin of the job.
Parameters:
  stderr - the url for the stdin of the job. String



generateCode
public void generateCode(ADag dag) throws CodeGeneratorException(Code)
Generates the code for the concrete workflow in the GRMS input format. The GRMS input format is xml based. One XML file is generated per workflow.
Parameters:
  dag - the concrete workflow.
throws:
  CodeGeneratorException - in case of any error occuring code generation.



generateCode
public void generateCode(ADag dag, SubInfo job) throws CodeGeneratorException(Code)
Generates the code for a single job in the input format of the workflow executor being used.
Parameters:
  dag - the dag of which the job is a part of.
Parameters:
  job - the SubInfo object holding the information aboutthat particular job.
throws:
  CodeGeneratorException - in case of any error occuring code generation.



initialize
public void initialize(PegasusBag bag) throws CodeGeneratorException(Code)
Initializes the Code Generator implementation.
Parameters:
  bag - the bag of initialization objects.
throws:
  CodeGeneratorException - in case of any error occuring code generation.



jobToXML
protected String jobToXML(ADag dag, SubInfo job)(Code)
It returns the corresponding xml description for a particular job.
Parameters:
  dag - the dag of which the job is a part of.
Parameters:
  job - object containing job info. the string containing the xml description.



relationsToXML
protected String relationsToXML(ADag dag, SubInfo job)(Code)
This method returns the xml description of the relations between the jobs. It refers to the associated ADag object with this class to get hold of the parents to the job.
Parameters:
  dag - the dag of which the job is a part of.
Parameters:
  job - the SubInfo object containing the job description. the xml element if there are any dependencies of the jobelse an empty string.



stdErrToXML
protected String stdErrToXML(String url)(Code)
This method returins the xml description for specifying the stdout.
Parameters:
  url - the url to the stdout file. the xml description.



stdInToXML
protected String stdInToXML(String url)(Code)
This method returns the xml description for specifying the stdout.
Parameters:
  url - the url to the stdout file. the xml description.



stdOutToXML
protected String stdOutToXML(String url)(Code)
This method returns the xml description for specifying the stdout.
Parameters:
  url - the url to the stdout file. the xml description.



urlToXML
protected String urlToXML(String lfn, String url, char type)(Code)
This method returns the xml description of the url.
Parameters:
  lfn - the logical name of the file associated with the url.
Parameters:
  url - the url
Parameters:
  type - i input urlo output url String



Fields inherited from org.griphyn.cPlanner.code.generator.Abstract
protected PegasusBag mBag(Code)(Java Doc)
protected PlannerOptions mPOptions(Code)(Java Doc)
protected PegasusProperties mProps(Code)(Java Doc)
protected String mSubmitFileDir(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.code.generator.Abstract
public String getFileBaseName(SubInfo job)(Code)(Java Doc)
public PrintWriter getWriter(SubInfo job) throws IOException(Code)(Java Doc)
public void initialize(PegasusBag bag) throws CodeGeneratorException(Code)(Java Doc)
public void reset() throws CodeGeneratorException(Code)(Java Doc)
public boolean startMonitoring()(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.