@Test public void sendEvent() throws Exception { for (int i = 0; i < 100; i++) { Event t = Cat.getProducer().newEvent("Test", "Test"); t.addData("key and value"); t.complete(); } Thread.sleep(1000); }
protected int encodeRemoteCallLine( MessageTree tree, Event event, ChannelBuffer buf, Locator locator, Ruler ruler) { BufferHelper helper = m_bufferHelper; XmlBuilder b = new XmlBuilder(); StringBuilder sb = b.getResult(); int width = 6; int height = 18; int x = 0; int y = locator.getLine() * height + ruler.getOffsetY(); String logviewId = String.valueOf(event.getData()); b.branch(locator, x, y, width, height); x += locator.getLevel() * width; b.tagWithText( "text", "<a href='#'>[:: show ::]</a>", "x", x + 2, "y", y - 5, "font-size", "16", "stroke-width", "0", "fill", "blue", "onclick", "popup('" + logviewId + "');"); return helper.write(buf, sb.toString()); }