Public Methods | |
Constructors/Destructor | |
JobAd () | |
Instantiates an empty JobAd object. | |
virtual | ~JobAd () throw () |
JobAd destructor. | |
JobAd (const std::string &jdl_string) | |
Instantiates a JobAd object from the given ClassAd-jdl string. More... | |
JobAd (const classad::ClassAd &classAd) | |
Constructor with a ClassAd instance. More... | |
JobAd::JobAd (const JobAd &jobad) | |
Copy constructor. More... | |
void | JobAd::operator= (const JobAd &jobad) |
Operator *. | |
String and Stream Constructor/Destructor | |
void | fromStream (std::istream &jdl_in) |
Update the JobAd object with the given input stream. More... | |
std::string | toString () |
Convert the JobAd Instance into a single line string representation. | |
std::string | toString (const std::string &attr_name) |
Retrieve the string representation of an attribute. More... | |
std::string | toSubmissionString () |
Convert the JobAd Instance into a single line string representation ready for submission. More... | |
void | toFile (const std::string &file_path) |
Put the JobAd Instance as a string into a file. More... | |
Insertion Methods | |
void | setDefaultRank (const std::string &attr_value) |
Set the default value for Rank attribute (take in consideration if not specified in JDL). More... | |
void | setDefaultReq (const std::string &attr_value) |
Set the default value for Requirements attribute (take in consideration if not specified in JDL). More... | |
void | setAttributeExpr (const std::string &attr_name, const std::string &attr_value) |
Add The specified Expression Attribute to the jdl istance. More... | |
Retrieval Methods | |
std::string | getAd (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
std::string | getString (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
int | getInt (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
double | getDouble (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
bool | getBool (const std::string &attr_name) |
Retreive the value of the specified attribute. More... | |
Miscellaneous Methods | |
void | checkSyntax (const std::string &attr_name, classad::ExprTree *attr_value) |
Check if the couple attribute/value is admitted. More... | |
void | checkMultiAttribute (const std::vector< std::string > &multi) |
Check if the Member/isMember expression is properly used in rank and requirements attributes expressions. More... | |
classad::ExprTree * | delAttribute (const std::string &attr_name) |
Delete an Attribute. More... | |
void | check () |
Check the JobAd instance for both syntax and semanthic errors. More... | |
Protected Attributes | |
classad::ClassAd | user |
user classAd: calssad containing all the attributes that could be possibly changed by the check method. More... |
Basically the JDL is the Condor ClassAd language, so it is legitimate the direct use of the Condor API library for creating, modifying, deleting a job description. However the JobAd class extends the ClassAd class of the Condor ClassAd library additionally providing some helper methods that ease the construction of job descriptions being fully compliant to WP1 WMS specification.
|
Instantiates a JobAd object from the given ClassAd-jdl string.
|
|
Constructor with a ClassAd instance.
|
|
Check the JobAd instance for both syntax and semanthic errors.
|
|
Check if the Member/isMember expression is properly used in rank and requirements attributes expressions.
|
|
Check if the couple attribute/value is admitted.
|
|
Delete an Attribute. It fails if the attribute doesn't exist
|
|
Update the JobAd object with the given input stream.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Retreive the value of the specified attribute.
|
|
Copy constructor.
|
|
Add The specified Expression Attribute to the jdl istance.
|
|
Set the default value for Rank attribute (take in consideration if not specified in JDL).
|
|
Set the default value for Requirements attribute (take in consideration if not specified in JDL).
|
|
Put the JobAd Instance as a string into a file.
|
|
Retrieve the string representation of an attribute.
|
|
Convert the JobAd Instance into a single line string representation ready for submission.
|
|
user classAd: calssad containing all the attributes that could be possibly changed by the check method. This member is utilized in order to ripristinate (restore method ) the old classad situation |