Search in sources :

Example 1 with EvictionConnectorModule

use of com.netflix.titus.runtime.connector.eviction.EvictionConnectorModule in project titus-control-plane by Netflix.

the class TitusGatewayModule 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);
    bind(Fabric8IOConnector.class).to(DefaultFabric8IOConnector.class).asEagerSingleton();
    install(new ContainerEventBusModule());
    install(new TitusContainerRegistryModule());
    install(new TitusEntitySanitizerModule());
    install(new TitusAdmissionModule());
    install(new JobSecurityValidatorModule());
    // Feature flags
    install(new FeatureFlagModule());
    install(new GatewayEndpointModule(enableREST));
    install(new TitusMasterConnectorModule());
    install(new JobManagerConnectorModule(JobEventPropagationUtil.CHECKPOINT_GATEWAY_CLIENT));
    install(new JobManagerDataReplicationModule());
    install(new EvictionConnectorModule());
    install(new RelocationClientConnectorModule());
    install(new RelocationDataReplicationModule());
    bind(V3_LOG_STORAGE_INFO).toInstance(EmptyLogStorageInfo.INSTANCE);
    install(new V3ServiceModule());
    install(new StoreModule());
}
Also used : Archaius2ConfigurationLogger(com.netflix.titus.common.util.archaius2.Archaius2ConfigurationLogger) SystemAbortListener(com.netflix.titus.common.runtime.SystemAbortListener) LoggingSystemAbortListener(com.netflix.titus.common.runtime.internal.LoggingSystemAbortListener) JobManagerConnectorModule(com.netflix.titus.runtime.connector.jobmanager.JobManagerConnectorModule) GatewayEndpointModule(com.netflix.titus.gateway.endpoint.GatewayEndpointModule) TitusMasterConnectorModule(com.netflix.titus.runtime.connector.titusmaster.TitusMasterConnectorModule) SystemLogService(com.netflix.titus.common.runtime.SystemLogService) LoggingSystemLogService(com.netflix.titus.common.runtime.internal.LoggingSystemLogService) TitusContainerRegistryModule(com.netflix.titus.runtime.connector.registry.TitusContainerRegistryModule) RelocationClientConnectorModule(com.netflix.titus.runtime.connector.relocation.RelocationClientConnectorModule) DefaultFabric8IOConnector(com.netflix.titus.runtime.connector.kubernetes.fabric8io.DefaultFabric8IOConnector) StoreModule(com.netflix.titus.gateway.store.StoreModule) DefaultRegistry(com.netflix.spectator.api.DefaultRegistry) Registry(com.netflix.spectator.api.Registry) ContainerEventBusModule(com.netflix.titus.common.util.guice.ContainerEventBusModule) TitusAdmissionModule(com.netflix.titus.runtime.endpoint.admission.TitusAdmissionModule) EvictionConnectorModule(com.netflix.titus.runtime.connector.eviction.EvictionConnectorModule) V3ServiceModule(com.netflix.titus.gateway.service.v3.V3ServiceModule) JobSecurityValidatorModule(com.netflix.titus.runtime.endpoint.admission.JobSecurityValidatorModule) DefaultRegistry(com.netflix.spectator.api.DefaultRegistry) JobManagerDataReplicationModule(com.netflix.titus.runtime.connector.jobmanager.JobManagerDataReplicationModule) FeatureFlagModule(com.netflix.titus.runtime.FeatureFlagModule) RelocationDataReplicationModule(com.netflix.titus.runtime.connector.relocation.RelocationDataReplicationModule) TitusEntitySanitizerModule(com.netflix.titus.runtime.TitusEntitySanitizerModule)

Aggregations

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 GatewayEndpointModule (com.netflix.titus.gateway.endpoint.GatewayEndpointModule)1 V3ServiceModule (com.netflix.titus.gateway.service.v3.V3ServiceModule)1 StoreModule (com.netflix.titus.gateway.store.StoreModule)1 FeatureFlagModule (com.netflix.titus.runtime.FeatureFlagModule)1 TitusEntitySanitizerModule (com.netflix.titus.runtime.TitusEntitySanitizerModule)1 EvictionConnectorModule (com.netflix.titus.runtime.connector.eviction.EvictionConnectorModule)1 JobManagerConnectorModule (com.netflix.titus.runtime.connector.jobmanager.JobManagerConnectorModule)1 JobManagerDataReplicationModule (com.netflix.titus.runtime.connector.jobmanager.JobManagerDataReplicationModule)1 DefaultFabric8IOConnector (com.netflix.titus.runtime.connector.kubernetes.fabric8io.DefaultFabric8IOConnector)1 TitusContainerRegistryModule (com.netflix.titus.runtime.connector.registry.TitusContainerRegistryModule)1 RelocationClientConnectorModule (com.netflix.titus.runtime.connector.relocation.RelocationClientConnectorModule)1 RelocationDataReplicationModule (com.netflix.titus.runtime.connector.relocation.RelocationDataReplicationModule)1