listener.setPort(portNumber);
listener.setMinThreads(1);
listener.setMaxThreads(httpThreads);
server.addListener(listener);
HttpContext context = new HttpContext();
context.setContextPath("/");
context.setAttribute(AzkabanServletContextListener.AZKABAN_SERVLET_CONTEXT_KEY, app);
server.addContext(context);
String staticDir = options.has(staticContentOpt) ? options.valueOf(staticContentOpt)
: DEFAULT_STATIC_DIR;
ServletHandler servlets = new ServletHandler();
context.addHandler(servlets);
context.setResourceBase(staticDir);
servlets.addServlet("Static", "/static/*", Default.class.getName());
servlets.addServlet("Index", "/", IndexServlet.class.getName());
servlets.addServlet("Logs", "/logs", LogServlet.class.getName());
servlets.addServlet("Job Detail", "/job", JobDetailServlet.class.getName());
servlets.addServlet("Job Execution History",