| private final static Logger log = Logger.get(Main.class);
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);
|