- New structure to describe inter-job relationship
authorZdeněk Šustr <sustr4@cesnet.cz>
Wed, 29 Aug 2012 08:14:28 +0000 (08:14 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Wed, 29 Aug 2012 08:14:28 +0000 (08:14 +0000)
org.glite.lb.common/interface/jobstat.h.T
org.glite.lb.common/src/status.c.T

index eb531dd..601c853 100644 (file)
@@ -177,6 +177,27 @@ typedef struct _edg_wll_JobStat {
 #define EDG_WLL_NOTIF_VOLATILE 512     /**< (not used yet) send the notifications directly, without reliability and persistency */
 /* starting from bit 10 private flags begins - do not add 1024 and more! */
 
+/**
+ * Type (status) of an inter-job relationship
+**/
+typedef enum _edg_wll_JobConnectionType {
+        EDG_WLL_JOBCONNECTION_UNDEFINED,
+        EDG_WLL_JOBCONNECTION_ACTIVE,
+        EDG_WLL_JOBCONNECTION_INACTIVE,
+        EDG_WLL_JOBCONNECTION_CANCELLED
+} edg_wll_JobConnectionType;
+
+extern char *edg_wll_JobConnectionTypeNames[];
+
+/**
+ * Structured type for expressing inter-job relationships
+**/
+typedef struct _edg_wll_RelationshipRecord {
+       glite_jobid_t                   jobid;          /* JobID of the related job */
+       enum edg_wll_StatJobtype        jobtype;        /* Type of the related job */
+       edg_wll_JobConnectionType       reltype;        /* Type (status) of the relationship */
+} edg_wll_RelationshipRecord;
+
 
 
 /**
index abc51e1..8717b14 100644 (file)
@@ -336,4 +336,5 @@ char *edg_wll_JDLField(edg_wll_JobStat *stat, const char *field_name)
                return NULL;
 }
 
+char *edg_wll_JobConnectionTypeNames[] = { NULL, "Active", "Inactive", "Cancelled" };