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


java.lang.Object
   org.griphyn.cPlanner.partitioner.DAXWriter

All known Subclasses:   org.griphyn.cPlanner.partitioner.MultipleLook,  org.griphyn.cPlanner.partitioner.SingleLook,
DAXWriter
abstract public class DAXWriter (Code)
The abstract class that identifies the interface for writing out a dax corresponding to a partition. The interface stipulates that the jobs making up the partition and relations between those jobs in the partition are identified when invoking it. However all the job details are to be gotten by the implementing classes by parsing the original dax.
author:
   Karan Vahi
version:
   $Revision: 50 $


Field Summary
final public static  StringPACKAGE_NAME
     The name of the package in which the writers are implemented.
final public static  StringPARTITION_PREFIX
     The prefix added to the name of the dax to identify it is a partitioned dax.
protected  StringmDaxFile
     The dax file that is being partitioned.
protected  LogManagermLogger
     The handle to the logging object.
protected  StringmPDAXDirectory
     The directory in which the daxes corresponding to the partition are generated.
protected  StringmPartitionName
     The name of the partition dax that are generated.
protected  PrintWritermWriteHandle
     The write handle to the xml file being written.

Constructor Summary
protected  DAXWriter()
    
protected  DAXWriter(String daxFile, String directory)
     The overloaded constructor.

Method Summary
public  voidclose()
     Close the write handle to the file that is written.
public static  StringgetPDAXFilename(String daxName, int index)
     It constructs the name of the partitioned dax file that has to be written corresponding to a partition of the dax.
public static  StringgetPDAXFilename(String daxName, int index, boolean addPrefix)
     It constructs the name of the partitioned dax file that has to be written corresponding to a partition of the dax.
public  StringgetPartitionName()
     It returns the name of the partitioned dax, that the object is currently writing or initialized to write.
public  voidinitializeWriteHandle(int index)
     This initializes the write handle a file in directory specified when creating the instance of this class.
public  voidinitializeWriteHandle(String fileName)
     This initializes the write handle to the file in directory specified when creating the instance of this class.
public static  DAXWriterloadInstance(PegasusProperties properties, String daxFile, String directory)
     The ends up loading the PDAXWriter.
public static  DAXWriterloadInstance(String className, PegasusProperties properties, String daxFile, String directory)
     Loads the implementing PDAXWriter.
public  voidsetPartitionName(String daxName)
     It sets the name of the partition in the dax that is generated.
public  booleanwritePartitionDax(Partition partition)
     It writes out a dax consisting of the jobs as specified in the partition.
Parameters:
  partition - the partition object containing the relations and id'sof the jobs making up the partition.
abstract public  booleanwritePartitionDax(Partition partition, int index)
     It writes out a dax consisting of the jobs as specified in the partition.
Parameters:
  partition - the partition object containing the relations and id'sof the jobs making up the partition.
Parameters:
  index - the index of the partition.
public  voidwriteln(String st)
     Writes out to the file.

Field Detail
PACKAGE_NAME
final public static String PACKAGE_NAME(Code)
The name of the package in which the writers are implemented.



PARTITION_PREFIX
final public static String PARTITION_PREFIX(Code)
The prefix added to the name of the dax to identify it is a partitioned dax.



mDaxFile
protected String mDaxFile(Code)
The dax file that is being partitioned. The dax file is the repository for all the jobs in the partitioned daxes.



mLogger
protected LogManager mLogger(Code)
The handle to the logging object.



mPDAXDirectory
protected String mPDAXDirectory(Code)
The directory in which the daxes corresponding to the partition are generated.



mPartitionName
protected String mPartitionName(Code)
The name of the partition dax that are generated.



mWriteHandle
protected PrintWriter mWriteHandle(Code)
The write handle to the xml file being written.




Constructor Detail
DAXWriter
protected DAXWriter()(Code)
The default constructor



DAXWriter
protected DAXWriter(String daxFile, String directory)(Code)
The overloaded constructor.
Parameters:
  daxFile - the path to the dax file that is being partitioned.
Parameters:
  directory - the directory in which the partitioned daxes are to begenerated.




Method Detail
close
public void close()(Code)
Close the write handle to the file that is written.



getPDAXFilename
public static String getPDAXFilename(String daxName, int index)(Code)
It constructs the name of the partitioned dax file that has to be written corresponding to a partition of the dax. The dax name returned has no prefix added to it.
Parameters:
  daxName - the name attribute in the adag element of the dax.
Parameters:
  index - the partition number of the partition.



getPDAXFilename
public static String getPDAXFilename(String daxName, int index, boolean addPrefix)(Code)
It constructs the name of the partitioned dax file that has to be written corresponding to a partition of the dax.
Parameters:
  daxName - the name attribute in the adag element of the dax.
Parameters:
  index - the partition number of the partition.
Parameters:
  addPrefix - whether you want to addPrefix or not.



getPartitionName
public String getPartitionName()(Code)
It returns the name of the partitioned dax, that the object is currently writing or initialized to write. By the name, one means the value that is set to the name attribute in the adag element.



initializeWriteHandle
public void initializeWriteHandle(int index)(Code)
This initializes the write handle a file in directory specified when creating the instance of this class. The name of the file is constructed by default, by looking at the partition name that is assigned to the name attribute for the adag element.
Parameters:
  index - the partition number of the partition.



initializeWriteHandle
public void initializeWriteHandle(String fileName)(Code)
This initializes the write handle to the file in directory specified when creating the instance of this class.
Parameters:
  fileName - the name of the file that is to be written in thedirectory.



loadInstance
public static DAXWriter loadInstance(PegasusProperties properties, String daxFile, String directory)(Code)
The ends up loading the PDAXWriter. It selects the writer as specified by the vds.partition.parse.mode property.
Parameters:
  properties - the handle to the properties visible to Pegasus.
Parameters:
  daxFile - the path to the dax file that is being partitioned.
Parameters:
  directory - the directory in which the partitioned daxes are to begenerated.



loadInstance
public static DAXWriter loadInstance(String className, PegasusProperties properties, String daxFile, String directory) throws FactoryException(Code)
Loads the implementing PDAXWriter. The name of the class that is to be loaded is passed and can be complete(with package name) or just the name of the class, in which case the class is loaded from the default package.
Parameters:
  properties - the handle to the properties visible to Pegasus.
Parameters:
  className - the name of the class with or without the package name.
Parameters:
  daxFile - the path to the dax file that is being partitioned.
Parameters:
  directory - the directory in which the partitioned daxes are to begenerated.
throws:
  FactoryException - that nests any error thatmight occur during the instantiation of the implementation.



setPartitionName
public void setPartitionName(String daxName)(Code)
It sets the name of the partition in the dax that is generated. It suffixes PARTITION_PREFIX to the name of the dax.
Parameters:
  daxName - the name attribute in the adag element of the dax.



writePartitionDax
public boolean writePartitionDax(Partition partition)(Code)
It writes out a dax consisting of the jobs as specified in the partition.
Parameters:
  partition - the partition object containing the relations and id'sof the jobs making up the partition. boolean true if dax successfully generated and written.false in case of error.



writePartitionDax
abstract public boolean writePartitionDax(Partition partition, int index)(Code)
It writes out a dax consisting of the jobs as specified in the partition.
Parameters:
  partition - the partition object containing the relations and id'sof the jobs making up the partition.
Parameters:
  index - the index of the partition. boolean true if dax successfully generated and written.false in case of error.



writeln
public void writeln(String st)(Code)
Writes out to the file.



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.