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


java.lang.Object
   org.griphyn.cPlanner.transfer.sls.Transfer

Transfer
public class Transfer implements SLS(Code)
This uses the transfer executable distributed with Pegasus to do the second level staging.
author:
   Karan Vahi
version:
   $Revision: 414 $


Field Summary
final public static  StringDERIVATION_NAME
     The name of the underlying derivation.
final public static  StringDERIVATION_NAMESPACE
     The derivation namespace for for the transfer job.
final public static  StringDERIVATION_VERSION
     The derivation version number for the transfer job.
final public static  StringDESCRIPTION
     A short description of the transfer implementation.
final public static  StringTRANSFORMATION_NAME
     The name of the underlying transformation that is queried for in the Transformation Catalog.
final public static  StringTRANSFORMATION_NAMESPACE
     The transformation namespace for the transfer job.
final public static  StringTRANSFORMATION_VERSION
     The version number for the transfer job.
protected  StringmLocalURLPrefix
     The local url prefix for the submit host.
protected  StringmLocalUserProxy
     The path to local user proxy.
protected  StringmLocalUserProxyBasename
    
protected  LogManagermLogger
     The handle to the logging manager.
protected  PegasusPropertiesmProps
     The handle to the properties.
protected  PoolInfoProvidermSiteHandle
     The handle to the site catalog.
protected  TransformationCatalogmTCHandle
     The handle to the transformation catalog.

Constructor Summary
public  Transfer()
     The default constructor.

Method Summary
protected  TransformationCatalogEntrydefaultTCEntry(String namespace, String name, String version, String site)
     Returns a default TC entry to be used in case entry is not found in the transformation catalog.
Parameters:
  namespace - the namespace of the transfer transformation
Parameters:
  name - the logical name of the transfer transformation
Parameters:
  version - the version of the transfer transformation
Parameters:
  site - the site for which the default entry is required.
public  booleandoesCondorModifications()
     Returns a boolean whether the SLS implementation does a condor based modification or not.
public  FilegenerateSLSInputFile(SubInfo job, String fileName, String submitDir, String headNodeDirectory, String workerNodeDirectory)
     Generates a second level staging file of the input files to the worker node directory.
public  FilegenerateSLSOutputFile(SubInfo job, String fileName, String submitDir, String headNodeDirectory, String workerNodeDirectory)
     Generates a second level staging file of the input files to the worker node directory.
protected  ListgetEnvironmentVariables(String site)
     Returns the environment profiles that are required for the default entry to sensibly work.
Parameters:
  site - the site where the job is going to run.
protected  StringgetPathToUserProxy()
     Returns the path to the user proxy from the pool configuration file and the properties file.
public  StringgetSLSInputLFN(SubInfo job)
     Returns the LFN of sls input file.
public  StringgetSLSOutputLFN(SubInfo job)
     Returns the LFN of sls output file.
public  TransformationCatalogEntrygetTransformationCatalogEntry(String siteHandle)
     Retrieves the transformation catalog entry for the executable that is being used to transfer the files in the implementation.
Parameters:
  siteHandle - the handle of the site where the transformation isto be searched.
public  voidinitialize(PegasusBag bag)
     Initializes the SLS implementation.
Parameters:
  bag - the bag of objects.
public  StringinvocationString(SubInfo job, File slsFile)
     Constructs a command line invocation for a job, with a given sls file. The SLS maybe null.
public  booleanmodifyJobForFirstLevelStaging(SubInfo job, String submitDir, String slsInputLFN, String slsOutputLFN)
     Modifies a job for the first level staging to headnode.This is to add any files that needs to be staged to the head node for a job specific to the SLS implementation.
public  booleanmodifyJobForWorkerNodeExecution(SubInfo job, String headNodeURLPrefix, String headNodeDirectory, String workerNodeDirectory)
     Modifies a compute job for second level staging.
public  booleanneedsSLSInput(SubInfo job)
     Returns a boolean indicating whether it will an input file for a job to do the transfers.
public  booleanneedsSLSOutput(SubInfo job)
     Returns a boolean indicating whether it will an output file for a job to do the transfers.

Field Detail
DERIVATION_NAME
final public static String DERIVATION_NAME(Code)
The name of the underlying derivation.



DERIVATION_NAMESPACE
final public static String DERIVATION_NAMESPACE(Code)
The derivation namespace for for the transfer job.



DERIVATION_VERSION
final public static String DERIVATION_VERSION(Code)
The derivation version number for the transfer job.



DESCRIPTION
final public static String DESCRIPTION(Code)
A short description of the transfer implementation.



TRANSFORMATION_NAME
final public static String TRANSFORMATION_NAME(Code)
The name of the underlying transformation that is queried for in the Transformation Catalog.



TRANSFORMATION_NAMESPACE
final public static String TRANSFORMATION_NAMESPACE(Code)
The transformation namespace for the transfer job.



TRANSFORMATION_VERSION
final public static String TRANSFORMATION_VERSION(Code)
The version number for the transfer job.



mLocalURLPrefix
protected String mLocalURLPrefix(Code)
The local url prefix for the submit host.



mLocalUserProxy
protected String mLocalUserProxy(Code)
The path to local user proxy.



mLocalUserProxyBasename
protected String mLocalUserProxyBasename(Code)
The basename of the proxy



mLogger
protected LogManager mLogger(Code)
The handle to the logging manager.



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



mSiteHandle
protected PoolInfoProvider mSiteHandle(Code)
The handle to the site catalog.



mTCHandle
protected TransformationCatalog mTCHandle(Code)
The handle to the transformation catalog.




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




Method Detail
defaultTCEntry
protected TransformationCatalogEntry defaultTCEntry(String namespace, String name, String version, String site)(Code)
Returns a default TC entry to be used in case entry is not found in the transformation catalog.
Parameters:
  namespace - the namespace of the transfer transformation
Parameters:
  name - the logical name of the transfer transformation
Parameters:
  version - the version of the transfer transformation
Parameters:
  site - the site for which the default entry is required. the default entry.



doesCondorModifications
public boolean doesCondorModifications()(Code)
Returns a boolean whether the SLS implementation does a condor based modification or not. By condor based modification we mean whether it uses condor specific classads to achieve the second level staging or not. false



generateSLSInputFile
public File generateSLSInputFile(SubInfo job, String fileName, String submitDir, String headNodeDirectory, String workerNodeDirectory)(Code)
Generates a second level staging file of the input files to the worker node directory.
Parameters:
  job - job for which the file is being created
Parameters:
  fileName - name of the file that needs to be written out.
Parameters:
  submitDir - submit directory where it has to be written out.
Parameters:
  headNodeDirectory - directory on the head node of the compute site.
Parameters:
  workerNodeDirectory - worker node directory the full path to lof file created, else null if no file iswritten out.



generateSLSOutputFile
public File generateSLSOutputFile(SubInfo job, String fileName, String submitDir, String headNodeDirectory, String workerNodeDirectory)(Code)
Generates a second level staging file of the input files to the worker node directory.
Parameters:
  job - the job for which the file is being created
Parameters:
  fileName - the name of the file that needs to be written out.
Parameters:
  submitDir - the submit directory where it has to be written out.
Parameters:
  headNodeDirectory - the directory on the head node of thecompute site.
Parameters:
  workerNodeDirectory - the worker node directory the full path to lof file created, else null if no file iswritten out.



getEnvironmentVariables
protected List getEnvironmentVariables(String site)(Code)
Returns the environment profiles that are required for the default entry to sensibly work.
Parameters:
  site - the site where the job is going to run. List of environment variables, else null in case where therequired environment variables could not be found.



getPathToUserProxy
protected String getPathToUserProxy()(Code)
Returns the path to the user proxy from the pool configuration file and the properties file. The value in the properties file overrides the value from the pool configuration file. path to user proxy on local pool.null if no path is found.



getSLSInputLFN
public String getSLSInputLFN(SubInfo job)(Code)
Returns the LFN of sls input file.
Parameters:
  job - SubInfo the name of the sls input file.



getSLSOutputLFN
public String getSLSOutputLFN(SubInfo job)(Code)
Returns the LFN of sls output file.
Parameters:
  job - SubInfo the name of the sls input file.



getTransformationCatalogEntry
public TransformationCatalogEntry getTransformationCatalogEntry(String siteHandle)(Code)
Retrieves the transformation catalog entry for the executable that is being used to transfer the files in the implementation.
Parameters:
  siteHandle - the handle of the site where the transformation isto be searched. the transformation catalog entry if found, else null.



initialize
public void initialize(PegasusBag bag)(Code)
Initializes the SLS implementation.
Parameters:
  bag - the bag of objects. Contains access to catalogs etc.



invocationString
public String invocationString(SubInfo job, File slsFile)(Code)
Constructs a command line invocation for a job, with a given sls file. The SLS maybe null. In the case where SLS impl does not read from a file, it is advised to create a file in generateSLSXXX methods, and then read the file in this function and put it on the command line.
Parameters:
  job - the job that is being sls enabled
Parameters:
  slsFile - the slsFile can be null invocation string



modifyJobForFirstLevelStaging
public boolean modifyJobForFirstLevelStaging(SubInfo job, String submitDir, String slsInputLFN, String slsOutputLFN)(Code)
Modifies a job for the first level staging to headnode.This is to add any files that needs to be staged to the head node for a job specific to the SLS implementation. If any file needs to be added, a FileTransfer object should be created and added as an input or an output file.
Parameters:
  job - the job
Parameters:
  submitDir - the submit directory
Parameters:
  slsInputLFN - the sls input file if required, that is used forstaging in from the head node to worker node directory.
Parameters:
  slsOutputLFN - the sls output file if required, that is usedfor staging in from the head node to worker node directory. boolean



modifyJobForWorkerNodeExecution
public boolean modifyJobForWorkerNodeExecution(SubInfo job, String headNodeURLPrefix, String headNodeDirectory, String workerNodeDirectory)(Code)
Modifies a compute job for second level staging. The only modification it does is add the appropriate environment varialbes to the job
Parameters:
  job - the job to be modified.
Parameters:
  headNodeURLPrefix - the url prefix for the server on the headnode
Parameters:
  headNodeDirectory - the directory on the headnode, where theinput data is read from and the output data written out.
Parameters:
  workerNodeDirectory - the directory in the worker node tmp boolean indicating whether job was successfully modified ornot.



needsSLSInput
public boolean needsSLSInput(SubInfo job)(Code)
Returns a boolean indicating whether it will an input file for a job to do the transfers. Transfer reads from stdin the file transfers that it needs to do. Always returns true, as we need to transfer the proxy always.
Parameters:
  job - the job being detected. true



needsSLSOutput
public boolean needsSLSOutput(SubInfo job)(Code)
Returns a boolean indicating whether it will an output file for a job to do the transfers. Transfer reads from stdin the file transfers that it needs to do.
Parameters:
  job - the job being detected. true



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.