use of io.airlift.jmx.JmxModule in project airlift by airlift.
the class TestServer method setup.
@BeforeMethod
public void setup() throws Exception {
Bootstrap app = new Bootstrap(new TestingNodeModule(), new TestingHttpServerModule(), new JsonModule(), new JaxrsModule(), new JmxHttpModule(), new JmxModule(), new MainModule());
Injector injector = app.doNotInitializeLogging().initialize();
lifeCycleManager = injector.getInstance(LifeCycleManager.class);
server = injector.getInstance(TestingHttpServer.class);
client = new JettyHttpClient();
}
use of io.airlift.jmx.JmxModule 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);
}
}
use of io.airlift.jmx.JmxModule 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