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


java.lang.Object
   org.griphyn.cPlanner.transfer.implementation.Abstract

All known Subclasses:   org.griphyn.cPlanner.transfer.implementation.Windward,  org.griphyn.cPlanner.transfer.implementation.AbstractMultipleFTPerXFERJob,  org.griphyn.cPlanner.transfer.implementation.AbstractSingleFTPerXFERJob,
Abstract
abstract public class Abstract implements Implementation(Code)
An abstract implementation that implements some of the common functions in the Implementation Interface that are required by all the implementations.
author:
   Karan Vahi
version:
   $Revision: 192 $


Field Summary
final public static  StringCHANGE_XBIT_TRANSFORMATION
     The logical name of the transformation that creates directories on the remote execution pools.
final public static  StringNOOP_PREFIX
     The prefix for the NoOP jobs that are created.
final public static  StringSET_XBIT_PREFIX
     The prefix for the jobs which are added to set X bit for the staged executables.
final public static  StringXBIT_DERIVATION_NS
     The derivation namespace for the setXBit jobs.
final public static  StringXBIT_DERIVATION_VERSION
     The version number for the derivations for setXBit jobs.
final public static  StringXBIT_TRANSFORMATION_NS
     The transformation namespace for the setXBit jobs.
final public static  StringXBIT_TRANSFORMATION_VERSION
     The version number for the derivations for setXBit jobs.
protected  SetmDisabledChmodSites
     The set of sites for which chmod job creation has to be disabled while doing executable staging.
protected  StringmLocalUserProxy
     The path to the user proxy on the submit host (local pool), that is picked up for use in transfer of proxies.
protected  StringmLocalUserProxyBasename
     The basename of the user proxy , that is picked up for use in transfer of proxies.
protected  LogManagermLogger
     The logging object which is used to log all the messages.
protected  PlannerOptionsmPOptions
     Contains the various options to the Planner as passed by the user at runtime.
protected  PegasusPropertiesmProps
     The handle to the properties object holding the properties relevant to Pegasus.
protected  RefinermRefiner
     The handle to the refiner that loaded this implementation.
protected  PoolInfoProvidermSCHandle
     The handle to the Site Catalog.
protected  TransformationCatalogmTCHandle
     The handle to the Transformation Catalog.

Constructor Summary
public  Abstract(PegasusProperties properties, PlannerOptions options)
     The overloaded constructor, that is called by the Factory to load the class.

Method Summary
protected  booleanaddSetXBitJobs(SubInfo computeJob, SubInfo txJob, Collection execFiles)
     Adds the dirmanager to the workflow, that do a chmod on the files being staged.
Parameters:
  computeJob - the computeJob for which the files are being staged.
Parameters:
  txJob - the transfer job that is staging the files.
Parameters:
  execFiles - the executable files that are being staged.
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.
protected  voidconstruct(SubInfo job, String key, String value)
     Constructs a condor variable in the condor profile namespace associated with the job.
public  SubInfocreateNoOPJob(String name)
     It creates a NoOP job that runs on the submit host.
protected  SubInfocreateSetXBitJob(FileTransfer file, String name)
     Creates a dirmanager job, that does a chmod on the file being staged. The file being staged should be of type executable.
protected  SetdetermineDisabledChmodSites(String sites)
     Builds up a set of disabled chmod sites
Parameters:
  sites - comma separated list of sites.
protected  booleandisableChmodJobCreation(String site)
     Returns a boolean indicating whether to disable chmod job creation for a site or not.
public  StringgetNOOPJobName(String name, int counter)
     Generates the name of the noop job , that is unique for the given workflow.
Parameters:
  name - the name of the compute job
Parameters:
  counter - the index for the noop job.
protected  StringgetPathToUserProxy()
     Returns the path to the user proxy from the pool configuration file and the properties file.
protected  StringgetPriority(TransferJob job)
     Returns the priority for the transfer job as specified in the properties file.
Parameters:
  job - the Transfer job.
public  StringgetSetXBitJobName(String name, int counter)
     Generates the name of the setXBitJob , that is unique for the given workflow.
Parameters:
  name - the name of the compute job
Parameters:
  counter - the index for the setXBit job.
public  voidsetRefiner(Refiner refiner)
     Sets the callback to the refiner, that has loaded this implementation.

Field Detail
CHANGE_XBIT_TRANSFORMATION
final public static String CHANGE_XBIT_TRANSFORMATION(Code)
The logical name of the transformation that creates directories on the remote execution pools.



NOOP_PREFIX
final public static String NOOP_PREFIX(Code)
The prefix for the NoOP jobs that are created.



SET_XBIT_PREFIX
final public static String SET_XBIT_PREFIX(Code)
The prefix for the jobs which are added to set X bit for the staged executables.



XBIT_DERIVATION_NS
final public static String XBIT_DERIVATION_NS(Code)
The derivation namespace for the setXBit jobs.



XBIT_DERIVATION_VERSION
final public static String XBIT_DERIVATION_VERSION(Code)
The version number for the derivations for setXBit jobs.



XBIT_TRANSFORMATION_NS
final public static String XBIT_TRANSFORMATION_NS(Code)
The transformation namespace for the setXBit jobs.



XBIT_TRANSFORMATION_VERSION
final public static String XBIT_TRANSFORMATION_VERSION(Code)
The version number for the derivations for setXBit jobs.



mDisabledChmodSites
protected Set mDisabledChmodSites(Code)
The set of sites for which chmod job creation has to be disabled while doing executable staging.



mLocalUserProxy
protected String mLocalUserProxy(Code)
The path to the user proxy on the submit host (local pool), that is picked up for use in transfer of proxies.



mLocalUserProxyBasename
protected String mLocalUserProxyBasename(Code)
The basename of the user proxy , that is picked up for use in transfer of proxies.



mLogger
protected LogManager mLogger(Code)
The logging object which is used to log all the messages.
See Also:   org.griphyn.cPlanner.common.LogManager



mPOptions
protected PlannerOptions mPOptions(Code)
Contains the various options to the Planner as passed by the user at runtime.



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



mRefiner
protected Refiner mRefiner(Code)
The handle to the refiner that loaded this implementation.



mSCHandle
protected PoolInfoProvider mSCHandle(Code)
The handle to the Site Catalog. It is instantiated in this class.



mTCHandle
protected TransformationCatalog mTCHandle(Code)
The handle to the Transformation Catalog. It must be instantiated in the implementing class




Constructor Detail
Abstract
public Abstract(PegasusProperties properties, PlannerOptions options)(Code)
The overloaded constructor, that is called by the Factory to load the class.
Parameters:
  properties - the properties object.
Parameters:
  options - the options passed to the Planner.




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



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.



construct
protected void construct(SubInfo job, String key, String value)(Code)
Constructs a condor variable in the condor profile namespace associated with the job. Overrides any preexisting key values.
Parameters:
  job - contains the job description.
Parameters:
  key - the key of the profile.
Parameters:
  value - the associated value.



createNoOPJob
public SubInfo createNoOPJob(String name)(Code)
It creates a NoOP job that runs on the submit host.
Parameters:
  name - the name to be assigned to the noop job the noop job.



createSetXBitJob
protected SubInfo createSetXBitJob(FileTransfer file, String name)(Code)
Creates a dirmanager job, that does a chmod on the file being staged. The file being staged should be of type executable. Though no explicit check is made for that. The staged file is the one whose X bit would be set on execution of this job. The site at which job is executed, is determined from the site associated with the destination URL.
Parameters:
  file - the FileTransfer containing the file that hasto be X Bit Set.
Parameters:
  name - the name that has to be assigned to the job. the chmod job, else null if it is not able to be createdfor some reason.



determineDisabledChmodSites
protected Set determineDisabledChmodSites(String sites)(Code)
Builds up a set of disabled chmod sites
Parameters:
  sites - comma separated list of sites. a Set containing the site names.



disableChmodJobCreation
protected boolean disableChmodJobCreation(String site)(Code)
Returns a boolean indicating whether to disable chmod job creation for a site or not.
Parameters:
  site - the name of the site boolean



getNOOPJobName
public String getNOOPJobName(String name, int counter)(Code)
Generates the name of the noop job , that is unique for the given workflow.
Parameters:
  name - the name of the compute job
Parameters:
  counter - the index for the noop job. the name of the setXBitJob .



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.



getPriority
protected String getPriority(TransferJob job)(Code)
Returns the priority for the transfer job as specified in the properties file.
Parameters:
  job - the Transfer job. the priority of the job as determined from properties, can be nullif invalid value passed or property not set.



getSetXBitJobName
public String getSetXBitJobName(String name, int counter)(Code)
Generates the name of the setXBitJob , that is unique for the given workflow.
Parameters:
  name - the name of the compute job
Parameters:
  counter - the index for the setXBit job. the name of the setXBitJob .



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.



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.