public class Selector extends Namespace
Namespace.EmptyIterator
Modifier and Type | Field and Description |
---|---|
protected String |
mNamespace
The name of the implementing namespace.
|
static String |
NAMESPACE_NAME
The name of the namespace that this class implements.
|
DEPRECATED_KEY, EMPTY_KEY, MALFORMED_KEY, mLogger, mProfileMap, NOT_PERMITTED_KEY, UNKNOWN_KEY, VALID_KEY, VERSION
Constructor and Description |
---|
Selector()
The default constructor.
|
Selector(Map mp)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
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).
|
Object |
get(Object key)
Returns the value to which this namespace maps the specified key.
|
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 |
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, containsKey, deprecatedKey, deprecatedTable, emptyKey, getProfileKeyIterator, isEmpty, isNamespaceValid, keySet, malformedKey, notPermitted, removeKey, toString, unknownKey
public static final String NAMESPACE_NAME
protected String mNamespace
Namespace.isNamespaceValid(String)
public Selector()
public Selector(Map mp)
mp
- map (possibly empty).public Object get(Object key)
public String namespaceName()
namespaceName
in class Namespace
NAMESPACE_NAME
public void construct(String key, String value)
public int checkKey(String key, String value)
public void checkKeyInNS(PegasusProperties properties, 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 checkKeyInNS(String envString)
envString
- the String containing the environment variables and
their values separated by a semi colon.public void merge(Namespace profiles)
public String toCondor()