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


java.lang.Object
   org.griphyn.cPlanner.cluster.Horizontal

Horizontal
public class Horizontal implements Clusterer,org.griphyn.cPlanner.engine.Refiner(Code)
The horizontal clusterer, that clusters jobs on the same level.
author:
   Karan Vahi
version:
   $Revision: 450 $


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.
protected  JobAggregatorInstanceFactorymJobAggregatorFactory
     The handle to the job aggregator factory.
protected  LogManagermLogger
     The handle to the logger object.
protected  PegasusPropertiesmProps
     The handle to the properties object holding all the properties.

Constructor Summary
public  Horizontal()
     The default constructor.

Method Summary
protected  voidappendAttribute(StringBuffer xmlFeed, String key, String value)
     Appends an xml attribute to the xml feed.
public  StringconstructID(String partitionID, int id)
     Given an integer id, returns a string id that is used for the clustered job.
Parameters:
  partitionID - the id of the partition.
Parameters:
  id - the integer id from which the string id has to beconstructed.
public  Stringdescription()
     Returns a textual description of the transfer implementation.
public  voiddetermineClusters(Partition partition)
     Determine the clusters for a partition.
public  ADaggetClusteredDAG()
     Returns the clustered workflow.
public  int[]getCollapseFactor(String pool, SubInfo job, int size)
     Returns the collapse factor, that is used to chunk up the jobs of a particular type on a pool.
public  ADaggetWorkflow()
     Returns a reference to the workflow that is being refined by the refiner.
public  XMLProducergetXMLProducer()
     Returns a reference to the XMLProducer, that generates the XML fragment capturing the actions of the refiner.
public  voidinitialize(ADag dag, PegasusBag bag)
    
protected  voidlogRefinerAction(AggregatedJob clusteredJob, JobAggregator aggregator)
     Records the refiner action into the Provenace Store as a XML fragment.
public  voidparents(String partitionID, List parents)
     Am empty implementation of the callout, as state is maintained internally to determine the relations between the jobs.

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.



mJobAggregatorFactory
protected JobAggregatorInstanceFactory mJobAggregatorFactory(Code)
The handle to the job aggregator factory.



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



mProps
protected PegasusProperties mProps(Code)
The handle to the properties object holding all the properties.




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




Method Detail
appendAttribute
protected void appendAttribute(StringBuffer xmlFeed, String key, String value)(Code)
Appends an xml attribute to the xml feed.
Parameters:
  xmlFeed - the xmlFeed to which xml is being written
Parameters:
  key - the attribute key
Parameters:
  value - the attribute value



constructID
public String constructID(String partitionID, int id)(Code)
Given an integer id, returns a string id that is used for the clustered job.
Parameters:
  partitionID - the id of the partition.
Parameters:
  id - the integer id from which the string id has to beconstructed. The id should be unique for all theclustered jobs that are formed for a particularpartition. the id of the clustered job



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



determineClusters
public void determineClusters(Partition partition) throws ClustererException(Code)
Determine the clusters for a partition. The partition is assumed to contain independant jobs, and multiple clusters maybe created for the partition. Internally the jobs are grouped according to transformation name and then according to the execution site. Each group (having same transformation name and scheduled on same site), is then clustered. The number of clustered jobs created for each group is dependant on the following VDS profiles that can be associated with the jobs.
 1) bundle   (dictates the number of clustered jobs that are created)
 2) collapse (the number of jobs that make a single clustered job)
 
In case of both parameters being associated with the jobs in a group, the bundle parameter overrides collapse parameter.
Parameters:
  partition - the partition for which the clusters need to bedetermined.
throws:
  ClustererException - in case of error.
See Also:   VDS.BUNDLE_KEY
See Also:   VDS.COLLAPSE_KEY



getClusteredDAG
public ADag getClusteredDAG() throws ClustererException(Code)
Returns the clustered workflow. the ADag object corresponding to the clustered workflow.
throws:
  ClustererException - in case of error.



getCollapseFactor
public int[] getCollapseFactor(String pool, SubInfo job, int size)(Code)
Returns the collapse factor, that is used to chunk up the jobs of a particular type on a pool. The collapse factor is determined by getting the collapse key in the VDS namespace/profile associated with the job in the transformation catalog. Right now tc overrides the property from the one in the properties file that specifies per pool. 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.
Parameters:
  pool - the pool where the chunking up is occuring
Parameters:
  job - the SubInfo object containing the job thatis to be chunked up together.
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 factorint[1] is the number of jobs for whom collapsing is int[0] + 1.



getWorkflow
public ADag getWorkflow()(Code)
Returns a reference to the workflow that is being refined by the refiner. ADAG object.



getXMLProducer
public XMLProducer getXMLProducer()(Code)
Returns a reference to the XMLProducer, that generates the XML fragment capturing the actions of the refiner. This is used for provenace purposes. XMLProducer



initialize
public void initialize(ADag dag, PegasusBag bag) throws ClustererException(Code)
Initializes the Clusterer impelementation
Parameters:
  dag - the workflow that is being clustered.
Parameters:
  bag - the bag of objects that is useful for initialization.
throws:
  ClustererException - in case of error.



logRefinerAction
protected void logRefinerAction(AggregatedJob clusteredJob, JobAggregator aggregator)(Code)
Records the refiner action into the Provenace Store as a XML fragment.
Parameters:
  clusteredJob - the clustered job
Parameters:
  aggregator - the aggregator that was used to create this clustered job



parents
public void parents(String partitionID, List parents) throws ClustererException(Code)
Am empty implementation of the callout, as state is maintained internally to determine the relations between the jobs.
Parameters:
  partitionID - the id of a partition.
Parameters:
  parents - the list of String objects that containthe id's of the parents of the partition.
throws:
  ClustererException - in case of error.



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.