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