You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2014/12/16 19:26:46 UTC
svn commit: r1646038 -
/uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandler.java
Author: degenaro
Date: Tue Dec 16 18:26:45 2014
New Revision: 1646038
URL: http://svn.apache.org/r1646038
Log:
UIMA-4069 DUCC Job Driver (JD) system classpath
Processes page summary line removal of "unassigned" and "limbo"
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandler.java
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandler.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandler.java?rev=1646038&r1=1646037&r2=1646038&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandler.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/java/org/apache/uima/ducc/ws/server/DuccHandler.java Tue Dec 16 18:26:45 2014
@@ -1137,18 +1137,23 @@ public class DuccHandler extends DuccAbs
sb.append(dispatch);
sb.append("</th>");
thSep(sb);
- // unassigned
- sb.append("<th title=\"The number of work items currently dispatched for which acknowledgement is yet to be received\">");
- sb.append("Unassigned: ");
- sb.append(unassigned);
- sb.append("</th>");
- thSep(sb);
- // limbo
- sb.append("<th title=\"The number of work items pending re-dispatch to an alternate Job Process. Each of these work items is essentially stuck waiting for its previous JP to terminate.\">");
- sb.append("Limbo: ");
- sb.append(limbo);
- sb.append("</th>");
- thSep(sb);
+ String jd_configuration_class = DuccPropertiesResolver.getInstance().getFileProperty(DuccPropertiesResolver.ducc_jd_configuration_class);
+ if(jd_configuration_class != null) {
+ if(jd_configuration_class.trim().equals("org.apache.uima.ducc.jd.config.JobDriverConfiguration")) {
+ // unassigned
+ sb.append("<th title=\"The number of work items currently dispatched for which acknowledgement is yet to be received\">");
+ sb.append("Unassigned: ");
+ sb.append(unassigned);
+ sb.append("</th>");
+ thSep(sb);
+ // limbo
+ sb.append("<th title=\"The number of work items pending re-dispatch to an alternate Job Process. Each of these work items is essentially stuck waiting for its previous JP to terminate.\">");
+ sb.append("Limbo: ");
+ sb.append(limbo);
+ sb.append("</th>");
+ thSep(sb);
+ }
+ }
break;
}
}