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


org.griphyn.cPlanner.namespace.Namespace
   org.griphyn.cPlanner.namespace.Condor

Condor
public class Condor extends Namespace (Code)
This helper class helps in handling the arguments specified in the Condor namespace by the user either through dax or through profiles in pool.
author:
   Karan Vahi
version:
   $Revision: 452 $


Field Summary
final public static  StringARGUMENTS_KEY
     The name of the key that denotes the arguments of the job.
final public static  StringFILE_SYSTEM_DOMAIN_KEY
     The name of the key that denotes the File System Domain.
final public static  StringGLOBUS_UNIVERSE
     The condor universe key value for vanilla universe.
final public static  StringGRID_JOB_TYPE_KEY
     The name of the key that specifies the grid job type.
final public static  StringGRID_UNIVERSE
     The condor universe key value for grid universe.
final public static  StringJOBMANAGER_TYPE_KEY
     The name of the key that specifies the jobmanager type.
final public static  StringLOCAL_UNIVERSE
     The condor universe key value for local universe.
final public static  StringNAMESPACE_NAME
     The name of the namespace that this class implements.
final public static  StringPRIORITY_KEY
     The name of the key that specifies the priority for the job.
final public static  StringREQUIREMENTS_KEY
     The name of the key that denotes the requirements of the job.
final public static  StringSCHEDULER_UNIVERSE
     The condor universe key value for scheduler universe.
final public static  StringSTANDARD_UNIVERSE
     The condor universe key value for standard universe.
final public static  StringTRANSFER_IP_FILES_KEY
     The name of the key that specifies transfer of input files.
final public static  StringTRANSFER_OP_FILES_KEY
     The name of the key that specifies transfer of input files.
final public static  StringUNIVERSE_KEY
     The name of the key that denotes the condor universe key.
final public static  StringVANILLA_UNIVERSE
     The condor universe key value for vanilla universe.
protected  StringmNamespace
     The name of the implementing namespace.

Constructor Summary
public  Condor()
     The default constructor.
public  Condor(Map mp)
    

Method Summary
public  voidaddIPFileForTransfer(String file)
     Adds an input file that is to be transferred from the submit host via the Condor File Transfer Mechanism.
public  voidaddOPFileForTransfer(String file)
     Adds an output file that is to be transferred from the submit host via the Condor File Transfer Mechanism.
public  intcheckKey(String key, String value)
     Additional method to handle the Condor namespace with convenience mappings.
public  voidcheckKeyInNS(PegasusProperties properties, String pool)
     It puts in the namespace specific information specified in the properties file into the namespace.
public  voidcheckKeyInNS(String key, String value)
     This checks the whether a key value pair specified is valid in the current namespace or not by calling the checkKey function and then on the basis of the values returned puts them into the associated map in the class.
public  Objectclone()
     Returns a copy of the current namespace object.
public  voidconstruct(String key, String value)
     Constructs a new element of the format (key=value).
public  booleangetBooleanValue(Object key)
     Returns a boolean value, that a particular key is mapped to in this namespace.
public  voidmerge(Namespace profiles)
     Merge the profiles in the namespace in a controlled manner.
public  StringnamespaceName()
     Returns the name of the namespace associated with the profile implementations.
public  StringtoString()
     Converts the contents of the map into the string that can be put in the Condor file for printing.

Field Detail
ARGUMENTS_KEY
final public static String ARGUMENTS_KEY(Code)
The name of the key that denotes the arguments of the job.



FILE_SYSTEM_DOMAIN_KEY
final public static String FILE_SYSTEM_DOMAIN_KEY(Code)
The name of the key that denotes the File System Domain. Is actually propogated to the expression for the Requirements Key.
See Also:   Condor.REQUIREMENTS_KEY



GLOBUS_UNIVERSE
final public static String GLOBUS_UNIVERSE(Code)
The condor universe key value for vanilla universe.



GRID_JOB_TYPE_KEY
final public static String GRID_JOB_TYPE_KEY(Code)
The name of the key that specifies the grid job type.



GRID_UNIVERSE
final public static String GRID_UNIVERSE(Code)
The condor universe key value for grid universe.



JOBMANAGER_TYPE_KEY
final public static String JOBMANAGER_TYPE_KEY(Code)
The name of the key that specifies the jobmanager type.



LOCAL_UNIVERSE
final public static String LOCAL_UNIVERSE(Code)
The condor universe key value for local universe.



NAMESPACE_NAME
final public static String NAMESPACE_NAME(Code)
The name of the namespace that this class implements.



PRIORITY_KEY
final public static String PRIORITY_KEY(Code)
The name of the key that specifies the priority for the job.



REQUIREMENTS_KEY
final public static String REQUIREMENTS_KEY(Code)
The name of the key that denotes the requirements of the job.



SCHEDULER_UNIVERSE
final public static String SCHEDULER_UNIVERSE(Code)
The condor universe key value for scheduler universe.



STANDARD_UNIVERSE
final public static String STANDARD_UNIVERSE(Code)
The condor universe key value for standard universe.



TRANSFER_IP_FILES_KEY
final public static String TRANSFER_IP_FILES_KEY(Code)
The name of the key that specifies transfer of input files.



TRANSFER_OP_FILES_KEY
final public static String TRANSFER_OP_FILES_KEY(Code)
The name of the key that specifies transfer of input files.



UNIVERSE_KEY
final public static String UNIVERSE_KEY(Code)
The name of the key that denotes the condor universe key.



VANILLA_UNIVERSE
final public static String VANILLA_UNIVERSE(Code)
The condor universe key value for vanilla universe.



mNamespace
protected String mNamespace(Code)
The name of the implementing namespace. It should be one of the valid namespaces always.
See Also:   Namespace.isNamespaceValid(String)




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



Condor
public Condor(Map mp)(Code)
The overloaded constructor
Parameters:
  mp - map containing the profile keys.




Method Detail
addIPFileForTransfer
public void addIPFileForTransfer(String file)(Code)
Adds an input file that is to be transferred from the submit host via the Condor File Transfer Mechanism. It also sets the associated condor keys like when_to_transfer and should_transfer_files.
Parameters:
  file - the path to the file on the submit host.



addOPFileForTransfer
public void addOPFileForTransfer(String file)(Code)
Adds an output file that is to be transferred from the submit host via the Condor File Transfer Mechanism. It also sets the associated condor keys like when_to_transfer and should_transfer_files.
Parameters:
  file - the path to the file on the submit host.



checkKey
public int checkKey(String key, String value)(Code)
Additional method to handle the Condor namespace with convenience mappings. Currently the following keys are not supported keys as they clash with Pegasus internals
 arguments	- not supported, got from the arguments tag in DAX
 copy_to_spool    - supported, limited to LCG sites at present where one needs
 to stage in the kickstart. Pegasus sets it to false by default
 for arch start stuff on the local pool, unless the user
 overrides it.
 environment	- not supported, use env namespace fpr this
 executable       - not supported, this is got from the transformation catalog
 FileSystemDomain - supported, but is propogated to the classad expression
 for requirements.
 globusscheduler  - not supported, Pegasus determines this on the basis of
 it's planning strategy
 globusrsl        - not supported, rsl to populated through Globus namespace.
 grid_type        - OK (like gt2, gt4, condor)
 log              - not supported, as it has to be same for the whole dag
 notification     - OK
 noop_job         - OK (used for synchronizing jobs in graph)
 noop_job_exit_signal - OK
 noop_job_exit_code - OK
 periodic_release - OK
 periodic_remove  - OK
 priority         - OK
 queue		- required thing. always added
 remote_initialdir- not allowed, the working directory is picked up from
 pool file and properties file
 stream_error     - not supported, as it is applicable only for globus jobs.
 However it can be set thru properties.
 stream_output    - not supported, as it is applicable only for globus jobs.
 However it can be set thru properties.
 transfer_executable  - supported, limited to LCG sites at present where one needs
 to stage in the kickstart.
 transfer_input_files - supported, especially used to transfer proxies in
 case of glide in pools.
 universe         - supported, especially used to incorporate glide in pools.
 

Parameters:
  key - is the key within the globus namespace, must be lowercase!
Parameters:
  value - is the value for the given key. MALFORMED_KEYVALID_KEYUNKNOWN_KEYNOT_PERMITTED_KEY



checkKeyInNS
public void checkKeyInNS(PegasusProperties properties, String pool)(Code)
It puts in the namespace specific information specified in the properties file into the namespace. The name of the pool is also passed, as many of the properties specified in the properties file are on a per pool basis. It handles the periodic_remove and periodic_release characteristics for condor jobs.
Parameters:
  properties - the PegasusProperties object containingall the properties that the user specified at variousplaces (like .chimerarc, properties file, command line).
Parameters:
  pool - the pool name where the job is scheduled to run.



checkKeyInNS
public void checkKeyInNS(String key, String value)(Code)
This checks the whether a key value pair specified is valid in the current namespace or not by calling the checkKey function and then on the basis of the values returned puts them into the associated map in the class. In addition it transfers the FILE_SYSTEM_DOMAIN_KEY to the REQUIREMENTS_KEY.
Parameters:
  key - key that needs to be checked in the namespace for validity.
Parameters:
  value - value of the key



clone
public Object clone()(Code)
Returns a copy of the current namespace object. the Cloned object



construct
public void construct(String key, String value)(Code)
Constructs a new element of the format (key=value). All the keys are converted to lower case before storing.
Parameters:
  key - is the left-hand-side
Parameters:
  value - is the right hand side



getBooleanValue
public boolean getBooleanValue(Object key)(Code)
Returns a boolean value, that a particular key is mapped to in this namespace. If the key is mapped to a non boolean value or the key is not populated in the namespace false is returned.
Parameters:
  key - The key whose boolean value you desire. boolean



merge
public void merge(Namespace profiles)(Code)
Merge the profiles in the namespace in a controlled manner. In case of intersection, the new profile value overrides, the existing profile value.
Parameters:
  profiles - the Namespace object containing the profiles.



namespaceName
public String namespaceName()(Code)
Returns the name of the namespace associated with the profile implementations. the namespace name.
See Also:   Condor.NAMESPACE_NAME



toString
public String toString()(Code)
Converts the contents of the map into the string that can be put in the Condor file for printing. the textual description



Fields inherited from org.griphyn.cPlanner.namespace.Namespace
final public static int DEPRECATED_KEY(Code)(Java Doc)
final public static int MALFORMED_KEY(Code)(Java Doc)
final public static int NOT_PERMITTED_KEY(Code)(Java Doc)
final public static int UNKNOWN_KEY(Code)(Java Doc)
final public static int VALID_KEY(Code)(Java Doc)
final public static String VERSION(Code)(Java Doc)
protected Map mProfileMap(Code)(Java Doc)

Methods inherited from org.griphyn.cPlanner.namespace.Namespace
abstract public int checkKey(String key, String value)(Code)(Java Doc)
public void checkKeyInNS(TransformationCatalogEntry entry)(Code)(Java Doc)
public void checkKeyInNS(Profile profile) throws IllegalArgumentException(Code)(Java Doc)
public void checkKeyInNS(List vars)(Code)(Java Doc)
abstract public void checkKeyInNS(PegasusProperties properties, String pool)(Code)(Java Doc)
public void checkKeyInNS(String key, String value)(Code)(Java Doc)
public void construct(String key, String value)(Code)(Java Doc)
public boolean containsKey(Object key)(Code)(Java Doc)
public void deprecatedKey(String key, String value)(Code)(Java Doc)
public Map deprecatedTable()(Code)(Java Doc)
public Object get(Object key)(Code)(Java Doc)
public Iterator getProfileKeyIterator()(Code)(Java Doc)
public static boolean isNamespaceValid(String namespace)(Code)(Java Doc)
public Set keySet()(Code)(Java Doc)
public void malformedKey(String key, String value)(Code)(Java Doc)
abstract public void merge(Namespace profiles)(Code)(Java Doc)
abstract public String namespaceName()(Code)(Java Doc)
public void notPermitted(String key)(Code)(Java Doc)
public Object removeKey(Object key)(Code)(Java Doc)
public void unknownKey(String key, String value)(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.