String itd0 = "<td align=\"right\">";
String itd1 = "</td>";
String isp0 = "<span>";
String isp1 = "</span>";
try {
TimeWindow t = (TimeWindow) process.getTimeWindowInit();
if(t != null) {
long now = System.currentTimeMillis();
String tS = t.getStart(""+now);
String tE = t.getEnd(""+now);
initTime = getDuration(jobid,tE,tS);
if(t.isEstimated()) {
isp0 = "<span title=\"estimated\" class=\"health_green\">";
}
else {
isp0 = "<span class=\"health_black\">";
}
}
boolean cluetips_disabled = true;
if(cluetips_disabled) {
if(!initTime.equals("00")) {
String p_idJob = pname_idJob+"="+job.getDuccId().getFriendly();
String p_idPro = pname_idPro+"="+process.getDuccId().getFriendly();
initTime = "<a href=\""+duccUimaInitializationReport+"?"+p_idJob+"&"+p_idPro+"\" onclick=\"var newWin = window.open(this.href,'child','height=600,width=475,scrollbars'); newWin.focus(); return false;\">"+initTime+"</a>";
loadme.append("");
}
}
else {
List<IUimaPipelineAEComponent> upcList = jp.getUimaPipelineComponents();
if(upcList != null) {
if(!upcList.isEmpty()) {
String id = ""+process.getDuccId().getFriendly();
initTime = "<a class=\"classLoad\" title=\""+id+"\" href=\"#loadme"+id+"\" rel=\"#loadme"+id+"\">"+initTime+"</a>";
loadme.append("<div id=\"loadme"+id+"\">");
loadme.append("<table>");
loadme.append("<tr>");
String ch1 = "Name";
String ch2 = "State";
String ch3 = "Time";
loadme.append("<td>"+"<b>"+ch1+"</b>");
loadme.append("<td>"+"<b>"+ch2+"</b>");
loadme.append("<td>"+"<b>"+ch3+"</b>");
Iterator<IUimaPipelineAEComponent> upcIterator = upcList.iterator();
while(upcIterator.hasNext()) {
IUimaPipelineAEComponent upc = upcIterator.next();
String iName = upc.getAeName();
String iState = upc.getAeState().toString();
String iTime = FormatHelper.duration(upc.getInitializationTime());
loadme.append("<tr>");
loadme.append("<td>"+iName);
loadme.append("<td>"+iState);
loadme.append("<td>"+iTime);
}
loadme.append("</table>");
loadme.append("</div>");
}
}
}
}
catch(Exception e) {
duccLogger.trace(location, jobid, "no worries", e);
}
catch(Throwable t) {
duccLogger.trace(location, jobid, "no worries", t);
}
cbList[index].append(itd0);
cbList[index].append(isp0);
cbList[index].append(loadme);
cbList[index].append(initTime);
cbList[index].append(isp1);
cbList[index].append(itd1);
break;
}
// Time:run
index++; // jp.11
String runTime = "00";
String rtd0 = "<td align=\"right\">";
String rtd1 = "</td>";
String rsp0 = "<span>";
String rsp1 = "</span>";
// <UIMA-3351>
boolean useTimeRun = true;
switch(sType) {
case SPC:
break;
case SPU:
break;
case MR:
break;
case JD:
break;
case UIMA:
if(!process.isAssignedWork()) {
useTimeRun = false;
}
break;
default:
break;
}
// </UIMA-3351>
if(useTimeRun) {
try {
TimeWindow t = (TimeWindow) process.getTimeWindowRun();
if(t != null) {
long now = System.currentTimeMillis();
String tS = t.getStart(""+now);
String tE = t.getEnd(""+now);
runTime = getDuration(jobid,tE,tS);
if(t.isEstimated()) {
rsp0 = "<span title=\"estimated\" class=\"health_green\">";
}
else {
rsp0 = "<span class=\"health_black\">";
}