|
||||||||||
| 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.Globus
public class Globus
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.griphyn.cPlanner.namespace.Namespace |
|---|
Namespace.EmptyIterator |
| Field Summary | |
|---|---|
static Map |
mAggregatorTable
The table that maps the various globus profile keys to their aggregator functions. |
static Aggregator |
mDefaultAggregator
The default aggregator to be used for profile aggregation, if none specified in the aggregator table; |
protected String |
mNamespace
The name of the implementing namespace. |
static String |
NAMESPACE_NAME
The name of the namespace that this class implements. |
| 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 | |
|---|---|
Globus()
The default constructor. |
|
Globus(Map map)
The overloaded constructor |
|
| Method Summary | |
|---|---|
protected Aggregator |
aggregator(String key)
Returns the aggregator to be used for the profile key while merging. |
int |
checkKey(String key,
String value)
Additional method to handle the globus 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. |
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). |
private String |
convert(Map rsl)
Converts a map with RSL kv-pairs into an RSL string. |
protected void |
enforceMinTime(PegasusProperties properties,
String key)
Enforces a minimum time if specified in the properties. |
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 Map mAggregatorTable
#Aggregatorpublic static Aggregator mDefaultAggregator
protected String mNamespace
Namespace.isNamespaceValid(String)| Constructor Detail |
|---|
public Globus()
public Globus(Map map)
map - a possibly empty map.| 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)
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)
checkKey in class Namespacekey - is the key within the globus namespace, must be lowercase!value - is the value for the given key.
public void merge(Namespace profiles)
merge in class Namespaceprofiles - the Namespace object containing the profiles.
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 String toString()
toString in class Datapublic Object clone()
clone in class Object
protected void enforceMinTime(PegasusProperties properties,
String key)
properties - the properties object holding the properties.key - the RSL time key .protected Aggregator aggregator(String key)
key - the key for which the aggregator is found.
private String convert(Map rsl)
rsl - is the RSL map to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||