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


org.griphyn.cPlanner.transfer.Implementation

All known Subclasses:   org.griphyn.cPlanner.transfer.implementation.Abstract,
Implementation
public interface Implementation (Code)
The interface defines the functions that a particular Transfer Implementation should implement. The functions deal with the creation of a TransferJob that can transfer files using the transfer tool to which it refers to.
author:
   Karan Vahi
author:
   Gaurang Mehta
version:
   $Revision: 192 $


Field Summary
final public static  StringTRANSFER_UNIVERSE
     The universe that applies for the transfer jobs.
final public static  StringVERSION
     The version number associated with this API of Code Generator.


Method Summary
public  booleanaddSetXBitJobs(SubInfo computeJob, String txJobName, Collection execFiles, int transferClass)
     Adds the dirmanager job to the workflow, that do a chmod on the files being staged.
public  booleanaddSetXBitJobs(SubInfo computeJob, String txJobName, Collection execFiles, int transferClass, int xbitIndex)
     Adds the dirmanager job to the workflow, that do a chmod on the files being staged.
Parameters:
  computeJob - the computeJob for which the files arebeing staged.
Parameters:
  txJobName - the name of the transfer job that is staging the files.
Parameters:
  execFiles - the executable files that are being staged.
Parameters:
  transferClass - the class of transfer job
Parameters:
  xbitIndex - index to be used for creating the name of XBitJob.
public  voidapplyPriority(TransferJob job)
     Applies priorities to the transfer jobs if a priority is specified in the properties file.
public  booleancheckAndTransferProxy(TransferJob job)
     Determines if there is a need to transfer proxy for the transfer job or not.
public  TransferJobcreateTransferJob(SubInfo job, Collection files, Collection execFiles, String txJobName, int jobClass)
     This constructs the SubInfo object for the transfer node.
public  booleandoesPreserveXBit()
     Returns a boolean indicating whether the transfer protocol being used by the implementation preserves the X Bit or not while staging.
public  StringgetDescription()
     Returns a textual description of the transfer implementation.
public  StringgetSetXBitJobName(String name, int counter)
     Generates the name of the setXBitJob , that is unique for the given workflow.
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  voidsetRefiner(Refiner refiner)
     Sets the callback to the refiner, that has loaded this implementation.
public  booleanuseThirdPartyTransferAlways()
     Return a boolean indicating whether the transfers to be done always in a third party transfer mode.

Field Detail
TRANSFER_UNIVERSE
final public static String TRANSFER_UNIVERSE(Code)
The universe that applies for the transfer jobs. Used for querying to the Site Catalog.



VERSION
final public static String VERSION(Code)
The version number associated with this API of Code Generator.





Method Detail
addSetXBitJobs
public boolean addSetXBitJobs(SubInfo computeJob, String txJobName, Collection execFiles, int transferClass)(Code)
Adds the dirmanager job to the workflow, that do a chmod on the files being staged.
Parameters:
  computeJob - the computeJob for which the files arebeing staged.
Parameters:
  txJobName - the name of the transfer job that is staging the files.
Parameters:
  execFiles - the executable files that are being staged.
Parameters:
  transferClass - the class of transfer job boolean indicating whether any XBitJobs were succesfully added ornot.



addSetXBitJobs
public boolean addSetXBitJobs(SubInfo computeJob, String txJobName, Collection execFiles, int transferClass, int xbitIndex)(Code)
Adds the dirmanager job to the workflow, that do a chmod on the files being staged.
Parameters:
  computeJob - the computeJob for which the files arebeing staged.
Parameters:
  txJobName - the name of the transfer job that is staging the files.
Parameters:
  execFiles - the executable files that are being staged.
Parameters:
  transferClass - the class of transfer job
Parameters:
  xbitIndex - index to be used for creating the name of XBitJob. boolean indicating whether any XBitJobs were succesfully added ornot.



applyPriority
public void applyPriority(TransferJob job)(Code)
Applies priorities to the transfer jobs if a priority is specified in the properties file.
Parameters:
  job - the transfer job .



checkAndTransferProxy
public boolean checkAndTransferProxy(TransferJob job)(Code)
Determines if there is a need to transfer proxy for the transfer job or not. If there is a need to transfer proxy, then the job is modified to create the correct condor commands to transfer the proxy. Proxy is usually transferred if the VDS profile TRANSFER_PROXY is set, or the job is being run in the condor vanilla universe. The proxy is transferred from the submit host (i.e site local). The location is determined from the value of the X509_USER_PROXY profile key associated in the env namespace.
Parameters:
  job - the transfer job . boolean true job was modified to transfer the proxy, elsefalse when job is not modified.



createTransferJob
public TransferJob createTransferJob(SubInfo job, Collection files, Collection execFiles, String txJobName, int jobClass)(Code)
This constructs the SubInfo object for the transfer node. The transfer is supposed to occur at job execution site. It should lead to the creation of the setup chmod jobs to the workflow, that appear as parents to compute jobs in case the transfer implementation does not preserve the X bit on the file being transferred. This is required for staging of executables as part of the workflow.
Parameters:
  job - the SubInfo object for the job, in relation to whichthe transfer node is being added. Either the transfernode can be transferring this jobs input files tothe execution pool, or transferring this job's outputfiles to the output pool.
Parameters:
  files - collection of FileTransfer objectsrepresenting the data files and staged executables to betransferred.
Parameters:
  execFiles - subset collection of the files parameter, that identifiesthe executable files that are being transferred.
Parameters:
  txJobName - the name of transfer node.
Parameters:
  jobClass - the job Class for the newly added job. Can be one of thefollowing:stage-instage-outinter-pool transfer the created TransferJob.



doesPreserveXBit
public boolean doesPreserveXBit()(Code)
Returns a boolean indicating whether the transfer protocol being used by the implementation preserves the X Bit or not while staging. If it does not, then it should extend the Abstract implementation of this interface, that allows for adding of a setup job after the stagein job that changes the X Bit.



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



getSetXBitJobName
public String getSetXBitJobName(String name, int counter)(Code)
Generates the name of the setXBitJob , that is unique for the given workflow. If the implementation preserve the X bit, then it should return null.
Parameters:
  name - the name of the compute job for which the executable isbeing staged.
Parameters:
  counter - the index for the setXBit job. the name of the setXBitJob, null in case the implementationpreserves the XBit.



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.



setRefiner
public void setRefiner(Refiner refiner)(Code)
Sets the callback to the refiner, that has loaded this implementation.
Parameters:
  refiner - the transfer refiner that loaded the implementation.



useThirdPartyTransferAlways
public boolean useThirdPartyTransferAlways()(Code)
Return a boolean indicating whether the transfers to be done always in a third party transfer mode. A value of false, results in the direct or peer to peer transfers being done.

A value of false does not preclude third party transfers. They still can be done, by setting the property "pegasus.transfer.*.thirdparty.sites". boolean indicating whether to always use third party transfersor not.
See Also:   PegasusProperties.getThirdPartySites(String)




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.