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


java.lang.Object
   org.griphyn.cPlanner.cluster.aggregator.Abstract
      org.griphyn.cPlanner.cluster.aggregator.MPIExec

MPIExec
public class MPIExec extends Abstract (Code)
This class aggregates the smaller jobs in a manner such that they are launched at remote end, by mpiexec on n nodes where n is the nodecount associated with the aggregated job that is being lauched by mpiexec. The executable mpiexec is a VDS tool distributed in the VDS worker package, and can be usually found at $PEGASUS_HOME/bin/mpiexec.
author:
   Karan Vahi vahi@isi.edu
version:
   $Revision: 450 $


Field Summary
final public static  StringCOLLAPSE_LOGICAL_NAME
     The logical name of the transformation that is able to run multiple jobs sequentially.

Constructor Summary
public  MPIExec()
     The default constructor.

Method Summary
public  booleanabortOnFristJobFailure()
     Returns a boolean indicating whether to fail the aggregated job on detecting the first failure during execution of constituent jobs.
public  StringaggregatedJobArguments(AggregatedJob job)
     Returns the arguments with which the AggregatedJob needs to be invoked with.
public  AggregatedJobconstruct(List jobs, String name, String id)
     Constructs a new aggregated job that contains all the jobs passed to it. The new aggregated job, appears as a single job in the workflow and replaces the jobs it contains in the workflow.

The aggregated job is executed at a site, using mpiexec that executes each of the smaller jobs in the aggregated job on n number of nodes where n is the nodecount associated with the job. All the sub jobs are in turn launched via kickstart if kickstart is installed at the site where the job resides.
Parameters:
  jobs - the list of SubInfo objects that need to becollapsed.

protected  AggregatedJobenable(AggregatedJob mergedJob, List jobs)
     Enables the constitutent jobs that make up a aggregated job.
public  booleanentryNotInTC(String site)
     Determines whether there is NOT an entry in the transformation catalog for the job aggregator executable on a particular site.
Parameters:
  site - the site at which existence check is required.
public  StringgetCollapserLFN()
     Returns the logical name of the transformation that is used to collapse the jobs.
public  voidinitialize(ADag dag, PegasusBag bag)
    
public  voidsetAbortOnFirstJobFailure(boolean fail)
     Setter method to indicate , failure on first consitutent job should result in the abort of the whole aggregated job.

Field Detail
COLLAPSE_LOGICAL_NAME
final public static String COLLAPSE_LOGICAL_NAME(Code)
The logical name of the transformation that is able to run multiple jobs sequentially.




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




Method Detail
abortOnFristJobFailure
public boolean abortOnFristJobFailure()(Code)
Returns a boolean indicating whether to fail the aggregated job on detecting the first failure during execution of constituent jobs. boolean indicating whether to fail or not.



aggregatedJobArguments
public String aggregatedJobArguments(AggregatedJob job)(Code)
Returns the arguments with which the AggregatedJob needs to be invoked with. At present any empty argument string is returned.
Parameters:
  job - the AggregatedJob for which the arguments haveto be constructed. argument string



construct
public AggregatedJob construct(List jobs, String name, String id)(Code)
Constructs a new aggregated job that contains all the jobs passed to it. The new aggregated job, appears as a single job in the workflow and replaces the jobs it contains in the workflow.

The aggregated job is executed at a site, using mpiexec that executes each of the smaller jobs in the aggregated job on n number of nodes where n is the nodecount associated with the job. All the sub jobs are in turn launched via kickstart if kickstart is installed at the site where the job resides.
Parameters:
  jobs - the list of SubInfo objects that need to becollapsed. All the jobs being collapsed should be scheduledat the same pool, to maintain correct semantics.
Parameters:
  name - the logical name of the jobs in the list passed to thisfunction.
Parameters:
  id - the id that is given to the new job. the AggregatedJob object corresponding to the aggregatedjob containing the jobs passed as List in the input,null if the list of jobs is empty




enable
protected AggregatedJob enable(AggregatedJob mergedJob, List jobs)(Code)
Enables the constitutent jobs that make up a aggregated job. Makes sure that they all are enabled via no kickstart
Parameters:
  mergedJob - the clusteredJob
Parameters:
  jobs - the constitutent jobs AggregatedJob



entryNotInTC
public boolean entryNotInTC(String site)(Code)
Determines whether there is NOT an entry in the transformation catalog for the job aggregator executable on a particular site.
Parameters:
  site - the site at which existence check is required. boolean true if an entry does not exists, false otherwise.



getCollapserLFN
public String getCollapserLFN()(Code)
Returns the logical name of the transformation that is used to collapse the jobs. the the logical name of the collapser executable.
See Also:   MPIExec.COLLAPSE_LOGICAL_NAME



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



setAbortOnFirstJobFailure
public void setAbortOnFirstJobFailure(boolean fail)(Code)
Setter method to indicate , failure on first consitutent job should result in the abort of the whole aggregated job. Ignores any value passed, as MPIExec does not handle it for time being.
Parameters:
  fail - indicates whether to abort or not .



Fields inherited from org.griphyn.cPlanner.cluster.aggregator.Abstract
final public static String DERIVATION_NAMESPACE(Code)(Java Doc)
final public static String DERIVATION_VERSION(Code)(Java Doc)
final public static String FAT_JOB_PREFIX(Code)(Java Doc)
final public static String TRANSFORMATION_NAMESPACE(Code)(Java Doc)
final public static String TRANSFORMATION_VERSION(Code)(Java Doc)
protected PegasusBag mBag(Code)(Java Doc)
protected ADag mClusteredADag(Code)(Java Doc)
protected String mDirectory(Code)(Java Doc)
protected GridStartFactory mGridStartFactory(Code)(Java Doc)
protected LogManager mLogger(Code)(Java Doc)
protected PegasusProperties mProps(Code)(Java Doc)
protected PoolInfoProvider mSiteHandle(Code)(Java Doc)
protected TransformationCatalog mTCHandle(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.cluster.aggregator.Abstract
abstract public String aggregatedJobArguments(AggregatedJob job)(Code)(Java Doc)
public AggregatedJob construct(List jobs, String name, String id)(Code)(Java Doc)
protected AggregatedJob construct(List jobs, String name, String id, String mergeLFN)(Code)(Java Doc)
abstract protected AggregatedJob enable(AggregatedJob mergedJob, List jobs)(Code)(Java Doc)
protected boolean entryNotInTC(String namespace, String name, String version, String site)(Code)(Java Doc)
public static String getCompleteTranformationName(String name)(Code)(Java Doc)
protected TransformationCatalogEntry getTCEntry(SubInfo job)(Code)(Java Doc)
public void initialize(ADag dag, PegasusBag bag)(Code)(Java Doc)
protected void setDirectory(String directory)(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.