Java Doc for VDS.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.VDS

VDS
public class VDS extends Namespace (Code)
A Planner specific namespace. It defines profiles that are used to fine tune Pegasus behaviour on a per job basis if required.
author:
   Karan Vahi
author:
   Gaurang Mehta
version:
   $Revision: 299 $


Field Summary
final public static  StringBUNDLE_KEY
     The name of the key that if set, determines the number of super jobs that are made corresponding to a logical transformation and an execution pool.
final public static  StringBUNDLE_STAGE_IN_KEY
     The name of the key that determines the bundling parameter for the stagein transfer node.
final public static  StringBUNDLE_STAGE_OUT_KEY
     The name of the key that determines the bundling parameter for the stageout transfer node.
final public static  StringCHAIN_STAGE_IN_KEY
     The name of the key that determines the number of chains of stagein nodes that are to be created per site.
final public static  StringCHANGE_DIR_KEY
     The name of the profile key that triggers the kickstart to change directory before launching an executable instead of launching the executable from the directory where kickstart is being run.
final public static  StringCOLLAPSER_KEY
     The name of the key that determines the collapser executable to be used to run the merged/collapsed job.
final public static  StringCOLLAPSE_KEY
     The name of the key that if set in the VDS namespace determines the number of jobs that are collapsed into the super job.
final public static  StringCONDOR_STYLE
     The style indicating that the submit files are to be generated for a vanilla condor execution.
final public static  StringDEPRECATED_BUNDLE_STAGE_IN_KEY
     The deprecated bundle stagein key.
final public static  StringDEPRECATED_CHANGE_DIR_KEY
     The deprecated change dir key.
final public static  StringGLIDEIN_STYLE
     The style indicating that the submit files are to be generated for a glidein execution.
final public static  StringGLOBUS_STYLE
     The style indicating that the submit files are to be generated for a CondorG execution.
final public static  StringGRIDSTART_ARGUMENTS_KEY
     The name of the profile key, that determines the arguments with which the GridStart that is used to launch a job on the remote site is invoked with.
final public static  StringGRIDSTART_KEY
     The name of the profile key that determines the launching executable to be used to launch a job on the grid.
final public static  StringGROUP_KEY
     The name of the profile key in vds namespace that does the grouping.
final public static  StringLABEL_KEY
     The name of the profile key in vds namespace that does the labelling by default.
final public static  StringNAMESPACE_NAME
     The name of the namespace that this class implements.
final public static  StringREMOTE_INITIALDIR_KEY
     The name of the key that sets a remote initial dir for a condor globus job.
final public static  StringRUNTIME_KEY
     The name of the profile key when associated with a transformation in the transformation catalog gives expected runtime in seconds.
final public static  StringSTYLE_KEY
     The name of the key, that denotes the style of the dag that is constructed.
final public static  StringTRANSFER_ARGUMENTS_KEY
     The name of the profile key, that when associated with transfer jobs determines the arguments with which the transfer executable is invoked.
final public static  StringTRANSFER_PROXY_KEY
     The name of the profile key if associated with a job, results in an explicit transfer of the proxy from the submit host to the remote site, instead of banking upon CondorG to transfer the proxy.
protected static  MapmDeprecatedTable
     The table containing the mapping of the deprecated keys to the newer keys.
protected  StringmNamespace
     The name of the implementing namespace.

Constructor Summary
public  VDS()
     The default constructor. Note that the map is not allocated memory at this stage.
public  VDS(Map mp)
     The overloaded constructor.

Method Summary
public  intcheckKey(String key, String value)
     This checks whether the key passed by the user is valid in the current namespace or not.
public  voidcheckKeyInNS(PegasusProperties properties, String pool)
     It puts in the namespace specific information specified in the properties file into the namespace.
public  Objectclone()
    
public  voidconstruct(String key, String value)
     Constructs a new element of the format (key=value). It first checks if the map has been initialised or not.
public  booleancontainsKey(Object key)
     Returns true if the namespace contains a mapping for the specified key.
public  java.util.MapdeprecatedTable()
     Singleton access to the deprecated table that holds the deprecated keys, and the keys that replace them.
public  Objectget(Object key)
     Returns the value to which this namespace maps the specified key. Returns null if the map contains no mapping for this key.
public  booleangetBooleanValue(Object key)
     Returns a boolean value, that a particular key is mapped to in this namespace.
public  StringgetStringValue(Object key)
     Returns a String 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.
public  voidunknownKey(String key, String value)
     Warns about an unknown profile key and constructs it anyway.

Field Detail
BUNDLE_KEY
final public static String BUNDLE_KEY(Code)
The name of the key that if set, determines the number of super jobs that are made corresponding to a logical transformation and an execution pool. It overrides the collapse key if set.
See Also:   VDS.COLLAPSE_KEY



BUNDLE_STAGE_IN_KEY
final public static String BUNDLE_STAGE_IN_KEY(Code)
The name of the key that determines the bundling parameter for the stagein transfer node.



BUNDLE_STAGE_OUT_KEY
final public static String BUNDLE_STAGE_OUT_KEY(Code)
The name of the key that determines the bundling parameter for the stageout transfer node.



CHAIN_STAGE_IN_KEY
final public static String CHAIN_STAGE_IN_KEY(Code)
The name of the key that determines the number of chains of stagein nodes that are to be created per site.



CHANGE_DIR_KEY
final public static String CHANGE_DIR_KEY(Code)
The name of the profile key that triggers the kickstart to change directory before launching an executable instead of launching the executable from the directory where kickstart is being run.



COLLAPSER_KEY
final public static String COLLAPSER_KEY(Code)
The name of the key that determines the collapser executable to be used to run the merged/collapsed job.



COLLAPSE_KEY
final public static String COLLAPSE_KEY(Code)
The name of the key that if set in the VDS namespace determines the number of jobs that are collapsed into the super job.



CONDOR_STYLE
final public static String CONDOR_STYLE(Code)
The style indicating that the submit files are to be generated for a vanilla condor execution.



DEPRECATED_BUNDLE_STAGE_IN_KEY
final public static String DEPRECATED_BUNDLE_STAGE_IN_KEY(Code)
The deprecated bundle stagein key.
See Also:   VDS.CHANGE_DIR_KEY



DEPRECATED_CHANGE_DIR_KEY
final public static String DEPRECATED_CHANGE_DIR_KEY(Code)
The deprecated change dir key.
See Also:   VDS.CHANGE_DIR_KEY



GLIDEIN_STYLE
final public static String GLIDEIN_STYLE(Code)
The style indicating that the submit files are to be generated for a glidein execution.



GLOBUS_STYLE
final public static String GLOBUS_STYLE(Code)
The style indicating that the submit files are to be generated for a CondorG execution.



GRIDSTART_ARGUMENTS_KEY
final public static String GRIDSTART_ARGUMENTS_KEY(Code)
The name of the profile key, that determines the arguments with which the GridStart that is used to launch a job on the remote site is invoked with. The arguments are appended to the ones constructed by default by the GridStart implementation.



GRIDSTART_KEY
final public static String GRIDSTART_KEY(Code)
The name of the profile key that determines the launching executable to be used to launch a job on the grid.



GROUP_KEY
final public static String GROUP_KEY(Code)
The name of the profile key in vds namespace that does the grouping.



LABEL_KEY
final public static String LABEL_KEY(Code)
The name of the profile key in vds namespace that does the labelling by default.



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



REMOTE_INITIALDIR_KEY
final public static String REMOTE_INITIALDIR_KEY(Code)
The name of the key that sets a remote initial dir for a condor globus job.



RUNTIME_KEY
final public static String RUNTIME_KEY(Code)
The name of the profile key when associated with a transformation in the transformation catalog gives expected runtime in seconds.



STYLE_KEY
final public static String STYLE_KEY(Code)
The name of the key, that denotes the style of the dag that is constructed. Possible styles can be -condor(glidein,flocking,submitting directly to condor pool) -globus(condorg)



TRANSFER_ARGUMENTS_KEY
final public static String TRANSFER_ARGUMENTS_KEY(Code)
The name of the profile key, that when associated with transfer jobs determines the arguments with which the transfer executable is invoked.



TRANSFER_PROXY_KEY
final public static String TRANSFER_PROXY_KEY(Code)
The name of the profile key if associated with a job, results in an explicit transfer of the proxy from the submit host to the remote site, instead of banking upon CondorG to transfer the proxy.



mDeprecatedTable
protected static Map mDeprecatedTable(Code)
The table containing the mapping of the deprecated keys to the newer keys.



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
VDS
public VDS()(Code)
The default constructor. Note that the map is not allocated memory at this stage. It is done so in the overloaded construct function.



VDS
public VDS(Map mp)(Code)
The overloaded constructor.
Parameters:
  mp - the initial map.




Method Detail
checkKey
public int checkKey(String key, String value)(Code)
This checks whether the key passed by the user is valid in the current namespace or not.
Parameters:
  key - (left hand side)
Parameters:
  value - (right hand side) Namespace.VALID_KEY Namespace.UNKNOWN_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. This is used to load the appropriate collapser for the job. Any preexisting profile is preferred over the one in the property file.
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.
See Also:   VDS.COLLAPSER_KEY
See Also:   VDS.TRANSFER_PROXY_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). It first checks if the map has been initialised or not. If not then allocates memory first. It converts the key to lower case before storing.
Parameters:
  key - is the left-hand-side
Parameters:
  value - is the right hand side



containsKey
public boolean containsKey(Object key)(Code)
Returns true if the namespace contains a mapping for the specified key. More formally, returns true if and only if this map contains at a mapping for a key k such that (key==null ? k==null : key.equals(k)). (There can be at most one such mapping.) It also returns false if the map does not exist.
Parameters:
  key - The key that you want to search forin the namespace. boolean



deprecatedTable
public java.util.Map deprecatedTable()(Code)
Singleton access to the deprecated table that holds the deprecated keys, and the keys that replace them. Map



get
public Object get(Object key)(Code)
Returns the value to which this namespace maps the specified key. Returns null if the map contains no mapping for this key. A return value of null does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to null. The containsKey operation may be used to distinguish these two cases.
Parameters:
  key - The key whose value you want. the object



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



getStringValue
public String getStringValue(Object key)(Code)
Returns a String value, that a particular key is mapped to in this namespace. If is not populated in the namespace null is returned.
Parameters:
  key - The key whose boolean value you desire. String if key is in the namespacenull otherwise.



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:   VDS.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.



unknownKey
public void unknownKey(String key, String value)(Code)
Warns about an unknown profile key and constructs it anyway. Constructs a new RSL element of the format (key=value).
Parameters:
  key - is the left-hand-side
Parameters:
  value - is the right hand side



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.