| org.griphyn.cPlanner.namespace.Namespace org.griphyn.cPlanner.namespace.Globus
Globus | public class Globus extends Namespace (Code) | | This helper class helps in handling the globus rsl key value pairs that
come through profile information for namespace Globus.
The information can either come in through transformation catalog, site catalog
or through profile tags in DAX.
author: Karan Vahi version: $Revision: 50 $ |
Constructor Summary | |
public | Globus() The default constructor. | public | Globus(Map map) |
Method Summary | |
protected Aggregator | aggregator(String key) Returns the aggregator to be used for the profile key while merging.
If no aggregator is found, the then default Aggregator (Update) is used.
Parameters: key - the key for which the aggregator is found. | public int | checkKey(String key, String value) Additional method to handle the globus namespace with
convenience mappings. | public void | checkKeyInNS(PegasusProperties properties, String pool) It puts in the namespace specific information specified in the properties
file into the namespace. | public Object | clone() | public void | construct(String key, String value) Constructs a new element of the format (key=value). | protected void | enforceMinTime(PegasusProperties properties, String key) Enforces a minimum time if specified in the properties. | 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. |
NAMESPACE_NAME | final public static String NAMESPACE_NAME(Code) | | The name of the namespace that this class implements.
|
mAggregatorTable | public static Map mAggregatorTable(Code) | | The table that maps the various globus profile keys to their aggregator
functions.
See Also: Globus.Aggregator |
mDefaultAggregator | public static Aggregator mDefaultAggregator(Code) | | The default aggregator to be used for profile aggregation, if none specified
in the aggregator table;
|
Globus | public Globus()(Code) | | The default constructor.
|
Globus | public Globus(Map map)(Code) | | The overloaded constructor
Parameters: map - a possibly empty map. |
aggregator | protected Aggregator aggregator(String key)(Code) | | Returns the aggregator to be used for the profile key while merging.
If no aggregator is found, the then default Aggregator (Update) is used.
Parameters: key - the key for which the aggregator is found. the aggregator for the profile key. |
checkKey | public int checkKey(String key, String value)(Code) | | Additional method to handle the globus namespace with
convenience mappings. Currently supported keys are:
arguments - not supported, clashes with Condor
count - OK
directory - not supported, clashes with Pegasus
dryRun - OK, beware the consequences!
environment - not supported, use env namespace
executable - not supported, clashes with Condor
gramMyjob - OK
hostCount - OK
jobType - OK to handle MPI jobs
maxCpuTime - OK
maxMemory - OK
maxTime - OK
maxWallTime - OK
minMemory - OK
project - OK
queue - OK
stdin - not supported, clashes with Pegasus
stdout - not supported, clashes with Pegasus
stderr - not supported, clashes with Pegasus
rls - OK: Chimera's generic extension (AOB)
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.
An empty implementation for the timebeing. It is handled in the submit
writer.
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. |
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 |
enforceMinTime | protected void enforceMinTime(PegasusProperties properties, String key)(Code) | | Enforces a minimum time if specified in the properties.
Parameters: properties - the properties object holding the properties. Parameters: key - the RSL time key . |
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: Globus.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. |
|
|