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

All known Subclasses:   org.griphyn.cPlanner.cluster.Vertical,
Abstract
abstract public class Abstract implements Clusterer(Code)
An abstract clusterer that the other clusterers can extend. The abstract implementation treats each partition as a single cluster. It has callouts to determine the ordering of the jobs in the cluster, and the input/output files for the clustered jobs.
author:
   Karan Vahi
version:
   $Revision: 450 $


Field Summary
protected  CollectionmClusteredRelations
     The collection of relations, that is constructed for the clustered workflow.
protected  JobAggregatorInstanceFactorymJobAggregatorFactory
     The handle to the job aggregator factory.
protected  LogManagermLogger
     The handle to the logger object.
protected  MapmPartitionClusterMap
     A Map that indexes the partition ID to the name of clustered job.
protected  PegasusPropertiesmProps
     The handle to the properties object holding all the properties.
protected  ADagmScheduledDAG
     ADag object containing the jobs that have been scheduled by the site selector.
protected  MapmSubInfoMap
     A Map to store all the job(SubInfo) objects indexed by their logical ID found in the dax.

Constructor Summary
public  Abstract()
     The Abstract constructor.

Method Summary
protected  voidaddJob(SubInfo job)
     Adds jobs to the internal map of jobs that is maintained by the clusterer.
protected  voidassociate(Partition p, SubInfo job)
     Maps the partition to the corresponding clustered job.
protected  SubInfoclusteredJob(Partition p)
     Returns the job corresponding to a partition.
Parameters:
  p - the partition for which the clustered job is reqd.
protected  SubInfoclusteredJob(String id)
     Returns the job corresponding to a partition.
Parameters:
  id - the partition id.
protected  StringconstructClusteredJobID(Partition partition)
     Returns the ID for the clustered job corresponding to a partition.
Parameters:
  partition - the partition.
public  voiddetermineClusters(Partition partition)
     It creates a single clustered job for the partition.
abstract public  voiddetermineInputOutputFiles(AggregatedJob job)
     Determine the input and output files of the job on the basis of the order of the constituent jobs in the AggregatedJob.
public  ADaggetClusteredDAG()
     Returns the clustered workflow.
protected  SubInfogetJob(String id)
     Returns the job object corresponding to the id of the job.
public  voidinitialize(ADag dag, PegasusBag bag)
    
abstract public  Listorder(Partition p)
     Returns the nodes in the partition as a List in a particular order. The iterator of the list returns the nodes in the order determined by the clusterer.
Parameters:
  p - the partition whose nodes have to be ordered.
public  voidparents(String partitionID, List parents)
     Associates the relations between the partitions with the corresponding relations between the clustered jobs that are created for each Partition.

Field Detail
mClusteredRelations
protected Collection mClusteredRelations(Code)
The collection of relations, that is constructed for the clustered workflow.



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



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



mPartitionClusterMap
protected Map mPartitionClusterMap(Code)
A Map that indexes the partition ID to the name of clustered job.



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



mScheduledDAG
protected ADag mScheduledDAG(Code)
ADag object containing the jobs that have been scheduled by the site selector.



mSubInfoMap
protected Map mSubInfoMap(Code)
A Map to store all the job(SubInfo) objects indexed by their logical ID found in the dax. This should actually be in the ADag structure.




Constructor Detail
Abstract
public Abstract()(Code)
The Abstract constructor.




Method Detail
addJob
protected void addJob(SubInfo job)(Code)
Adds jobs to the internal map of jobs that is maintained by the clusterer.
Parameters:
  job - the job being added



associate
protected void associate(Partition p, SubInfo job)(Code)
Maps the partition to the corresponding clustered job.
Parameters:
  p - the partition being clustered.
Parameters:
  job - the corresponding clustered job.



clusteredJob
protected SubInfo clusteredJob(Partition p)(Code)
Returns the job corresponding to a partition.
Parameters:
  p - the partition for which the clustered job is reqd. the corresponding job, else null in case of job is not found.



clusteredJob
protected SubInfo clusteredJob(String id)(Code)
Returns the job corresponding to a partition.
Parameters:
  id - the partition id. the corresponding job, else null in case of job is not found.



constructClusteredJobID
protected String constructClusteredJobID(Partition partition)(Code)
Returns the ID for the clustered job corresponding to a partition.
Parameters:
  partition - the partition. the ID of the clustered job



determineClusters
public void determineClusters(Partition partition) throws ClustererException(Code)
It creates a single clustered job for the partition. If there is only one job in the partition, then no clustering happens.
Parameters:
  partition - the partition for which the clusters need to bedetermined.
throws:
  ClustererException - if the clustering executable is not installedon the remote site or if all the jobs in the partition are notscheduled on the same site.



determineInputOutputFiles
abstract public void determineInputOutputFiles(AggregatedJob job)(Code)
Determine the input and output files of the job on the basis of the order of the constituent jobs in the AggregatedJob.
Parameters:
  job - the AggregatedJob
throws:
  ClustererException - in case of error.



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.



getJob
protected SubInfo getJob(String id)(Code)
Returns the job object corresponding to the id of the job.
Parameters:
  id - the id of the job the corresponding job.



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.



order
abstract public List order(Partition p) throws ClustererException(Code)
Returns the nodes in the partition as a List in a particular order. The iterator of the list returns the nodes in the order determined by the clusterer.
Parameters:
  p - the partition whose nodes have to be ordered. an ordered List of String objects that are the ID'sof the nodes.
throws:
  ClustererException - in case of error.



parents
public void parents(String partitionID, List parents) throws ClustererException(Code)
Associates the relations between the partitions with the corresponding relations between the clustered jobs that are created for each Partition.
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 clustered job not being found for a partition.



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.