Search in sources :

Example 1 with TitusFederationModule

use of com.netflix.titus.federation.startup.TitusFederationModule in project titus-control-plane by Netflix.

the class EmbeddedTitusFederation method boot.

public EmbeddedTitusFederation boot() {
    logger.info("Starting Titus Federation");
    injector = InjectorBuilder.fromModules(new EmbeddedJettyModule(httpPort), new ArchaiusModule() {

        @Override
        protected void configureArchaius() {
            // We can set some properties only after the gateway is started.ł
            config.setProperty("titus.federation.cells", buildCellString());
            bindApplicationConfigurationOverride().toInstance(config);
        }
    }, new TitusFederationModule()).createInjector();
    return this;
}
Also used : ArchaiusModule(com.netflix.archaius.guice.ArchaiusModule) TitusFederationModule(com.netflix.titus.federation.startup.TitusFederationModule) EmbeddedJettyModule(com.netflix.titus.runtime.endpoint.common.rest.EmbeddedJettyModule)

Aggregations

ArchaiusModule (com.netflix.archaius.guice.ArchaiusModule)1 TitusFederationModule (com.netflix.titus.federation.startup.TitusFederationModule)1 EmbeddedJettyModule (com.netflix.titus.runtime.endpoint.common.rest.EmbeddedJettyModule)1