Search in sources :

Example 1 with FederationEndpointModule

use of com.netflix.titus.federation.endpoint.FederationEndpointModule in project titus-control-plane by Netflix.

the class TitusFederationModule method configure.

@Override
protected void configure() {
    bind(Archaius2ConfigurationLogger.class).asEagerSingleton();
    bind(Registry.class).toInstance(new DefaultRegistry());
    bind(SystemLogService.class).to(LoggingSystemLogService.class);
    bind(SystemAbortListener.class).to(LoggingSystemAbortListener.class);
    install(new GovernatorJerseySupportModule());
    install(new ContainerEventBusModule());
    install(new TitusEntitySanitizerModule());
    bind(HostCallerIdResolver.class).to(NoOpHostCallerIdResolver.class);
    bind(CellConnector.class).to(DefaultCellConnector.class);
    bind(RemoteFederationConnector.class).to(DefaultRemoteFederationConnector.class);
    bind(CellWebClientConnector.class).to(DefaultCellWebClientConnector.class);
    bind(WebClientFactory.class).toInstance(SimpleWebClientFactory.getInstance());
    bind(CellInfoResolver.class).to(DefaultCellInfoResolver.class);
    bind(RemoteFederationInfoResolver.class).to(DefaultRemoteFederationInfoResolver.class);
    install(new FederationEndpointModule());
    install(new ServiceModule());
}
Also used : Archaius2ConfigurationLogger(com.netflix.titus.common.util.archaius2.Archaius2ConfigurationLogger) LoggingSystemAbortListener(com.netflix.titus.common.runtime.internal.LoggingSystemAbortListener) SystemAbortListener(com.netflix.titus.common.runtime.SystemAbortListener) CellInfoResolver(com.netflix.titus.federation.service.CellInfoResolver) DefaultCellInfoResolver(com.netflix.titus.federation.service.DefaultCellInfoResolver) LoggingSystemLogService(com.netflix.titus.common.runtime.internal.LoggingSystemLogService) SystemLogService(com.netflix.titus.common.runtime.SystemLogService) RemoteFederationConnector(com.netflix.titus.federation.service.RemoteFederationConnector) DefaultRemoteFederationConnector(com.netflix.titus.federation.service.DefaultRemoteFederationConnector) GovernatorJerseySupportModule(com.netflix.governator.guice.jersey.GovernatorJerseySupportModule) DefaultCellWebClientConnector(com.netflix.titus.federation.service.DefaultCellWebClientConnector) CellWebClientConnector(com.netflix.titus.federation.service.CellWebClientConnector) SimpleWebClientFactory(com.netflix.titus.federation.service.SimpleWebClientFactory) WebClientFactory(com.netflix.titus.federation.service.WebClientFactory) DefaultRegistry(com.netflix.spectator.api.DefaultRegistry) Registry(com.netflix.spectator.api.Registry) CellConnector(com.netflix.titus.federation.service.CellConnector) DefaultCellConnector(com.netflix.titus.federation.service.DefaultCellConnector) ServiceModule(com.netflix.titus.federation.service.ServiceModule) ContainerEventBusModule(com.netflix.titus.common.util.guice.ContainerEventBusModule) FederationEndpointModule(com.netflix.titus.federation.endpoint.FederationEndpointModule) RemoteFederationInfoResolver(com.netflix.titus.federation.service.RemoteFederationInfoResolver) DefaultRemoteFederationInfoResolver(com.netflix.titus.federation.service.DefaultRemoteFederationInfoResolver) DefaultRegistry(com.netflix.spectator.api.DefaultRegistry) TitusEntitySanitizerModule(com.netflix.titus.runtime.TitusEntitySanitizerModule) NoOpHostCallerIdResolver(com.netflix.titus.runtime.endpoint.resolver.NoOpHostCallerIdResolver) HostCallerIdResolver(com.netflix.titus.runtime.endpoint.resolver.HostCallerIdResolver)

Aggregations

GovernatorJerseySupportModule (com.netflix.governator.guice.jersey.GovernatorJerseySupportModule)1 DefaultRegistry (com.netflix.spectator.api.DefaultRegistry)1 Registry (com.netflix.spectator.api.Registry)1 SystemAbortListener (com.netflix.titus.common.runtime.SystemAbortListener)1 SystemLogService (com.netflix.titus.common.runtime.SystemLogService)1 LoggingSystemAbortListener (com.netflix.titus.common.runtime.internal.LoggingSystemAbortListener)1 LoggingSystemLogService (com.netflix.titus.common.runtime.internal.LoggingSystemLogService)1 Archaius2ConfigurationLogger (com.netflix.titus.common.util.archaius2.Archaius2ConfigurationLogger)1 ContainerEventBusModule (com.netflix.titus.common.util.guice.ContainerEventBusModule)1 FederationEndpointModule (com.netflix.titus.federation.endpoint.FederationEndpointModule)1 CellConnector (com.netflix.titus.federation.service.CellConnector)1 CellInfoResolver (com.netflix.titus.federation.service.CellInfoResolver)1 CellWebClientConnector (com.netflix.titus.federation.service.CellWebClientConnector)1 DefaultCellConnector (com.netflix.titus.federation.service.DefaultCellConnector)1 DefaultCellInfoResolver (com.netflix.titus.federation.service.DefaultCellInfoResolver)1 DefaultCellWebClientConnector (com.netflix.titus.federation.service.DefaultCellWebClientConnector)1 DefaultRemoteFederationConnector (com.netflix.titus.federation.service.DefaultRemoteFederationConnector)1 DefaultRemoteFederationInfoResolver (com.netflix.titus.federation.service.DefaultRemoteFederationInfoResolver)1 RemoteFederationConnector (com.netflix.titus.federation.service.RemoteFederationConnector)1 RemoteFederationInfoResolver (com.netflix.titus.federation.service.RemoteFederationInfoResolver)1