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

JobStatus Class Reference

Description of job status. More...

List of all members.

Public Types

enum  Code {
  UNDEF = 0, SUBMITTED, WAITING, READY,
  SCHEDULED, RUNNING, DONE, CLEARED,
  ABORTED, CANCELLED, UNKNOWN, PURGED,
  CODE_MAX
}
enum  Attr {
  ACL, CANCEL_REASON, CANCELLING, CE_NODE,
  CHILDREN, CHILDREN_HIST, CHILDREN_NUM, CHILDREN_STATES,
  CONDOR_ID, CONDOR_JDL, CPU_TIME, DESTINATION,
  DONE_CODE, EXIT_CODE, EXPECT_FROM, EXPECT_UPDATE,
  GLOBUS_ID, JDL, JOB_ID, JOBTYPE,
  LAST_UPDATE_TIME, LOCAL_ID, LOCATION, MATCHED_JDL,
  NETWORK_SERVER, OWNER, PARENT_JOB, REASON,
  RESUBMITTED, RSL, SEED, STATE_ENTER_TIME,
  STATE_ENTER_TIMES, SUBJOB_FAILED, USER_TAGS, ATTR_MAX
}
enum  { DONE_CODE_OK, DONE_CODE_FAILED, DONE_CODE_CANCELLED }
enum  { JOBTYPE_SIMPLE, JOBTYPE_DAG }
enum  AttrType {
  INT_T, STRING_T, TIMEVAL_T, BOOL_T,
  JOBID_T, INTLIST_T, STRLIST_T, TAGLIST_T,
  STSLIST_T
}

Public Member Functions

const std::string & name (void) const
 String representation of the status code.

int getValInt (Attr) const
 Retrieve integer attribute.

std::string getValString (Attr) const
 Retrieve string attribute.

timeval getValTime (Attr) const
 Retrieve time attribute.

const edg::workload::common::jobid::JobId getValJobId (Attr) const
 Retrieve jobid attribute.

bool getValBool (Attr) const
 Retrieve bool attribute.

const std::vector< int > getValIntList (Attr) const
 Retrieve int list attribute.

const std::vector< std::string > getValStringList (Attr) const
 Retrieve string list attribute.

const std::vector< std::pair<
std::string, std::string > > 
getValTagList (Attr) const
 Retrieve tag list attribute.

const std::vector< JobStatusgetValJobStatusList (Attr) const
 Retrieve job status list attribute.

const std::string & getAttrName (Attr) const
 Attribute name.

const std::vector< std::pair<
Attr, AttrType > > & 
getAttrs (void) const
 List of attributes and types valid for this instance.

 JobStatus (void)
 JobStatus (const JobStatus &)
JobStatusoperator= (const JobStatus &)
 JobStatus (const edg_wll_JobStat &)
JobStatusoperator= (const edg_wll_JobStat &)
virtual ~JobStatus ()

Public Attributes

Code status
 Numeric status code.


Protected Member Functions

edg_wll_JobStat * c_ptr (void)

Friends

class Job
class CountRef< JobStatus >


Detailed Description

Description of job status.

The status is computed from a sequence of logged events


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
DONE_CODE_OK  Finished correctly.
DONE_CODE_FAILED  Execution failed.
DONE_CODE_CANCELLED  Cancelled by user.

anonymous enum
 

Enumeration values:
JOBTYPE_SIMPLE  simple job
JOBTYPE_DAG  composite job

enum Attr
 

Enumeration values:
ACL  ACL of the job.
CANCEL_REASON  Reason of cancel.
CANCELLING  Cancellation request in progress.
CE_NODE  Worker node where the job is executed.
CHILDREN  list of subjob IDs
CHILDREN_HIST  summary (histogram) of children job states
CHILDREN_NUM  number of subjobs
CHILDREN_STATES  full status information of the children
CONDOR_ID  Id within Condor-G.
CONDOR_JDL  ClassAd passed to Condor-G for last job execution.
CPU_TIME  Consumed CPU time.
DESTINATION  ID of CE where the job is being sent.
DONE_CODE  Return code.
EXIT_CODE  Unix exit code.
EXPECT_FROM  Sources of the missing information.
EXPECT_UPDATE  Some logged information has not arrived yet.
GLOBUS_ID  Globus allocated Id.
JDL  User submitted job description.
JOB_ID  Id of the job.
JOBTYPE  Type of job.
LAST_UPDATE_TIME  Last known event of the job.
LOCAL_ID  Id within LRMS.
LOCATION  Where the job is being processed.
MATCHED_JDL  Full job description after matchmaking.
NETWORK_SERVER  Network server handling the job.
OWNER  Job owner.
PARENT_JOB  parent job of subjob
REASON  Reason of being in this status, if any.
RESUBMITTED  The job was resubmitted.
RSL  Job RSL sent to Globus.
SEED  string used for generation of subjob IDs
STATE_ENTER_TIME  When entered this status.
STATE_ENTER_TIMES  When all previous states were entered.
SUBJOB_FAILED  Subjob failed (the parent job will fail too).
USER_TAGS  List of pairs (user_tag, user_value).
ATTR_MAX 

enum AttrType
 

Enumeration values:
INT_T 
STRING_T 
TIMEVAL_T 
BOOL_T 
JOBID_T 
INTLIST_T 
STRLIST_T 
TAGLIST_T 
STSLIST_T 

enum Code
 

Enumeration values:
UNDEF  indicates invalid, i.e

uninitialized instance

SUBMITTED  entered by the user to the User Interface or registered by Job Partitioner
WAITING  Accepted by WMS, waiting for resource allocation.
READY  Matching resources found.
SCHEDULED  Accepted by LRMS queue.
RUNNING  Executable is running.
DONE  Execution finished, output is available.
CLEARED  Output transfered back to user and freed.
ABORTED  Aborted by system (at any stage).
CANCELLED  Cancelled by user.
UNKNOWN  Status cannot be determined.
PURGED  Job has been purged from bookkeeping server (for LB->RGMA interface).
CODE_MAX 


Constructor & Destructor Documentation

JobStatus void   ) 
 

JobStatus const JobStatus  ) 
 

JobStatus const edg_wll_JobStat &   ) 
 

virtual ~JobStatus  )  [virtual]
 


Member Function Documentation

edg_wll_JobStat* c_ptr void   )  [protected]
 

const std::string& getAttrName Attr   )  const
 

Attribute name.

const std::vector<std::pair<Attr,AttrType> >& getAttrs void   )  const
 

List of attributes and types valid for this instance.

bool getValBool Attr   )  const
 

Retrieve bool attribute.

int getValInt Attr   )  const
 

Retrieve integer attribute.

const std::vector<int> getValIntList Attr   )  const
 

Retrieve int list attribute.

const edg::workload::common::jobid::JobId getValJobId Attr   )  const
 

Retrieve jobid attribute.

const std::vector<JobStatus> getValJobStatusList Attr   )  const
 

Retrieve job status list attribute.

std::string getValString Attr   )  const
 

Retrieve string attribute.

const std::vector<std::string> getValStringList Attr   )  const
 

Retrieve string list attribute.

const std::vector<std::pair<std::string,std::string> > getValTagList Attr   )  const
 

Retrieve tag list attribute.

struct timeval getValTime Attr   )  const
 

Retrieve time attribute.

const std::string& name void   )  const
 

String representation of the status code.

JobStatus& operator= const edg_wll_JobStat &   ) 
 

JobStatus& operator= const JobStatus  ) 
 


Friends And Related Function Documentation

friend class CountRef< JobStatus > [friend]
 

friend class Job [friend]
 


Member Data Documentation

Code status
 

Numeric status code.


The documentation for this class was generated from the following file:
Generated on Wed Mar 1 00:38:53 2006 for L&B API CPP by doxygen 1.3.5