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


java.lang.Object
   org.griphyn.cPlanner.code.gridstart.Kickstart

Kickstart
public class Kickstart implements GridStart(Code)
This enables a job to be run on the grid, by launching it through kickstart. The kickstart executable is a light-weight program which connects the stdin, stdout and stderr filehandles for VDS jobs on the remote site.

Sitting in between the remote scheduler and the executable, it is possible for kickstart to gather additional information about the executable run-time behavior, including the exit status of jobs.

Kickstart is an executable distributed with VDS that can generally be found at $PEGASUS_HOME/bin/kickstart
author:
   Karan Vahi vahi@isi.edu
version:
   $Revision: 454 $



Field Summary
final public static  StringCLASSNAME
     The basename of the class that is implmenting this.
final public static  StringKICKSTART_CLEANUP
     The environment variable used to the set Kickstart CLEANUP JOB.
final public static  StringKICKSTART_INPUT_SUFFIX
     The suffix for the kickstart input file, that is generated to use invoke at the remote end.
final public static  StringKICKSTART_POSTJOB
     The environment variable used to the set Kickstart POSTJOB.
final public static  StringKICKSTART_PREJOB
     The environment variable used to the set Kickstart PREJOB.
final public static  StringKICKSTART_SETUP
     The environment variable used to the set Kickstart SETUP JOB.
final public static  StringSHORT_NAME
     The SHORTNAME for this implementation.


Method Summary
public  booleancanSetXBit()
     Indicates whether the enabling mechanism can set the X bit on the executable on the remote grid site, in addition to launching it on the remote grid site.
protected  StringconstructCleanupJob(SubInfo job, String workerNodeTmp)
     Constructs a kickstart setup job
Parameters:
  job - the job to be run.
Parameters:
  workerNodeTmp - the worker node tmp to run the job in.
protected  StringconstructPOSTJob(SubInfo job, String headNodeURLPrefix, String headNodeDirectory, String workerNodeDirectory, String slsFile)
     Constructs the post job that fetches sls file, and then invokes transfer again.
protected  StringconstructPREJob(SubInfo job, String headNodeURLPrefix, String headNodeDirectory, String workerNodeDirectory, String slsFile)
     Constructs the prejob that fetches sls file, and then invokes transfer again.
protected  StringconstructSetupJob(SubInfo job, String workerNodeTmp)
     Constructs a kickstart setup job
Parameters:
  job - the job to be run.
Parameters:
  workerNodeTmp - the worker node tmp to run the job in.
public  StringdefaultPOSTScript()
     Returns the SHORT_NAME for the POSTScript implementation that is used to be as default with this GridStart implementation.
public  AggregatedJobenable(AggregatedJob aggJob, Collection jobs)
     Enables a collection of jobs and puts them into an AggregatedJob. The assumption here is that all the jobs are being enabled by the same implementation.
public  booleanenable(SubInfo job, boolean isGlobusJob)
     Enables a job to run on the grid by launching it through kickstart. Does the stdio, and stderr handling of the job to be run on the grid. It modifies the job description, and also constructs all the valid option to be passed to kickstart for launching the executable.
Parameters:
  job - the SubInfo object containing the job descriptionof the job that has to be enabled on the grid.
Parameters:
  isGlobusJob - is true, if the job generated aline universe = globus, and thus runs remotely.Set to false, if the job runs on the submithost in any way.
protected  booleanenable(SubInfo job, boolean isGlobusJob, boolean stat, boolean addPostScript)
     Enables a job to run on the grid by launching it through kickstart. Does the stdio, and stderr handling of the job to be run on the grid. It modifies the job description, and also constructs all the valid option to be passed to kickstart for launching the executable.
Parameters:
  job - the SubInfo object containing the job descriptionof the job that has to be enabled on the grid.
Parameters:
  isGlobusJob - is true, if the job generated aline universe = globus, and thus runs remotely.Set to false, if the job runs on the submithost in any way.
Parameters:
  stat - boolean indicating whether to generate the lof filesfor kickstart stat option or not.
Parameters:
  addPostScript - boolean indicating whether to add a postscript or not.
protected  voidenableForWorkerNodeExecution(SubInfo job, StringBuffer args)
     Enables a job for worker node execution, by calling out to the SLS interface to do the second level staging.
public  StringgenerateListofFilenamesFile(Set files, String basename)
     Writes out the list of filenames file for the job.
public  StringgetVDSKeyValue()
     Returns the value of the vds profile with key as VDS.GRIDSTART_KEY, that would result in the loading of this particular implementation.
protected  StringhandleTransferOfExecutable(SubInfo job, String path)
     It changes the paths to the executable depending on whether we want to transfer the executable or not.
public  voidinitialize(PegasusBag bag, ADag dag)
     Initializes the GridStart implementation.
public  StringshortDescribe()
     Returns a short textual description in the form of the name of the class.

Field Detail
CLASSNAME
final public static String CLASSNAME(Code)
The basename of the class that is implmenting this. Could have been determined by reflection.



KICKSTART_CLEANUP
final public static String KICKSTART_CLEANUP(Code)
The environment variable used to the set Kickstart CLEANUP JOB.



KICKSTART_INPUT_SUFFIX
final public static String KICKSTART_INPUT_SUFFIX(Code)
The suffix for the kickstart input file, that is generated to use invoke at the remote end.



KICKSTART_POSTJOB
final public static String KICKSTART_POSTJOB(Code)
The environment variable used to the set Kickstart POSTJOB.



KICKSTART_PREJOB
final public static String KICKSTART_PREJOB(Code)
The environment variable used to the set Kickstart PREJOB.



KICKSTART_SETUP
final public static String KICKSTART_SETUP(Code)
The environment variable used to the set Kickstart SETUP JOB.



SHORT_NAME
final public static String SHORT_NAME(Code)
The SHORTNAME for this implementation.





Method Detail
canSetXBit
public boolean canSetXBit()(Code)
Indicates whether the enabling mechanism can set the X bit on the executable on the remote grid site, in addition to launching it on the remote grid site. true indicating Kickstart can set the X bit or not.



constructCleanupJob
protected String constructCleanupJob(SubInfo job, String workerNodeTmp)(Code)
Constructs a kickstart setup job
Parameters:
  job - the job to be run.
Parameters:
  workerNodeTmp - the worker node tmp to run the job in. String



constructPOSTJob
protected String constructPOSTJob(SubInfo job, String headNodeURLPrefix, String headNodeDirectory, String workerNodeDirectory, String slsFile)(Code)
Constructs the post job that fetches sls file, and then invokes transfer again.
Parameters:
  job - the job for which the prejob is being created
Parameters:
  headNodeURLPrefix - String
Parameters:
  headNodeDirectory - String
Parameters:
  workerNodeDirectory - String
Parameters:
  slsFile - String String containing the postscript invocation



constructPREJob
protected String constructPREJob(SubInfo job, String headNodeURLPrefix, String headNodeDirectory, String workerNodeDirectory, String slsFile)(Code)
Constructs the prejob that fetches sls file, and then invokes transfer again.
Parameters:
  job - the job for which the prejob is being created
Parameters:
  headNodeURLPrefix - String
Parameters:
  headNodeDirectory - String
Parameters:
  workerNodeDirectory - String
Parameters:
  slsFile - String String containing the prescript invocation



constructSetupJob
protected String constructSetupJob(SubInfo job, String workerNodeTmp)(Code)
Constructs a kickstart setup job
Parameters:
  job - the job to be run.
Parameters:
  workerNodeTmp - the worker node tmp to run the job in. String



defaultPOSTScript
public String defaultPOSTScript()(Code)
Returns the SHORT_NAME for the POSTScript implementation that is used to be as default with this GridStart implementation. the identifier for the ExitPOST POSTScript implementation.
See Also:   POSTScript.shortDescribe



enable
public AggregatedJob enable(AggregatedJob aggJob, Collection jobs)(Code)
Enables a collection of jobs and puts them into an AggregatedJob. The assumption here is that all the jobs are being enabled by the same implementation. It enables the jobs and puts them into the AggregatedJob that is passed to it. However, to create a valid single XML file, it suppresses the header creation for all but the first job.
Parameters:
  aggJob - the AggregatedJob into which the collection has to beintegrated.
Parameters:
  jobs - the collection of jobs (SubInfo) that need to be enabled. the AggregatedJob containing the enabled jobs.
See Also:   Kickstart.enable(SubInfo,boolean)



enable
public boolean enable(SubInfo job, boolean isGlobusJob)(Code)
Enables a job to run on the grid by launching it through kickstart. Does the stdio, and stderr handling of the job to be run on the grid. It modifies the job description, and also constructs all the valid option to be passed to kickstart for launching the executable.
Parameters:
  job - the SubInfo object containing the job descriptionof the job that has to be enabled on the grid.
Parameters:
  isGlobusJob - is true, if the job generated aline universe = globus, and thus runs remotely.Set to false, if the job runs on the submithost in any way. boolean true if enabling was successful,else false in case whenthe path to kickstart could not be determined on the site wherethe job is scheduled.



enable
protected boolean enable(SubInfo job, boolean isGlobusJob, boolean stat, boolean addPostScript)(Code)
Enables a job to run on the grid by launching it through kickstart. Does the stdio, and stderr handling of the job to be run on the grid. It modifies the job description, and also constructs all the valid option to be passed to kickstart for launching the executable.
Parameters:
  job - the SubInfo object containing the job descriptionof the job that has to be enabled on the grid.
Parameters:
  isGlobusJob - is true, if the job generated aline universe = globus, and thus runs remotely.Set to false, if the job runs on the submithost in any way.
Parameters:
  stat - boolean indicating whether to generate the lof filesfor kickstart stat option or not.
Parameters:
  addPostScript - boolean indicating whether to add a postscript or not. boolean true if enabling was successful,else false in case whenthe path to kickstart could not be determined on the site wherethe job is scheduled.



enableForWorkerNodeExecution
protected void enableForWorkerNodeExecution(SubInfo job, StringBuffer args)(Code)
Enables a job for worker node execution, by calling out to the SLS interface to do the second level staging. Also adds the appropriate prejob/setup job/post/cleanup jobs to the job if required.
Parameters:
  job - the job to be enabled
Parameters:
  args - the arguments constructed so far.



generateListofFilenamesFile
public String generateListofFilenamesFile(Set files, String basename)(Code)
Writes out the list of filenames file for the job.
Parameters:
  files - the list of PegasusFile objects contains the fileswhose stat information is required.
Parameters:
  basename - the basename of the file that is to be created the full path to lof file created, else null if no file is written out.



getVDSKeyValue
public String getVDSKeyValue()(Code)
Returns the value of the vds profile with key as VDS.GRIDSTART_KEY, that would result in the loading of this particular implementation. It is usually the name of the implementing class without the package name. the value of the profile key.
See Also:   org.griphyn.cPlanner.namespace.VDS.GRIDSTART_KEY



handleTransferOfExecutable
protected String handleTransferOfExecutable(SubInfo job, String path)(Code)
It changes the paths to the executable depending on whether we want to transfer the executable or not. If the transfer_executable is set to true, then the executable needs to be shipped from the submit host meaning the local pool. This function changes the path of the executable to the one on the local pool, so that it can be shipped.
Parameters:
  job - the SubInfo containing the job description.
Parameters:
  path - the path to kickstart on the remote compute site. the path that needs to be set as the executable



initialize
public void initialize(PegasusBag bag, ADag dag)(Code)
Initializes the GridStart implementation.
Parameters:
  bag - the bag of objects that is used for initialization.
Parameters:
  dag - the concrete dag so far.



shortDescribe
public String shortDescribe()(Code)
Returns a short textual description in the form of the name of the class. short textual description.



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.