public class Hints extends Namespace
Namespace.EmptyIterator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXECUTION_POOL_KEY
The execution pool key
|
static java.lang.String |
GLOBUS_SCHEDULER_KEY
The globus scheduler hints key
|
static java.lang.String |
GRID_JOB_TYPE_KEY
The jobmanager universe key.
|
protected java.lang.String |
mNamespace
The name of the implementing namespace.
|
static java.lang.String |
NAMESPACE_NAME
The name of the namespace that this class implements.
|
static java.lang.String |
PFN_HINT_KEY
The pfnHint key
|
DEPRECATED_KEY, EMPTY_KEY, MALFORMED_KEY, mLogger, mProfileMap, NOT_PERMITTED_KEY, UNKNOWN_KEY, VALID_KEY, VERSION
Constructor and Description |
---|
Hints()
The default constructor.
|
Hints(java.util.Map mp)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
checkKey(java.lang.String key,
java.lang.String value)
This checks whether the key passed by the user is valid in the current
namespace or not.
|
void |
checkKeyInNS(PegasusProperties properties,
java.lang.String pool)
It puts in the namespace specific information specified in the properties
file into the namespace.
|
java.lang.Object |
clone()
Returns a copy of the current namespace object.
|
void |
construct(java.lang.String key,
java.lang.String value)
Constructs a new element of the format (key=value).
|
boolean |
containsKey(java.lang.Object key)
Returns true if the namespace contains a mapping for the specified key.
|
java.util.Iterator |
getProfileKeyIterator()
Provides an iterator to traverse the profiles by their keys.
|
void |
merge(Namespace profiles)
Merge the profiles in the namespace in a controlled manner.
|
java.lang.String |
namespaceName()
Returns the name of the namespace associated with the profile implementations.
|
java.lang.String |
toCondor()
Converts the contents of the map into the string that can be put in the
Condor file for printing.
|
assimilate, checkKeyInNS, checkKeyInNS, checkKeyInNS, checkKeyInNS, checkKeyInNS, deprecatedKey, deprecatedTable, emptyKey, get, isEmpty, isNamespaceValid, keySet, malformedKey, notPermitted, removeKey, toString, unknownKey
public static final java.lang.String NAMESPACE_NAME
public static final java.lang.String GRID_JOB_TYPE_KEY
public static final java.lang.String EXECUTION_POOL_KEY
public static final java.lang.String GLOBUS_SCHEDULER_KEY
public static final java.lang.String PFN_HINT_KEY
protected java.lang.String mNamespace
Namespace.isNamespaceValid(String)
public Hints()
public Hints(java.util.Map mp)
mp
- the map containing the profiles to be prepopulated with.public java.lang.String namespaceName()
namespaceName
in class Namespace
NAMESPACE_NAME
public java.util.Iterator getProfileKeyIterator()
getProfileKeyIterator
in class Namespace
public void construct(java.lang.String key, java.lang.String value)
public boolean containsKey(java.lang.Object key)
containsKey
in class Namespace
key
- The key that you want to search for
in the namespace.public int checkKey(java.lang.String key, java.lang.String value)
public void checkKeyInNS(PegasusProperties properties, java.lang.String pool)
checkKeyInNS
in class Namespace
properties
- 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 merge(Namespace profiles)
public java.lang.String toCondor()