Java Doc for Route.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.Route

Route
public class Route (Code)
This class traverses the dependency tree. The tree is built by Derivation objects. The linkage is data-flow oriented. If a derivation requires one or more input files, all derivations that produce these files will be considered etc. Thus, a build-style directed acyclic graph (DAG) is formed.
author:
   Jens-S. Vöckler
author:
   Yong Zhao
version:
   $Revision: 50 $

Inner Class :class DatabaseSchemaStack

Field Summary
final public static  intMAXIMUM_DEPTH
     Default max depths of recursion into the graph before the circuit breaker hits.

Constructor Summary
public  Route(DatabaseSchema backend)
     The constructor initializes the stack of definitions with the default database manager backend.
public  Route(DatabaseSchema backend, Definitions defs)
     The constructor initializes the stack of definitions with the default database manager backend.

Method Summary
public  voidaddDefinitions(Definitions defs)
     Creates a new top of stack with the given definitions.
public  ArbitergetArbiter()
     Queries the current arbitrarion instance.
public  intgetMaximumDepth()
     Queries the current maximum depths that the router is willing to go.
public  DatabaseSchemaremoveDefinitions()
     Removes the current top of stack.
public  BookKeeperrequestDerivation(Derivation dv)
     This helper method is the entry point when requesting a certain derivation.
public  BookKeeperrequestDerivation(Collection list)
     This helper method is the entry point when requesting a set of derivations.
public  BookKeeperrequestDerivation(String namespace, String name, String version)
     This helper retrieves a build-DAG for running the specified logical derivation and all its required predecessors.
public  booleanrequestDerivation(String namespace, String name, String version, BookKeeper state)
     This helper retrieves a DAX for running the specified logical derivation match and all its required predecessors.
public  booleanrequestDerivation(Collection fqdi, BookKeeper state)
     This helper retrieves a DAX for a number of symbolically specified derivations.
public  BookKeeperrequestLfn(String lfn)
     This method requests a data product logical filename.
public  voidrequestLfn(Collection list, BookKeeper state)
     This method requests multiple data product logical filenames.
public  voidsetArbiter(Arbiter arbiter)
     Replaces the current arbiter with a new instance.
public  voidsetMaximumDepth(int depth)
     Allows to limit the maximum depth that the router is willing to go.
Parameters:
  depth - is the maximum depth.

Field Detail
MAXIMUM_DEPTH
final public static int MAXIMUM_DEPTH(Code)
Default max depths of recursion into the graph before the circuit breaker hits.




Constructor Detail
Route
public Route(DatabaseSchema backend)(Code)
The constructor initializes the stack of definitions with the default database manager backend. This backend will be used to pose the various search requests.
Parameters:
  backend - is the backend database manager.



Route
public Route(DatabaseSchema backend, Definitions defs) throws NullPointerException(Code)
The constructor initializes the stack of definitions with the default database manager backend. Additionally, it will push an in-memory schema constructed from the definitions argument onto the stack.
Parameters:
  backend - is the backend database manager.
Parameters:
  defs - is the root of an in-memory database fragment.
exception:
  NullPointerException - , if the argument is null.
See Also:   org.griphyn.vdl.dbschema.InMemorySchema
See Also:   org.griphyn.vdl.dbschema.SingleFileSchema




Method Detail
addDefinitions
public void addDefinitions(Definitions defs) throws NullPointerException(Code)
Creates a new top of stack with the given definitions. Effectively a push() operation. The definitions fragment will be converted into an in-memory database.
Parameters:
  defs - is the root an in-memory database fragment.
exception:
  NullPointerException - , if the argument is null.
See Also:   org.griphyn.vdl.dbschema.InMemorySchema
See Also:   org.griphyn.vdl.dbschema.SingleFileSchema



getArbiter
public Arbiter getArbiter()(Code)
Queries the current arbitrarion instance. a reference to the current arbiter for conflict resolution.



getMaximumDepth
public int getMaximumDepth()(Code)
Queries the current maximum depths that the router is willing to go. the current maximum depth, or Integer.MAX_VALUE for unlimited.
See Also:   Route.setMaximumDepth(int)



removeDefinitions
public DatabaseSchema removeDefinitions()(Code)
Removes the current top of stack. Effective a pop() operation. the top of stack as it was before the pop().



requestDerivation
public BookKeeper requestDerivation(Derivation dv)(Code)
This helper method is the entry point when requesting a certain derivation. As a result, a build-style DAG will be produced and maintained in the book-keeping structure. FIXME: It is assumed that the derivation is part of the DatabaseSchema that was used with the c'tor.
Parameters:
  dv - is the derivation asked for. a new bookkeeper containing the DAG information.
See Also:   Route.requestDerivation(Collection)
See Also:   BookKeeper
See Also:   



requestDerivation
public BookKeeper requestDerivation(Collection list)(Code)
This helper method is the entry point when requesting a set of derivations. As a result, a build-style DAG will be produced and maintained in the book-keeping structure. Note that the resulting graph may be disconnected. FIXME: It is assumed that the derivation is part of the DatabaseSchema that was used with the c'tor.
Parameters:
  list - is the set of derivations to asked for. a new bookkeeper containing the DAG information.
See Also:   BookKeeper
See Also:   



requestDerivation
public BookKeeper requestDerivation(String namespace, String name, String version)(Code)
This helper retrieves a build-DAG for running the specified logical derivation and all its required predecessors. It assumes a fully qualified derivation specification.
Parameters:
  namespace - is the namespace the derivation lives in. A valueof Separator.DEFAULT will be assumed for a value of null.
Parameters:
  name - is the name of the derivation. Although anonymousderivations are allowed, this method requires a named derivation.
Parameters:
  version - is a version string within the minVersion and maxVersionrange defined by the derivation, which might be null. a book-keeping structure, or null, if either no matchingderivation was found.



requestDerivation
public boolean requestDerivation(String namespace, String name, String version, BookKeeper state)(Code)
This helper retrieves a DAX for running the specified logical derivation match and all its required predecessors. It assumes a fully qualified or partial-null derivation specification.
Parameters:
  namespace - is the namespace the derivation lives in. Null isthe joker value.
Parameters:
  name - is the name of the derivation. Although anonymousderivations are allowed, this method requires a named derivation.
Parameters:
  version - is a version string within the minVersion and maxVersionrange defined by the derivation, which might be null.
Parameters:
  state - is the book-keeping structure true, if something was found, and false if not.



requestDerivation
public boolean requestDerivation(Collection fqdi, BookKeeper state)(Code)
This helper retrieves a DAX for a number of symbolically specified derivations. The resulting graph may be disconnected. It assumes a fully qualified or partial-null derivation specification.
Parameters:
  fqdi - is a collection of fully-qualified derivation identifiers.
Parameters:
  state - is the book-keeping structure true, if something was found, and false if not.
See Also:   org.griphyn.common.util.Separator.splitFQDI(String)



requestLfn
public BookKeeper requestLfn(String lfn)(Code)
This method requests a data product logical filename. As a result, the complete build-style DAG for producing the requested filename will be constructed.
Parameters:
  lfn - is the filename that was requested the book-keeping information to construct the DAG. Pleasenote that it might be empty, if no derivation is known to producethe file. It will be null, if the definitionslist is empty.
See Also:   Route.requestLfn(Collection,BookKeeper)
See Also:   Route.requestLfn(String,BookKeeper,int,String)



requestLfn
public void requestLfn(Collection list, BookKeeper state)(Code)
This method requests multiple data product logical filenames. As a result, the complete build-style DAG for producing the requested filename will be constructed. Please note that the result may constitute a disconnected graph.
Parameters:
  list - is a collection of logical filename strings.
Parameters:
  state - is the book-keeping structure
See Also:   Route.requestLfn(String)
See Also:   Route.requestLfn(String,BookKeeper,int,String)



setArbiter
public void setArbiter(Arbiter arbiter)(Code)
Replaces the current arbiter with a new instance.
Parameters:
  arbiter - is a new instance of a conflict resolution class.



setMaximumDepth
public void setMaximumDepth(int depth)(Code)
Allows to limit the maximum depth that the router is willing to go.
Parameters:
  depth - is the maximum depth. Use Integer.MAX_VALUE for unlimited.
See Also:   Route.getMaximumDepth()



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.