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();
}
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();
}
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();
}
Aggregations