#include <ServerConnection.h>
Public Types | |
enum | Attr { UNDEF = 0, JOBID, OWNER, STATUS, LOCATION, DESTINATION, DONECODE, USERTAG, TIME, LEVEL, HOST, SOURCE, INSTANCE, EVENT_TYPE, CHKPT_TAG, RESUBMITTED, PARENT, EXITCODE } |
enum | Op { EQUAL = EDG_WLL_QUERY_OP_EQUAL, LESS = EDG_WLL_QUERY_OP_LESS, GREATER = EDG_WLL_QUERY_OP_GREATER, WITHIN = EDG_WLL_QUERY_OP_WITHIN, UNEQUAL = EDG_WLL_QUERY_OP_UNEQUAL } |
Public Member Functions | |
QueryRecord () | |
QueryRecord (const QueryRecord &src) | |
QueryRecord & | operator= (const QueryRecord &src) |
QueryRecord (const Attr name, const Op op, const std::string &value) | |
QueryRecord (const Attr name, const Op op, const int value) | |
QueryRecord (const Attr name, const Op op, const struct timeval &value) | |
QueryRecord (const Attr name, const Op op, const glite::wmsutils::jobid::JobId &value) | |
QueryRecord (const Attr name, const Op op, const int state, const struct timeval &value) | |
QueryRecord (const Attr name, const Op op, const std::string &value_min, const std::string &value_max) | |
QueryRecord (const Attr name, const Op op, const int value_min, const int value_max) | |
QueryRecord (const Attr name, const Op op, const struct timeval &value_min, const struct timeval &value_max) | |
QueryRecord (const Attr name, const Op op, const int state, const struct timeval &value_min, const struct timeval &value_max) | |
QueryRecord (const std::string &tag, const Op op, const std::string &value) | |
QueryRecord (const std::string &tag, const Op op, const std::string &value_min, const std::string &value_max) | |
~QueryRecord () | |
Static Public Member Functions | |
const std::string | AttrName (const Attr attr) |
Protected Member Functions | |
operator edg_wll_QueryRec () const | |
Friends | |
class | ServerConnection |
edg_wll_QueryRec * | convertQueryVector (const std::vector< QueryRecord > &in) |
This class is used to construct queries to the L&B database. Each query is composed of multiple atomic conditions in the form of 'attribute' 'predicate' 'value'. QueryRecord represents such an atomic condition.
|
Symbolic names of queryable attributes. The queryable attributes correspond to the table columns in the bookkeeping server database, they relate both to the event records and job records.
|
|
Symbolic names of predicates. These are the predicates used for creating atomic query conditions. |
|
Default constructor. Initializes empty query condition. |
|
Copy constructor Initializes an exact copy of the object.
|
|
Constructor for condition on string typed value. Initializes the object to hold condition on string typed attribute value.
|
|
Constructor for condition on integer typed value. Initializes the object to hold condition on integer typed attribute value.
|
|
Constructor for condition on timeval typed value. Initializes the object to hold condition on timeval typed attribute value.
|
|
Constructor for condition on JobId typed value. Initializes the object to hold condition on JobId typed attribute value.
|
|
Constructor for condition on timeval typed value. Initializes the object to hold condition on the time the job stays in given state.
|
|
Constructor for condition on string typed interval. Initializes the object to hold condition on string typed attribute interval.
|
|
Constructor for condition on integer typed interval. Initializes the object to hold condition on integer typed attribute interval.
|
|
Constructor for condition on timeval typed interval. Initializes the object to hold condition on timeval typed attribute interval.
|
|
Constructor for condition on timeval typed interval for given state. Initializes the object to hold condition on the time job stayed in given state.
|
|
Convenience constructor for condition on user tags. Initializes the object to hold condition on the value of user tag.
|
|
Convenience constructor for condition on user tags. Initializes the object to hold condition on the value of user tag.
|
|
Destructor. The actual work is done by member destructors. |
|
Return the string representation of symbolic attribute name.
|
|
|
|
Assignment operator. Initializes an exact copy of the object.
|
|
|
|
|