#include <Job.h>
Public Member Functions | |
Job (void) | |
Job (const glite::wmsutils::jobid::JobId &jobid) | |
~Job () | |
Job & | operator= (const glite::wmsutils::jobid::JobId &jobid) |
JobStatus | status (int flags) const |
void | log (std::vector< Event > &events) const |
const std::vector< Event > | log (void) const |
const std::pair< std::string, uint16_t > | queryListener (const std::string &name) const |
void | setParam (edg_wll_ContextParam ctx, int val) |
void | setParam (edg_wll_ContextParam ctx, const std::string val) |
void | setParam (edg_wll_ContextParam ctx, const struct timeval &val) |
int | getParamInt (edg_wll_ContextParam ctx) const |
std::string | getParamString (edg_wll_ContextParam ctx) const |
timeval | getParamTime (edg_wll_ContextParam ctx) const |
Static Public Attributes | |
const int | STAT_CLASSADS |
const int | STAT_CHILDREN |
const int | STAT_CHILDSTAT |
This class is the primary interface for getting information about jobs stored in the L&B database. It is constructed from known job id, which uniquely identifies the job as well as the bookkeeping server where the job data is stored. The Job class provides methods for obtaining the data from the bookkeeping server and for setting various parameters of the connection to the bookkeeping server.
All query methods have their counterpart in C functions taking taking edg_wll_Context and edg_wll_JobId as their first parameters (in fact, those functions are used to do the actual work).
|
Default constructor. Initializes the job as empty, not representing anything. |
|
Constructor from job id. Initializes the job to obtain information for the given job id.
|
|
Destructor. All the actual work is done by member destructors, namely ServerConnection. |
|
Get LB parameters. Obtain value of the named integer parameter.
|
|
Get LB parameters. Obtain value of the named string parameter.
|
|
Get LB parameters. Obtain value of the named timeval parameter.
|
|
Return all events corresponding to this job Obtain all events corresponding to the job that are stored in the bookkeeping server database. The maximum number of returned events can be set by calling setParam().
|
|
Return all events corresponding to this job Obtain all events corresponding to the job that are stored in the bookkeeping server database. The maximum number of returned events can be set by calling setParam().
|
|
Assign new job id to an existing instance. Redirect this instance to obtain information about different job; connection to the server is preserved, if possible.
|
|
Return last known address of a listener associated to the job. Obtains the information about last listener that has been registered for this job in the bookkeeping server database.
|
|
Manipulate LB parameters. This method sets timeval typed parameters for the server connection.
|
|
Manipulate LB parameters. This method sets string typed parameters for the server connection.
|
|
Manipulate LB parameters. This method sets integer typed parameters for the server connection.
|
|
Return job status. Obtain the job status (as JobStatus) from the bookkeeping server.
|
|
Include the list of subjob id's in the query result. |
|
Apply the flags recursively to subjobs. |
|
Include the job description in the query result. |