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


java.lang.Object
   org.griphyn.vdl.router.BookKeeper

BookKeeper
public class BookKeeper (Code)
This class stores state when constructing the DAG for output. It is expected that for each DAG generation, one instance of this class performs the state tracking. The class is tightly coupled to the class that performs the routing.
author:
   Jens-S. Vöckler
author:
   Yong Zhao
version:
   $Revision: 50 $
See Also:   Route


Field Summary
final static  StringXXXXXX
     String constant describing the six X.

Constructor Summary
public  BookKeeper()
     Default ctor.

Method Summary
public  voidaddFilenames(Collection lfnset)
     This method helps to track the input and output files.
public  booleanaddJob(Job job)
     Accessor: Appends a job definition to the DAX structure.
public  booleanaddParent(HasPass current, Set parents)
    
public  booleanaddVisited(HasPass current, Set real)
     This method marks a derivation as visited in the set of visited nodes.
Parameters:
  current - is the caller to add to the visited node set.
Parameters:
  real - is the value to add for the given caller.
public  StringcreateTempName(String hint, String suffix)
     Creates a unique temporary filename.
public  java.util.ListgetAllProfiles()
     Accessor: obtains all profiles on the profile stack.
public  StringgetAllTransformations()
     Accessor: obtains all transformations that were pushed as space separated string.
public  HasPassgetCurrent()
     Obtains the current cursor position.
public  ADAGgetDAX(String name)
     Accessor: Returns the constructed internal DAX keeper. the abstract DAX description.
public  SetgetVisited(HasPass dv)
    
public  booleanisEmpty()
     Detects valid results in the ADAG as opposed to an empty shell.
public  StringjobOf(String id)
     Obtains an existing mapping of a DV indentification to a job id.
public  StringmapJob(String id)
     Maps a DV identification to a name that can be put into the XML datatypes NMTOKEN, ID and IDREF.
public  java.util.ListpopProfile()
     Accessor: pop a vector of profiles from the profile stack.
public  StringpopTransformation()
     Accessor: pop an FQDI from the stack of transformations.
public  voidpushProfile(java.util.List profiles)
     Accessor: push a vector of profiles down the profile stack.
public  voidpushTransformation(String fqdi)
     Accessor: push the FQDI of a transformation onto a stack.
public  voidsetCurrent(HasPass dv)
     This method updates the "cursor" position with a new derivation.
public  voidtoString(Writer stream)
     This method is a possibly more memory efficient version of constructing a DAG.
public  StringtoString()
     dumps the state of this object into human readable format.
public  voidtoXML(Writer stream, String indent, String namespace)
     This method is a possibly more memory efficient version of constructing a DAX.
public  voidtoXML(Writer stream, String indent)
     This method is a possibly more memory efficient version of constructing a DAX.
public  StringtoXML(String indent, String namespace)
     Dumps the state of this object into machine readable XML.
public  booleanwasVisited(HasPass dv)
     Checks if a node was previously visited.

Field Detail
XXXXXX
final static String XXXXXX(Code)
String constant describing the six X.




Constructor Detail
BookKeeper
public BookKeeper()(Code)
Default ctor.




Method Detail
addFilenames
public void addFilenames(Collection lfnset)(Code)
This method helps to track the input and output files. From this information, the input, intermediary and output files of the complete DAG can be constructed. This method does allow for inout.
Parameters:
  lfnset - is a set of LFN instances, which encapsulate theirrespective linkage.
See Also:   java.util.AbstractCollection.addAll(java.util.Collection)



addJob
public boolean addJob(Job job)(Code)
Accessor: Appends a job definition to the DAX structure.



addParent
public boolean addParent(HasPass current, Set parents)(Code)
Adds a parent set for the given element to the state
Parameters:
  current - is the current derivation to add parents for
Parameters:
  parents - are the parents, any number, to add for the given element true, if the parent was not know before or the currelem is empty,false, if the parent was added previously.



addVisited
public boolean addVisited(HasPass current, Set real)(Code)
This method marks a derivation as visited in the set of visited nodes.
Parameters:
  current - is the caller to add to the visited node set.
Parameters:
  real - is the value to add for the given caller. true, if the caller was previously unknownto the visited set.



createTempName
public String createTempName(String hint, String suffix)(Code)
Creates a unique temporary filename. The new name is registered locally to ensure uniqueness. A string of multiple capitol X, at least six, is replaced with some random factor.
Parameters:
  hint - is a filename hint.
Parameters:
  suffix - is the suffix for the filename. a somewhat unique filename - for this workflow only.



getAllProfiles
public java.util.List getAllProfiles()(Code)
Accessor: obtains all profiles on the profile stack. all stacked profiles in one structure, may be empty.



getAllTransformations
public String getAllTransformations()(Code)
Accessor: obtains all transformations that were pushed as space separated string. all transformation names, may be empty.
See Also:   BookKeeper.addJob(Job)



getCurrent
public HasPass getCurrent()(Code)
Obtains the current cursor position. the derivation that the cursor is located at.
See Also:   BookKeeper.setCurrent(HasPass)



getDAX
public ADAG getDAX(String name)(Code)
Accessor: Returns the constructed internal DAX keeper. the abstract DAX description. Note that this may be empty!



getVisited
public Set getVisited(HasPass dv)(Code)



isEmpty
public boolean isEmpty()(Code)
Detects valid results in the ADAG as opposed to an empty shell. true, if the ADAG is an empty shell.



jobOf
public String jobOf(String id)(Code)
Obtains an existing mapping of a DV indentification to a job id. The identification used to be the DV's short ID, but recent changes use the full ID.
Parameters:
  id - is the derivation identifier a job identifier, or null if no such mapping exists.



mapJob
public String mapJob(String id)(Code)
Maps a DV identification to a name that can be put into the XML datatypes NMTOKEN, ID and IDREF. The identification used to be the DV's short ID, but recent changes use the full ID.
Parameters:
  id - is the derivation identifier an XML-compatible job id



popProfile
public java.util.List popProfile()(Code)
Accessor: pop a vector of profiles from the profile stack. the last active vector of profiles, may be empty.
See Also:   BookKeeper.pushProfile(java.util.List)



popTransformation
public String popTransformation()(Code)
Accessor: pop an FQDI from the stack of transformations. the last FQDI pushed, may be empty for an empty stack.
See Also:   BookKeeper.pushTransformation(String)



pushProfile
public void pushProfile(java.util.List profiles)(Code)
Accessor: push a vector of profiles down the profile stack.
Parameters:
  profiles - is a list of profiles, may be empty.
See Also:   BookKeeper.popProfile()



pushTransformation
public void pushTransformation(String fqdi)(Code)
Accessor: push the FQDI of a transformation onto a stack.
Parameters:
  fqdi - is the fully-qualified definition identifier.
See Also:   BookKeeper.popTransformation()



setCurrent
public void setCurrent(HasPass dv)(Code)
This method updates the "cursor" position with a new derivation. The cursor helps tracking derivations while a DAG is being produced.
Parameters:
  dv - is the new current derivation that the cursor will be set to.
See Also:   BookKeeper.getCurrent()



toString
public void toString(Writer stream) throws IOException(Code)
This method is a possibly more memory efficient version of constructing a DAG.
Parameters:
  stream - is a generic stream to put textual results onto.



toString
public String toString()(Code)
dumps the state of this object into human readable format.



toXML
public void toXML(Writer stream, String indent, String namespace) throws IOException(Code)
This method is a possibly more memory efficient version of constructing a DAX.
Parameters:
  stream - is a generic stream to put XML results onto.
Parameters:
  indent - is the initial indentation level.
Parameters:
  namespace - is an optional XML namespace.



toXML
public void toXML(Writer stream, String indent) throws IOException(Code)
This method is a possibly more memory efficient version of constructing a DAX.
Parameters:
  stream - is a generic stream to put XML results onto.
Parameters:
  indent - is the initial indentation level.



toXML
public String toXML(String indent, String namespace)(Code)
Dumps the state of this object into machine readable XML.
Parameters:
  indent - is the initial indentation level.
Parameters:
  namespace - is an optional XML namespace.



wasVisited
public boolean wasVisited(HasPass dv)(Code)
Checks if a node was previously visited. The visited nodes have to be tracked in any kind of breadth first and depth first search.
Parameters:
  dv - is the derivation to check, if it was visited before. true, if the derivation was already visited previously.



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.