public void start() {
Thread adminThread = new Thread(new Runnable() {
@Override
public void run() {
HelixAdminWebApp app = null;
try {
app = new HelixAdminWebApp(_zkAddr, _port);
app.start();
// Thread.currentThread().join();
_stopCountDown.await();
} catch (Exception e) {
e.printStackTrace();
} finally {
if (app != null) {
// System.err.println("Stopping HelixAdminWebApp");
app.stop();
}
}
}
});