out.write("Machine");
out.write("</h2>");
pageContext.setAttribute("jvmEnv", new JVMEnvironment());
ServerRecommender rec = (ServerRecommender) application.getAttribute(AbstractMyrrixServlet.RECOMMENDER_KEY);
pageContext.setAttribute("rec", rec);
boolean readOnly = (Boolean) application.getAttribute(AbstractMyrrixServlet.READ_ONLY_KEY);
String localInputDir = String.valueOf(application.getAttribute(AbstractMyrrixServlet.LOCAL_INPUT_DIR_KEY));
pageContext.setAttribute("localInputDir", localInputDir);
String localInputDirDisplay;
if (localInputDir.length() > 32) {
localInputDirDisplay = localInputDir.substring(0, 32) + "...";
} else {
localInputDirDisplay = localInputDir;
}
pageContext.setAttribute("localInputDirDisplay", localInputDirDisplay);
pageContext.setAttribute("partition", application.getAttribute(AbstractMyrrixServlet.PARTITION_KEY));
@SuppressWarnings("unchecked")
ReloadingReference<List<?>> partitionRef =
(ReloadingReference<List<?>>) application.getAttribute(AbstractMyrrixServlet.ALL_PARTITIONS_REF_KEY);
int numPartitions = partitionRef == null ? 0 : partitionRef.get(1, TimeUnit.SECONDS).size();
pageContext.setAttribute("numPartitions", numPartitions);
out.write("<table>");
out.write("<tr>");
out.write("<td>");
out.write("Host");
out.write("</td>");
out.write("<td style=\"text-align:left\">");
out.write("<code>");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${jvmEnv.hostName}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("</code>");
out.write("</td>");
out.write("</tr>");
out.write("<tr>");
out.write("<td>");
out.write("Cores");
out.write("</td>");
out.write("<td style=\"text-align:left\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${jvmEnv.numProcessors}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("</td>");
out.write("</tr>");
out.write("<tr>");
out.write("<td>");
out.write("Heap Used");
out.write("</td>");
out.write("<td style=\"text-align:left\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${jvmEnv.usedMemoryMB}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write("MB (");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${jvmEnv.percentUsedMemory}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write('%');
out.write(')');
out.write("</td>");
out.write("</tr>");
out.write("<tr>");
out.write("<td>");
out.write("Logs");
out.write("</td>");
out.write("<td style=\"text-align:left\">");
out.write("<a target=\"_blank\" href=\"log.txt\">");
out.write("View");
out.write("</a>");
out.write("</td>");
out.write("</tr>");
if (numPartitions > 1) {
out.write("<tr>");
out.write("<td>");
out.write("Partition");
out.write("</td>");
out.write("<td style=\"text-align:left\">");
out.write('#');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${partition}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write(' ');
out.write('(');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${numPartitions}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
out.write(" total)");
out.write("</td>");
out.write("</tr>");
}
out.write("</table>");
out.write("</td>");
out.write("<td style=\"text-align:left\">");
out.write("<h2>");
out.write("Recommender");
out.write("</h2>");
out.write("<table>");
if (rec.getBucket() != null || rec.getInstanceID() != null) {
out.write("<tr>");
out.write("<td>");
out.write("Bucket");
out.write("</td>");