conf.setInt("constAdaptor.sleepVariance", 1);
conf.setInt("constAdaptor.minSleep", 50);
conf.setInt("chukwaAgent.control.port", 0);
ChukwaAgent agent = new ChukwaAgent(conf);
RetryListOfCollectors clist = new RetryListOfCollectors(conf);
clist.add("http://localhost:"+PORTNO+"/chukwa");
HttpConnector conn = new HttpConnector(agent);
conn.setCollectors(clist);
conn.start();
Server server = new Server(PORTNO);
Context root = new Context(server, "/", Context.SESSIONS);