Search in sources :

Example 1 with AdminServer

use of com.netflix.iep.admin.AdminServer in project iep by Netflix.

the class OverrideModule method main.

public static void main(String[] args) {
    System.setProperty("netflix.iep.archaius.use-dynamic", "false");
    Injector injector = Guice.createInjector(new OverrideModule());
    AdminServer server = injector.getInstance(AdminServer.class);
    server.start();
}
Also used : Injector(com.google.inject.Injector) AdminServer(com.netflix.iep.admin.AdminServer)

Example 2 with AdminServer

use of com.netflix.iep.admin.AdminServer in project iep by Netflix.

the class EurekaModule method main.

public static void main(String[] args) {
    System.setProperty("netflix.iep.archaius.use-dynamic", "false");
    Injector injector = Guice.createInjector(new EurekaModule());
    AdminServer server = injector.getInstance(AdminServer.class);
    server.start();
}
Also used : Injector(com.google.inject.Injector) AdminServer(com.netflix.iep.admin.AdminServer)

Example 3 with AdminServer

use of com.netflix.iep.admin.AdminServer in project iep by Netflix.

the class AdminModule method main.

/**
 * Sample main that runs the admin with a default set of endpoints. Mostly used for
 * quick local testing of the module and common endpoints.
 */
public static void main(String[] args) {
    Injector injector = Guice.createInjector(new AdminModule(), new AbstractModule() {

        @Override
        protected void configure() {
            bind(Registry.class).toInstance(new DefaultRegistry());
        }
    });
    AdminServer server = injector.getInstance(AdminServer.class);
    server.start();
}
Also used : Injector(com.google.inject.Injector) AdminServer(com.netflix.iep.admin.AdminServer) DefaultRegistry(com.netflix.spectator.api.DefaultRegistry) AbstractModule(com.google.inject.AbstractModule)

Aggregations

Injector (com.google.inject.Injector)3 AdminServer (com.netflix.iep.admin.AdminServer)3 AbstractModule (com.google.inject.AbstractModule)1 DefaultRegistry (com.netflix.spectator.api.DefaultRegistry)1