- begin2; current = current.node("H2", "summary"); current.node("p", "index=" + ndx.getIndexMetadata().getName() + ", locators=" + nlocators + ", hosts=" + "ms"); if (doRangeCount) { current.node("p", "rangeCount=" + rangeCount + ", elapsed=" + elapsed2 + "ms"); current.node("H2","shards").node("pre", sb.toString()); current.node("H2","hosts").node("pre", sb.toString());
/** * @todo This does not actually test anything. You have to inspect the * output. */ public void testXMLBuilder() throws IOException { final StringWriter w = new StringWriter(); final XMLBuilder xml = new XMLBuilder(w); XMLBuilder.Node close = xml.root("data") .attr("id", "TheRoot") .attr("name", "Test") .node("child", "My Child") .node("child") .attr("name", "My Child") .close() .node("child") .attr("name", "My Child") .text("Content") .close() .close(); assertTrue(close == null); if(log.isInfoEnabled()) log.info(w.toString()); }
current.node("h1", "Query"); current.node("h2", "SPARQL"); current.node("pre", queryString); current.node("h2", "Parse Tree"); current.node("pre", parseTree.dump("")); current.node("h2", "Original AST"); current.node("pre", originalAST.toString()); current.node("h2", "Static Analysis Statistics"); current.node("p", "Static Analysis Statistics are not available."); current = current.node("table"); current = current.node("tr"); current.node("th").text("object").close(); current.node("th").text("category").close(); current.node("th").text("elapsed [ms]").close(); current.node("th").text("elapsed [us]").close(); current.node("th").text("numCalls").close(); current = current.close(); // tr
current.node("h1", "Query"); current.node("h2", "SPARQL"); current.node("pre", queryString); current.node("h2", "Parse Tree"); current.node("pre", parseTree.dump("")); current.node("h2", "Original AST"); current.node("pre", originalAST.toString()); current.node("h2", "Static Analysis Statistics"); current.node("p", "Static Analysis Statistics are not available."); current = current.node("table"); current = current.node("tr"); current.node("th").text("object").close(); current.node("th").text("category").close(); current.node("th").text("elapsed [ms]").close(); current.node("th").text("elapsed [us]").close(); current.node("th").text("numCalls").close(); current = current.close(); // tr
current.node("h1", "Dump Journal").node("p", "Running..."); if (buildVer == null ) buildVer = "N/A"; current.node("p").text("Build Version=").node("span") .attr("id", "buildVersion").text(buildVer).close() .close(); if (gitCommit == null || "${git.commit}".equals(gitCommit)) gitCommit = "N/A"; current.node("p").text("Build Git Commit=").node("span") .attr("id", "gitCommit").text(gitCommit).close() .close(); if (gitBranch == null || "${git.branch}".equals(gitBranch)) gitBranch = "N/A"; current.node("p").text("Build Git Branch=").node("span") .attr("id", "gitBranch").text(gitBranch).close() .close(); current.node("p").text("Accepted query count=") .node("span").attr("id", "accepted-query-count") .text("" +getBigdataRDFContext().getQueryIdFactory().get()) .close() .close(); current.node("p").text("Running query count=") .node("span").attr("id", "running-query-count") .text("" + getBigdataRDFContext().getQueries().size()).close()
current.node("h1", "Dump Journal").node("p", "Running..."); if (buildVer == null ) buildVer = "N/A"; current.node("p").text("Build Version=").node("span") .attr("id", "buildVersion").text(buildVer).close() .close(); if (gitCommit == null || "${git.commit}".equals(gitCommit)) gitCommit = "N/A"; current.node("p").text("Build Git Commit=").node("span") .attr("id", "gitCommit").text(gitCommit).close() .close(); if (gitBranch == null || "${git.branch}".equals(gitBranch)) gitBranch = "N/A"; current.node("p").text("Build Git Branch=").node("span") .attr("id", "gitBranch").text(gitBranch).close() .close(); current.node("p").text("Accepted query count=") .node("span").attr("id", "accepted-query-count") .text("" +getBigdataRDFContext().getQueryIdFactory().get()) .close() .close(); current.node("p").text("Running query count=") .node("span").attr("id", "running-query-count") .text("" + getBigdataRDFContext().getQueries().size()).close()
current.node("h1", "Query"); current = current.node("FORM").attr("method", "POST") .attr("action", ""); current.node("p") .text("solutions=").node("span").attr("class", "solutions") .text(""+ solutionsOut).close() .text(", chunks=").node("span").attr("class", "chunks") .text(""+ chunksOut).close() .text(", children=").node("span").attr("class", "children") .text("" + children.length).close() .node("a").attr("href", detailsURL) .attr("class", "details-url") .text("details").close()// .close(); current = current.node("p"); current.node("INPUT").attr("type", "hidden").attr( "name", "queryId").attr("value", queryId) .close(); current.node("INPUT").attr("type", "submit").attr( "name", CANCEL_QUERY).attr("value", "Cancel") .close();
body.node("pre").text(thisOp.toString())// .close(); body.node("br") .text("totalElapsed=" + totalElapsedMillis + "ms, elapsed=" + elapsedMillis + "ms, parsed=" + parsed + ", tps=" + tmp.triplesPerSecond() + ", done=" + tmp.isDone()).close(); body.node("p").text("ABORT").close()// .node("pre").text(e.getUpdate().toString()).close()// .node("pre").text(w.toString()).close()// .node("p").text("totalElapsed=" + totalElapsedMillis + "ms, elapsed=" + elapsedMillis + "ms") .close(); body.node("hr").close(); body.node("pre") .text(e.getUpdate().toString()) .close(); body.node("p") .text("totalElapsed=" + totalElapsedMillis + "ms, elapsed=" + elapsedMillis + "ms, connFlush="+TimeUnit.NANOSECONDS.toMillis(e.getConnectionFlushNanos())// + "ms, insertClause=" + TimeUnit.NANOSECONDS.toMillis(deleteInsertWhereStats.whereNanos.get())
body.node("pre").text(thisOp.toString())// .close(); body.node("br") .text("totalElapsed=" + totalElapsedMillis + "ms, elapsed=" + elapsedMillis + "ms, parsed=" + parsed + ", tps=" + tmp.triplesPerSecond() + ", done=" + tmp.isDone()).close(); body.node("p").text("ABORT").close()// .node("pre").text(e.getUpdate().toString()).close()// .node("pre").text(w.toString()).close()// .node("p").text("totalElapsed=" + totalElapsedMillis + "ms, elapsed=" + elapsedMillis + "ms") .close(); body.node("hr").close(); body.node("pre") .text(e.getUpdate().toString()) .close(); body.node("p") .text("totalElapsed=" + totalElapsedMillis + "ms, elapsed=" + elapsedMillis + "ms, connFlush="+TimeUnit.NANOSECONDS.toMillis(e.getConnectionFlushNanos())// + "ms, insertClause=" + TimeUnit.NANOSECONDS.toMillis(deleteInsertWhereStats.whereNanos.get())
current.node("h1", "Query"); current = current.node("FORM").attr("method", "POST") .attr("action", ""); current.node("p") .text("solutions=").node("span").attr("class", "solutions") .text(""+ solutionsOut).close() .text(", chunks=").node("span").attr("class", "chunks") .text(""+ chunksOut).close() .text(", children=").node("span").attr("class", "children") .text("" + children.length).close() .text(", elapsed=").node("span").attr("class", "elapsed") .text("" + elapsedMillis).close() .text("ms, ") .node("a").attr("href", detailsURL) .attr("class", "details-url") .text("details").close()// .close(); current = current.node("p"); current.node("INPUT").attr("type", "hidden").attr( "name", "queryId").attr("value", queryId)
current.node("h1", "Update"); current = current.node("FORM").attr("method", "POST") .attr("action", ""); current.node("p") .attr("class", "update") .text("elapsed=").node("span") .attr("class", "elapsed").text("" + elapsedMillis).close() .text("ms") .text(", ").text("mutationCount=").node("span") .attr("class", "mutationCount").text("" + mutationCount).close() .text(", ").node("a").attr("href", detailsURL) .attr("class", "details-url") .text("details").close()// .close(); current = current.node("p"); current.node("INPUT").attr("type", "hidden").attr( "name", "queryId").attr("value", queryId) .close(); current.node("INPUT").attr("type", "submit").attr( "name", CANCEL_QUERY).attr("value", "Cancel") .close(); current = current.close(); // close <p>
- begin2; current = current.node("H2", "summary"); current.node("p", "index=" + ndx.getIndexMetadata().getName() + ", locators=" + nlocators + ", hosts=" + "ms"); if (doRangeCount) { current.node("p", "rangeCount=" + rangeCount + ", elapsed=" + elapsed2 + "ms"); current.node("H2","shards").node("pre", sb.toString()); current.node("H2","hosts").node("pre", sb.toString());
current.node("h1", "Update"); current = current.node("FORM").attr("method", "POST") .attr("action", ""); current.node("p") .attr("class", "update") .text("elapsed=").node("span") .attr("class", "elapsed").text("" + elapsedMillis).close() .text("ms") .text(", ").text("mutationCount=").node("span") .attr("class", "mutationCount").text("" + mutationCount).close() .text(", ").node("a").attr("href", detailsURL) .attr("class", "details-url") .text("details").close()// .close(); current = current.node("p"); current.node("INPUT").attr("type", "hidden").attr( "name", "queryId").attr("value", queryId) .close(); current.node("INPUT").attr("type", "submit").attr( "name", CANCEL_QUERY).attr("value", "Cancel") .close(); current = current.close(); // close <p>
current.node("h1", "Task"); current = current.node("FORM").attr("method", "POST") .attr("action", ""); current.node("p") .attr("class", "task") .text("elapsed=").node("span") .attr("class", "elapsed").text("" + elapsedMillis).close() .text("ms") .text(", ").node("a").attr("href", detailsURL) .attr("class", "details-url") .text("details").close()// .close(); current = current.node("p"); current.node("INPUT").attr("type", "hidden").attr( "name", "queryId").attr("value", queryId) .close(); current.node("INPUT").attr("type", "submit").attr( "name", CANCEL_QUERY).attr("value", "Cancel") .close(); current = current.close(); // close <p> current = current.close(); // close <FORM>
current.node("h1", "Task"); current = current.node("FORM").attr("method", "POST") .attr("action", ""); current.node("p") .attr("class", "task") .text("elapsed=").node("span") .attr("class", "elapsed").text("" + elapsedMillis).close() .text("ms") .text(", ").node("a").attr("href", detailsURL) .attr("class", "details-url") .text("details").close()// .close(); current = current.node("p"); current.node("INPUT").attr("type", "hidden").attr( "name", "queryId").attr("value", queryId) .close(); current.node("INPUT").attr("type", "submit").attr( "name", CANCEL_QUERY).attr("value", "Cancel") .close(); current = current.close(); // close <p> current = current.close(); // close <FORM>