Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

Methods for querying the bookkeeping


Functions

std::vector< std::vector<
std::pair< QueryRecord::Attr,
std::string > > > 
ServerConnection::getIndexedAttrs (void)
void ServerConnection::queryEvents (const std::vector< QueryRecord > &job_cond, const std::vector< QueryRecord > &event_cond, std::vector< Event > &events) const

Detailed Description

server.

These methods serve for obtaining data from the bookkeeping server. The L&B service queries come in two flavors:

Query methods actually do communicate with the server and they are synchronous; their completion can take some time not exceeding the query timeout.

Function Documentation

std::vector<std::vector<std::pair<QueryRecord::Attr,std::string> > > ServerConnection::getIndexedAttrs void   )  [inherited]
 

Retrieve the set of single indexed attributes.

Returns the set of attributes that are indexed on the server. Every query must contain at least one indexed attribute for performance reason; exception to this rule requires setting appropriate paramater on the server and is not advised.

In the vector returned, outer elements correspond to indices, inner vector elements correspond to index columns. If .first of the pair is USERTAG, .second is its name; if .first is TIME, .second is state name otherwise .second is meaningless (empty string anyway).

void ServerConnection::queryEvents const std::vector< QueryRecord > &  job_cond,
const std::vector< QueryRecord > &  event_cond,
std::vector< Event > &  events
const [inherited]
 

Retrieve all events satisfying the query records.

Returns all events belonging to the jobs specified by

  • job_cond and in addition satisfying the
  • event_cond.
    Parameters:
    in] job_cond Conjunctive query on jobs.
    in] event_cond Conjunctive query on events.
    out] events Vector of Event objects representing L&B events.
    Exceptions:
    LoggingException Query failed.


Generated on Thu May 11 20:44:17 2006 for Glite LB Client: CPP - Interface by doxygen 1.3.5