use of io.airlift.bootstrap.Bootstrap in project airlift by airlift.
the class Main method main.
public static void main(String[] args) {
Bootstrap app = new Bootstrap(new NodeModule(), new DiscoveryModule(), new HttpServerModule(), new JsonModule(), new JaxrsModule(), new MBeanModule(), new JmxModule(), new JmxHttpModule(), new JmxHttpRpcModule(), new LogJmxModule(), new HttpEventModule(), new TraceTokenModule(), new MainModule());
try {
Injector injector = app.initialize();
injector.getInstance(Announcer.class).start();
} catch (Throwable e) {
log.error(e);
System.exit(1);
}
}
Aggregations