public static void main(String[] args) throws Exception { Bootstrap app = new Bootstrap( new NodeModule(), new HttpServerModule(), new HttpEventModule(), new DiscoveryModule(), new JsonModule(), new MBeanModule(), new RackModule(), new JmxModule(), new JmxHttpRpcModule()); try { Injector injector = app.initialize(); injector.getInstance(Announcer.class).start(); } catch (Exception e) { Logger.get(Main.class).error(e); System.err.flush(); System.out.flush(); System.exit(0); } catch (Throwable t) { System.exit(0); } } }
new NodeModule(), new HttpServerModule(), new HttpEventModule(), new ReportingModule(), new ReportingClientModule(),
public static void main(String[] args) throws Exception { try { Bootstrap app = new Bootstrap( new DiscoveryModule(), new NodeModule(), new HttpServerModule(), new HttpEventModule(), new JsonModule(), new JaxrsModule(), new MBeanModule(), new JmxModule(), new AgentMainModule()); app.strictConfig().initialize(); } catch (Exception e) { log.error(e, "Startup failed"); System.exit(1); } } }
public static void main(String[] args) throws Exception { try { Bootstrap app = new Bootstrap( new NodeModule(), new HttpServerModule(), new HttpClientModule(Global.class), new HttpEventModule(), new DiscoveryModule(), new JsonModule(), new JaxrsModule(), new MBeanModule(), new JmxModule(), new CoordinatorMainModule(), installIfPropertyEquals(new LocalProvisionerModule(), "coordinator.provisioner", "local"), installIfPropertyEquals(new AwsProvisionerModule(), "coordinator.provisioner", "aws")); app.strictConfig().initialize(); } catch (Throwable e) { log.error(e, "Startup failed"); System.exit(1); } } }