Java Doc for Horizontal.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.Partitioner
      org.griphyn.cPlanner.partitioner.BFS
         org.griphyn.cPlanner.partitioner.Horizontal

Horizontal
public class Horizontal extends BFS (Code)
Horizontal based partitioning scheme, that allows the user to configure the number of partitions per transformation name per level. To set the size of the partition per transformation, the following properties need to be set
 pegasus.partitioner.horizontal.collapse.[txName]
 pegasus.partitioner.horizontal.bundle.[txName]
 
The bundle value designates the number of partitions per transformation per level. The collapse values designates the number of nodes in a partitioning referring to a particular transformation. If both are specified, then bundle value takes precedence.
author:
   Karan Vahi
version:
   $Revision: 50 $


Field Summary
final public static  intDEFAULT_COLLAPSE_FACTOR
     The default collapse factor for collapsing jobs with same logical name scheduled onto the same execution pool.
final public static  StringDESCRIPTION
     A short description about the partitioner.

Constructor Summary
public  Horizontal(GraphNode root, Map graph, PegasusProperties properties)
     The overloaded constructor.

Method Summary
protected  voidconstructLevelRelations(Callback c, int parent, int child)
     Calls out to the callback with appropriate relations between the partitions constructed for the levels.
protected  voidconstructPartitions(Callback c, List nodes, int level)
     Given a list of jobs, constructs (one or more) partitions out of it.
protected  voidconstructPartitions(Callback c, List nodes, int level, String name)
     Given a list of jobs, constructs (one or more) partitions out of it.
protected  PartitioncreatePartition(List nodes)
     Creates a partition out of a list of nodes.
public  Stringdescription()
     Returns a textual description of the partitioner implementation.
protected  voiddone(Callback c)
     Indicates that we are done with the traversal of the graph.
protected  int[]getCollapseFactor(String txName, int size)
     Returns the collapse factor, that is used to determine the number of nodes going in a partition.

Field Detail
DEFAULT_COLLAPSE_FACTOR
final public static int DEFAULT_COLLAPSE_FACTOR(Code)
The default collapse factor for collapsing jobs with same logical name scheduled onto the same execution pool.



DESCRIPTION
final public static String DESCRIPTION(Code)
A short description about the partitioner.




Constructor Detail
Horizontal
public Horizontal(GraphNode root, Map graph, PegasusProperties properties)(Code)
The overloaded constructor.
Parameters:
  root - the dummy root node of the graph.
Parameters:
  graph - the map containing all the nodes of the graph keyed bythe logical id of the nodes.
Parameters:
  properties - the properties passed to the planner.




Method Detail
constructLevelRelations
protected void constructLevelRelations(Callback c, int parent, int child)(Code)
Calls out to the callback with appropriate relations between the partitions constructed for the levels. This is an empty implementation, as we do our own book-keeping in this partitioner to determine the relations between the partitions.
Parameters:
  c - the parititoner callback
Parameters:
  parent - the parent level
Parameters:
  child - the child level.
See Also:   Horizontal.done(Callback)



constructPartitions
protected void constructPartitions(Callback c, List nodes, int level)(Code)
Given a list of jobs, constructs (one or more) partitions out of it. Calls out to the partitioner callback, for each of the partitions constructed.
Parameters:
  c - the parititoner callback
Parameters:
  nodes - the list of GraphNode objects on a particular level.
Parameters:
  level - the level as determined from the root of the workflow.



constructPartitions
protected void constructPartitions(Callback c, List nodes, int level, String name)(Code)
Given a list of jobs, constructs (one or more) partitions out of it. Calls out to the partitioner callback, for each of the partitions constructed.
Parameters:
  c - the parititoner callback
Parameters:
  nodes - the list of GraphNode objects on a particular level,referring to the same transformation underneath.
Parameters:
  level - the level as determined from the root of the workflow.
Parameters:
  name - the transformation name



createPartition
protected Partition createPartition(List nodes)(Code)
Creates a partition out of a list of nodes. Also stores it in the internal partition map to track partitions later on. Associates the partition ID with each of the nodes making the partition also.
Parameters:
  nodes - the list of GraphNodes making the partition. the partition out of those nodes.



description
public String description()(Code)
Returns a textual description of the partitioner implementation. a short textual description



done
protected void done(Callback c)(Code)
Indicates that we are done with the traversal of the graph. Determines the relations between the partitions constructed and calls out to the appropriate callback function
Parameters:
  c - the partitioner callback



getCollapseFactor
protected int[] getCollapseFactor(String txName, int size)(Code)
Returns the collapse factor, that is used to determine the number of nodes going in a partition. The collapse factor is determined by getting the collapse and the bundle values specified for the transformations in the properties file. There are two orthogonal notions of bundling and collapsing. In case the bundle key is specified, it ends up overriding the collapse key, and the bundle value is used to generate the collapse values. If both are not specified or null, then collapseFactor is set to size.
Parameters:
  txName - the logical transformation name
Parameters:
  size - the number of jobs that refer to the same logicaltransformation and are scheduled on the same execution pool. int array of size 2 where :-int[0] is the the collapse factor (number of nodes in a partition)int[1] is the number of parititons for whom collapsing is int[0] + 1.



Fields inherited from org.griphyn.cPlanner.partitioner.BFS
final public static String DESCRIPTION(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.partitioner.BFS
protected void constructLevelRelations(Callback c, int parent, int child)(Code)(Java Doc)
protected void constructPartitions(Callback c, List nodes, int level)(Code)(Java Doc)
public String description()(Code)(Java Doc)
public void determinePartitions(Callback c)(Code)(Java Doc)
protected void done(Callback c)(Code)(Java Doc)

Fields inherited from org.griphyn.cPlanner.partitioner.Partitioner
final public static String PACKAGE_NAME(Code)(Java Doc)
final public static String VERSION(Code)(Java Doc)
protected Map mGraph(Code)(Java Doc)
protected LogManager mLogger(Code)(Java Doc)
protected PegasusProperties mProps(Code)(Java Doc)
protected GraphNode mRoot(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.partitioner.Partitioner
abstract public String description()(Code)(Java Doc)
abstract public void determinePartitions(Callback c)(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.