|
||||||||||
| 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.Condor
public class Condor
This helper class helps in handling the arguments specified in the Condor namespace by the user either through dax or through profiles in pool.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.griphyn.cPlanner.namespace.Namespace |
|---|
Namespace.EmptyIterator |
| Field Summary | |
|---|---|
static String |
ARGUMENTS_KEY
The name of the key that denotes the arguments of the job. |
static String |
FILE_SYSTEM_DOMAIN_KEY
The name of the key that denotes the File System Domain. |
static String |
GLOBUS_UNIVERSE
The condor universe key value for vanilla universe. |
static String |
GRID_JOB_TYPE_KEY
The name of the key that specifies the grid job type. |
static String |
GRID_UNIVERSE
The condor universe key value for grid universe. |
static String |
JOBMANAGER_TYPE_KEY
The name of the key that specifies the jobmanager type. |
static String |
LOCAL_UNIVERSE
The condor universe key value for local universe. |
protected String |
mNamespace
The name of the implementing namespace. |
static String |
NAMESPACE_NAME
The name of the namespace that this class implements. |
static String |
PRIORITY_KEY
The name of the key that specifies the priority for the job. |
static String |
REQUIREMENTS_KEY
The name of the key that denotes the requirements of the job. |
static String |
SCHEDULER_UNIVERSE
The condor universe key value for scheduler universe. |
static String |
STANDARD_UNIVERSE
The condor universe key value for standard universe. |
static String |
TRANSFER_IP_FILES_KEY
The name of the key that specifies transfer of input files. |
static String |
TRANSFER_OP_FILES_KEY
The name of the key that specifies transfer of input files. |
static String |
UNIVERSE_KEY
The name of the key that denotes the condor universe key. |
static String |
VANILLA_UNIVERSE
The condor universe key value for vanilla universe. |
| 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 | |
|---|---|
Condor()
The default constructor. |
|
Condor(Map mp)
The overloaded constructor |
|
| Method Summary | |
|---|---|
void |
addIPFileForTransfer(String file)
Adds an input file that is to be transferred from the submit host via the Condor File Transfer Mechanism. |
void |
addOPFileForTransfer(String file)
Adds an output file that is to be transferred from the submit host via the Condor File Transfer Mechanism. |
int |
checkKey(String key,
String value)
Additional method to handle the Condor namespace with convenience mappings. |
void |
checkKeyInNS(PegasusProperties properties,
String pool)
It puts in the namespace specific information specified in the properties file into the namespace. |
void |
checkKeyInNS(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. |
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). |
boolean |
getBooleanValue(Object key)
Returns a boolean value, that a particular key is mapped to in this namespace. |
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, 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 ARGUMENTS_KEY
public static final String REQUIREMENTS_KEY
public static final String UNIVERSE_KEY
public static final String FILE_SYSTEM_DOMAIN_KEY
REQUIREMENTS_KEY,
Constant Field Valuespublic static final String GRID_JOB_TYPE_KEY
public static final String JOBMANAGER_TYPE_KEY
public static final String TRANSFER_IP_FILES_KEY
public static final String TRANSFER_OP_FILES_KEY
public static final String PRIORITY_KEY
public static final String VANILLA_UNIVERSE
public static final String GRID_UNIVERSE
public static final String GLOBUS_UNIVERSE
public static final String SCHEDULER_UNIVERSE
public static final String STANDARD_UNIVERSE
public static final String LOCAL_UNIVERSE
protected String mNamespace
Namespace.isNamespaceValid(String)| Constructor Detail |
|---|
public Condor()
public Condor(Map mp)
mp - map containing the profile keys.| Method Detail |
|---|
public String namespaceName()
namespaceName in class NamespaceNAMESPACE_NAMEpublic void addIPFileForTransfer(String file)
file - the path to the file on the submit host.public void addOPFileForTransfer(String file)
file - the path to the file on the submit host.
public int checkKey(String key,
String value)
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.
checkKey in class Namespacekey - is the key within the globus namespace, must be lowercase!value - is the value for the given key.
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 key,
String value)
checkKeyInNS in class Namespacekey - key that needs to be checked in the namespace for validity.value - value of the keypublic void merge(Namespace profiles)
merge in class Namespaceprofiles - the Namespace object containing the profiles.
public void construct(String key,
String value)
construct in class Namespacekey - is the left-hand-sidevalue - is the right hand sidepublic boolean getBooleanValue(Object key)
key - The key whose boolean value you desire.
public String toString()
toString in class Datapublic Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||