From e8a5c59b57c292158bb4deeec0fd0c4625cf400e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Thu, 30 Nov 2006 12:35:11 +0000 Subject: [PATCH] Flag-aware child histogram computation has been added to edg_wll_JobStatus() (no/fast/thorough histogram computation method) --- org.glite.lb.server/src/jobstat.c | 15 ++++++++++++++- org.glite.lb.ws-interface/src/LBTypes.xml.T | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/jobstat.c b/org.glite.lb.server/src/jobstat.c index c6b71db..8c6c491 100644 --- a/org.glite.lb.server/src/jobstat.c +++ b/org.glite.lb.server/src/jobstat.c @@ -164,7 +164,20 @@ int edg_wll_JobStatus( #if DAG_ENABLE if (stat->jobtype == EDG_WLL_STAT_DAG || stat->jobtype == EDG_WLL_STAT_COLLECTION) { - if (1) { + +// printf("edg_wll_JobStatus:i EDG_WLL_STAT_DAG || EDG_WLL_STAT_COLLECTION\n"); +// printf("flags: %d",flags); + + if (flags & EDG_WLL_STAT_CHILDHIST_FAST) { /* Fast Histogram */ +// printf("edg_wll_JobStatus: EDG_WLL_STAT_CHILDHIST_FAST\n"); + + edg_wll_GetSubjobHistogram(ctx, job, stat); + + } + + if (flags & EDG_WLL_STAT_CHILDHIST_THOROUGH) { /* Full (thorough) Histogram */ +// printf("edg_wll_JobStatus: EDG_WLL_STAT_CHILDHIST_THOROUGH\n"); + char *out[2]; edg_wll_Stmt sh; int num_sub, num_f, i; diff --git a/org.glite.lb.ws-interface/src/LBTypes.xml.T b/org.glite.lb.ws-interface/src/LBTypes.xml.T index 3e1d87c..1944ad3 100644 --- a/org.glite.lb.ws-interface/src/LBTypes.xml.T +++ b/org.glite.lb.ws-interface/src/LBTypes.xml.T @@ -18,6 +18,8 @@ Include also long job descriptions (JDL). Return list of subjobs of a DAG. Return state of the subjobs, i.e. apply other flags recursively + Return a histogram of subjob states (fast computation method, certain subjobs will be in an "unknown" state) + Return a full histogram of subjob states. -- 1.8.2.3