Search in sources :

Example 1 with HttpServerModule

use of io.airlift.http.server.HttpServerModule 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);
    }
}
Also used : MBeanModule(org.weakref.jmx.guice.MBeanModule) JmxHttpRpcModule(io.airlift.jmx.http.rpc.JmxHttpRpcModule) JmxModule(io.airlift.jmx.JmxModule) LogJmxModule(io.airlift.log.LogJmxModule) NodeModule(io.airlift.node.NodeModule) DiscoveryModule(io.airlift.discovery.client.DiscoveryModule) JaxrsModule(io.airlift.jaxrs.JaxrsModule) LogJmxModule(io.airlift.log.LogJmxModule) JsonModule(io.airlift.json.JsonModule) TraceTokenModule(io.airlift.tracetoken.TraceTokenModule) HttpEventModule(io.airlift.event.client.http.HttpEventModule) HttpServerModule(io.airlift.http.server.HttpServerModule) Announcer(io.airlift.discovery.client.Announcer) Injector(com.google.inject.Injector) Bootstrap(io.airlift.bootstrap.Bootstrap) JmxHttpModule(io.airlift.jmx.JmxHttpModule)

Example 2 with HttpServerModule

use of io.airlift.http.server.HttpServerModule 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);
    }
}
Also used : MBeanModule(org.weakref.jmx.guice.MBeanModule) JmxHttpRpcModule(io.airlift.jmx.http.rpc.JmxHttpRpcModule) JmxModule(io.airlift.jmx.JmxModule) LogJmxModule(io.airlift.log.LogJmxModule) NodeModule(io.airlift.node.NodeModule) DiscoveryModule(io.airlift.discovery.client.DiscoveryModule) JaxrsModule(io.airlift.jaxrs.JaxrsModule) LogJmxModule(io.airlift.log.LogJmxModule) JsonModule(io.airlift.json.JsonModule) TraceTokenModule(io.airlift.tracetoken.TraceTokenModule) HttpEventModule(io.airlift.event.client.http.HttpEventModule) HttpServerModule(io.airlift.http.server.HttpServerModule) Announcer(io.airlift.discovery.client.Announcer) Injector(com.google.inject.Injector) Bootstrap(io.airlift.bootstrap.Bootstrap) JmxHttpModule(io.airlift.jmx.JmxHttpModule)

Aggregations

Injector (com.google.inject.Injector)2 Bootstrap (io.airlift.bootstrap.Bootstrap)2 Announcer (io.airlift.discovery.client.Announcer)2 DiscoveryModule (io.airlift.discovery.client.DiscoveryModule)2 HttpEventModule (io.airlift.event.client.http.HttpEventModule)2 HttpServerModule (io.airlift.http.server.HttpServerModule)2 JaxrsModule (io.airlift.jaxrs.JaxrsModule)2 JmxHttpModule (io.airlift.jmx.JmxHttpModule)2 JmxModule (io.airlift.jmx.JmxModule)2 JmxHttpRpcModule (io.airlift.jmx.http.rpc.JmxHttpRpcModule)2 JsonModule (io.airlift.json.JsonModule)2 LogJmxModule (io.airlift.log.LogJmxModule)2 NodeModule (io.airlift.node.NodeModule)2 TraceTokenModule (io.airlift.tracetoken.TraceTokenModule)2 MBeanModule (org.weakref.jmx.guice.MBeanModule)2