|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.classes.Data
org.griphyn.cPlanner.namespace.Namespace
org.griphyn.cPlanner.namespace.ENV
public class ENV
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.griphyn.cPlanner.namespace.Namespace |
|---|
Namespace.EmptyIterator |
| Field Summary | |
|---|---|
static String |
GRIDSTART_PREJOB
The name of the environment variable that specifies the Gridstart PREJOB. |
protected String |
mNamespace
The name of the implementing namespace. |
static String |
NAMESPACE_NAME
The name of the namespace that this class implements. |
static String |
X509_USER_PROXY_KEY
The name of the environment variable that specifies the path to the proxy. |
| Fields inherited from class org.griphyn.cPlanner.namespace.Namespace |
|---|
DEPRECATED_KEY, MALFORMED_KEY, mProfileMap, NOT_PERMITTED_KEY, UNKNOWN_KEY, VALID_KEY, VERSION |
| Fields inherited from class org.griphyn.cPlanner.classes.Data |
|---|
mLogger, mLogMsg |
| Constructor Summary | |
|---|---|
ENV()
The default constructor. |
|
ENV(Map mp)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
int |
checkKey(String key,
String value)
This checks whether the key passed by the user is valid in the current namespace or not. |
void |
checkKeyInNS(PegasusProperties properties,
String pool)
It puts in the namespace specific information specified in the properties file into the namespace. |
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. |
Object |
clone()
Returns a copy of the current namespace object. |
void |
construct(String key,
String value)
Constructs a new element of the format (key=value). |
void |
merge(Namespace profiles)
Merge the profiles in the namespace in a controlled manner. |
String |
namespaceName()
Returns the name of the namespace associated with the profile implementations. |
String |
toString()
Converts the contents of the map into the string that can be put in the Condor file for printing. |
| Methods inherited from class org.griphyn.cPlanner.namespace.Namespace |
|---|
checkKeyInNS, checkKeyInNS, checkKeyInNS, checkKeyInNS, containsKey, deprecatedKey, deprecatedTable, get, getProfileKeyIterator, isNamespaceValid, keySet, malformedKey, notPermitted, removeKey, unknownKey |
| Methods inherited from class org.griphyn.cPlanner.classes.Data |
|---|
setToString, vectorToString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAMESPACE_NAME
public static final String X509_USER_PROXY_KEY
public static final String GRIDSTART_PREJOB
protected String mNamespace
Namespace.isNamespaceValid(String)| Constructor Detail |
|---|
public ENV()
public ENV(Map mp)
mp - map (possibly empty).| Method Detail |
|---|
public String namespaceName()
namespaceName in class NamespaceNAMESPACE_NAME
public void construct(String key,
String value)
construct in class Namespacekey - is the left-hand-sidevalue - is the right hand side
public int checkKey(String key,
String value)
checkKey in class Namespacekey - (left hand side)value - (right hand side)
public String toString()
toString in class Data
public void checkKeyInNS(PegasusProperties properties,
String pool)
checkKeyInNS in class Namespaceproperties - the PegasusProperties object containing
all the properties that the user specified at various
places (like .chimerarc, properties file, command line).pool - the pool name where the job is scheduled to run.public void checkKeyInNS(String envString)
envString - the String containing the environment variables and
their values separated by a semi colon.public void merge(Namespace profiles)
merge in class Namespaceprofiles - the Namespace object containing the profiles.public Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||