Main Page | Modules | Data Structures | File List | Data Fields | Globals

Job Status

Job status structure definition and related definitions. More...

Data Structures

struct  _edg_wll_JobStat
struct  _edg_wll_TagValue

edg_wll_JobStat manipulation

int edg_wll_InitStatus (edg_wll_JobStat *)
edg_wll_JobStatedg_wll_CpyStatus (const edg_wll_JobStat *, edg_wll_JobStat *)
void edg_wll_FreeStatus (edg_wll_JobStat *)
edg_wll_JobStatCode edg_wll_StringToStat (const char *)
char * edg_wll_StatToString (edg_wll_JobStatCode)

Typedefs

typedef enum _edg_wll_JobStatCode edg_wll_JobStatCode
typedef _edg_wll_TagValue edg_wll_TagValue
typedef _edg_wll_JobStat edg_wll_JobStat

Enumerations

enum  edg_wll_StatJobtype {
  EDG_WLL_STAT_SIMPLE, EDG_WLL_STAT_DAG, EDG_WLL_STAT_COLLECTION, EDG_WLL_STAT_PBS,
  EDG_WLL_STAT_CONDOR, EDG_WLL_NUMBER_OF_JOBTYPES
}
enum  edg_wll_StatDone_code { EDG_WLL_STAT_OK, EDG_WLL_STAT_FAILED, EDG_WLL_STAT_CANCELLED, EDG_WLL_NUMBER_OF_DONE_CODES }
enum  _edg_wll_JobStatCode {
  EDG_WLL_JOB_UNDEF = 0, EDG_WLL_JOB_SUBMITTED, EDG_WLL_JOB_WAITING, EDG_WLL_JOB_READY,
  EDG_WLL_JOB_SCHEDULED, EDG_WLL_JOB_RUNNING, EDG_WLL_JOB_DONE, EDG_WLL_JOB_CLEARED,
  EDG_WLL_JOB_ABORTED, EDG_WLL_JOB_CANCELLED, EDG_WLL_JOB_UNKNOWN, EDG_WLL_JOB_PURGED,
  EDG_WLL_NUMBER_OF_STATCODES
}

Detailed Description

Job status structure definition and related definitions.


Typedef Documentation

typedef struct _edg_wll_JobStat edg_wll_JobStat
 

Description of the job status. Returned by the edg_wll_JobStatus() function

typedef enum _edg_wll_JobStatCode edg_wll_JobStatCode
 

Job status numeric code

typedef struct _edg_wll_TagValue edg_wll_TagValue
 

Pair tag = value.


Enumeration Type Documentation

enum _edg_wll_JobStatCode
 

Job status numeric code

Enumeration values:
EDG_WLL_JOB_UNDEF  Indicates invalid edg_wll_JobStat structure
EDG_WLL_JOB_SUBMITTED  Entered by the user to the User Interface or registered by Job Partitioner.
EDG_WLL_JOB_WAITING  Accepted by WMS, waiting for resource allocation.
EDG_WLL_JOB_READY  Matching resources found.
EDG_WLL_JOB_SCHEDULED  Accepted by LRMS queue.
EDG_WLL_JOB_RUNNING  Executable is running.
EDG_WLL_JOB_DONE  Execution finished, output is available.
EDG_WLL_JOB_CLEARED  Output transfered back to user and freed.
EDG_WLL_JOB_ABORTED  Aborted by system (at any stage).
EDG_WLL_JOB_CANCELLED  Cancelled by user.
EDG_WLL_JOB_UNKNOWN  Status cannot be determined.
EDG_WLL_JOB_PURGED  Job has been purged from bookkeeping server (for LB->RGMA interface).
EDG_WLL_NUMBER_OF_STATCODES  Number of meaningful status codes

enum edg_wll_StatDone_code
 

Enumeration values:
EDG_WLL_STAT_OK  Finished correctly
EDG_WLL_STAT_FAILED  Execution failed
EDG_WLL_STAT_CANCELLED  Cancelled by user
EDG_WLL_NUMBER_OF_DONE_CODES  Number of Done_codes

enum edg_wll_StatJobtype
 

Miscelaneous job status numeric codes

Enumeration values:
EDG_WLL_STAT_SIMPLE  simple job
EDG_WLL_STAT_DAG  composite job
EDG_WLL_STAT_COLLECTION  parent of collection of jobs
EDG_WLL_STAT_PBS  PBS job
EDG_WLL_STAT_CONDOR  Condor job
EDG_WLL_NUMBER_OF_JOBTYPES  Number of Jobtypes


Function Documentation

edg_wll_JobStat* edg_wll_CpyStatus const edg_wll_JobStat ,
edg_wll_JobStat
 

Initialize dest structure and copy source status to this destination

void edg_wll_FreeStatus edg_wll_JobStat  ) 
 

Free status structure contents.

Warning:
The structure itself is not freed.

int edg_wll_InitStatus edg_wll_JobStat  ) 
 

Initialize empty status structure. Fills in the stucture with NULL's or values with no meaning

char* edg_wll_StatToString edg_wll_JobStatCode   ) 
 

Convert numeric job status code to string representation

edg_wll_JobStatCode edg_wll_StringToStat const char *   ) 
 

Convert string job status to numeric code.


Generated on Wed Jun 27 13:43:05 2007 for Glite LB Client: C - Interface by doxygen 1.3.5