| org.griphyn.cPlanner.namespace.Namespace org.griphyn.cPlanner.namespace.ENV
ENV | public class ENV extends Namespace (Code) | | The environment namespace, that puts in the environment variables for the
transformation that is being run, through Condor. At present on the occurence
of a clash between the values of an environment variable the values are
overwritten with the order of preference in decreasing order being users
local properties, transformation catalog, pool file and the dax (vdl).
Later on operations like append , prepend would also be supported.
author: Karan Vahi author: Gaurang Mehta version: $Revision: 50 $ |
Constructor Summary | |
public | ENV() The default constructor.
Note that the map is not allocated memory at this stage. | public | ENV(Map mp) The overloaded constructor. |
Method Summary | |
public int | checkKey(String key, String value) This checks whether the key passed by the user is valid in the current
namespace or not. | public void | checkKeyInNS(PegasusProperties properties, String pool) It puts in the namespace specific information specified in the properties
file into the namespace. | public void | checkKeyInNS(String envString) It takes in key=value pairs separated by a ; and puts them into the
namespace after checking if they are valid or not. | public Object | clone() Returns a copy of the current namespace object. | public void | construct(String key, String value) Constructs a new element of the format (key=value). | public void | merge(Namespace profiles) Merge the profiles in the namespace in a controlled manner. | public String | namespaceName() Returns the name of the namespace associated with the profile implementations. | public String | toString() Converts the contents of the map into the string that can be put in the
Condor file for printing. |
GRIDSTART_PREJOB | final public static String GRIDSTART_PREJOB(Code) | | The name of the environment variable that specifies the Gridstart PREJOB.
|
NAMESPACE_NAME | final public static String NAMESPACE_NAME(Code) | | The name of the namespace that this class implements.
|
X509_USER_PROXY_KEY | final public static String X509_USER_PROXY_KEY(Code) | | The name of the environment variable that specifies the path to the
proxy.
|
ENV | public ENV()(Code) | | The default constructor.
Note that the map is not allocated memory at this stage. It is done so
in the overloaded construct function.
|
ENV | public ENV(Map mp)(Code) | | The overloaded constructor.
Parameters: mp - map (possibly empty). |
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. At present, for this namespace all the keys are
construed as valid as long as the value passed is not null.
Parameters: key - (left hand side) Parameters: value - (right hand side) Namespace.VALID_KEY Namespace.NOT_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.
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 envString)(Code) | | It takes in key=value pairs separated by a ; and puts them into the
namespace after checking if they are valid or not.
Parameters: envString - the String containing the environment variables andtheir values separated by a semi colon. |
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.
Parameters: key - is the left-hand-side Parameters: value - is the right hand side |
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: ENV.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.
|
|
|