if (startHttp) {
try {
String webPath = getWebPath(conf);
boolean findport = FlumeConfiguration.get().getNodeAutofindHttpPort();
this.http = new StatusHttpServer("flumeagent", webPath, "0.0.0.0", conf
.getNodeStatusPort(), findport);
http.addServlet(jerseyNodeServlet(), "/node/*");
http.start();
} catch (IOException e) {
LOG.error("Flume node failed: " + e.getMessage(), e);