Java Doc for GetDAX.java in  » Workflow-Engines » pegasus-2.1.0 » edu » isi » pegasus » planner » ranking » 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 » edu.isi.pegasus.planner.ranking 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.isi.pegasus.planner.ranking.GetDAX

GetDAX
public class GetDAX (Code)
This class is responsible for the fetching the DAX'es on the basis of the request ID's from the Windward Provenance Tracking Catalog. If there are more than one way's to get the DAX's then it should be an interface.
author:
   Karan Vahi
version:
   $Revision: 341 $


Field Summary
final public static  StringDB_PREFIX
     The DB Driver properties prefix.
final public static  Stringc_prefix
     Prefix for the property subset to use with this catalog.

Constructor Summary
public  GetDAX()
     The default constructor.

Method Summary
public  voidclose()
     Explicitely free resources before the garbage collection hits.
public  booleanconnect(PegasusProperties properties)
     A convenience method to connect on the basis of PegasusProperties.
public  booleanconnect(Properties props)
     Establishes a connection to the database from the properties.
public  Collection<String>get(String id, String dir)
     Given a request ID it fetches the DAX's from the DB and writes out to the directory passed.
Parameters:
  id - the request id.
Parameters:
  dir - the directory where the DAX'es need to be placed.
protected  StringgetJDBCURL(String driver, Properties properties)
     Constructs the jdbc url on the basis fo the driver and db properties.
protected  PreparedStatementgetStatement(int i)
     Singleton manager for prepared statements.
public  booleanisClosed()
     Predicate to check, if the connection with the catalog's implementation is still active.
public static  voidmain(String[] args)
     For Testing purposes only.
protected static  voidsanityCheck(File dir)
     Checks the destination location for existence, if it can be created, if it is writable etc.

Field Detail
DB_PREFIX
final public static String DB_PREFIX(Code)
The DB Driver properties prefix.



c_prefix
final public static String c_prefix(Code)
Prefix for the property subset to use with this catalog.




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




Method Detail
close
public void close()(Code)
Explicitely free resources before the garbage collection hits.



connect
public boolean connect(PegasusProperties properties)(Code)
A convenience method to connect on the basis of PegasusProperties. Eventually this logic should go in the invoking code or factory.
Parameters:
  properties - PegasusProperties boolean



connect
public boolean connect(Properties props)(Code)
Establishes a connection to the database from the properties. You can specify a driver property to contain the class name of the JDBC driver for your database. This property will be removed before attempting to connect. You must speficy a url property to describe the connection. It will be removed before attempting to connect.
Parameters:
  props - is the property table with sufficient settings toestablish a link with the database. The minimum key required key is"url", and possibly "driver". Any other keys depend on the databasedriver. true if connected, false if failed to connect.
See Also:   java.sql.DriverManager.getConnection(StringProperties)
throws:
  Error - subclasses for runtime errors in the class loader.



get
public Collection<String> get(String id, String dir)(Code)
Given a request ID it fetches the DAX's from the DB and writes out to the directory passed.
Parameters:
  id - the request id.
Parameters:
  dir - the directory where the DAX'es need to be placed. a Collection of basenames fo the DAX'es placed in the directory.



getJDBCURL
protected String getJDBCURL(String driver, Properties properties)(Code)
Constructs the jdbc url on the basis fo the driver and db properties.
Parameters:
  driver - the driver being used.
Parameters:
  properties - the db properites the jdbc url, else null if unable to construct



getStatement
protected PreparedStatement getStatement(int i) throws SQLException(Code)
Singleton manager for prepared statements. This instruction checks that a prepared statement is ready to use, and will create an instance of the prepared statement, if it was unused previously.
Parameters:
  i - is the index which prepared statement to check. a handle to the prepared statement.
throws:
  SQLException - in case of unable to delete entry.



isClosed
public boolean isClosed()(Code)
Predicate to check, if the connection with the catalog's implementation is still active. This helps determining, if it makes sense to call close(). true, if the implementation is disassociated, false otherwise.
See Also:   GetDAX.close()



main
public static void main(String[] args)(Code)
For Testing purposes only.
Parameters:
  args - the arguments passed.



sanityCheck
protected static void sanityCheck(File dir) throws IOException(Code)
Checks the destination location for existence, if it can be created, if it is writable etc.
Parameters:
  dir - is the new base directory to optionally create.
throws:
  IOException - in case of error while writing out files.



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.