#define EDG_WLL_STAT_CLASSADS 1 /**< various job description fields */
#define EDG_WLL_STAT_CHILDREN 2 /**< list of subjob JobId's */
#define EDG_WLL_STAT_CHILDSTAT 4 /**< apply the flags recursively to subjobs */
+#define EDG_WLL_STAT_CHILDHIST_FAST 8 /**< partially complete histogram of child job states */
+#define EDG_WLL_STAT_CHILDHIST_THOROUGH 16 /**< full and up-to date histogram of child job states */
/* starting from bit 10 private flags begins - do not add 1024 and more! */
/** Return status of a single job.
else asprintf(&cflags,"%s","no_states");
}
+ if (flags & EDG_WLL_STAT_CHILDHIST_FAST) {
+ if (cflags) {
+ asprintf(&temp_cflags,"%s+%s",cflags,"childhist_fast");
+ free(cflags);
+ cflags=temp_cflags;
+ }
+ else asprintf(&cflags,"%s","childhist_fast");
+ }
+
+ if (flags & EDG_WLL_STAT_CHILDHIST_THOROUGH) {
+ if (cflags) {
+ asprintf(&temp_cflags,"%s+%s",cflags,"childhist_thorough");
+ free(cflags);
+ cflags=temp_cflags;
+ }
+ else asprintf(&cflags,"%s","childhist_thorough");
+ }
+
if (!cflags) cflags = strdup("");
return(cflags);
if (!strcmp(sflag,"childstat")) flags = flags | EDG_WLL_STAT_CHILDSTAT;
if (!strcmp(sflag,"no_jobs")) flags = flags | EDG_WLL_STAT_NO_JOBS;
if (!strcmp(sflag,"no_states")) flags = flags | EDG_WLL_STAT_NO_STATES;
+ if (!strcmp(sflag,"childhist_fast")) flags = flags | EDG_WLL_STAT_CHILDHIST_FAST;
+ if (!strcmp(sflag,"childhist_thorough")) flags = flags | EDG_WLL_STAT_CHILDHIST_THOROUGH;
sflag = strtok_r(NULL, "+", &last);
}