use of com.netflix.governator.guice.jersey.GovernatorJerseySupportModule 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());
}
use of com.netflix.governator.guice.jersey.GovernatorJerseySupportModule in project titus-control-plane by Netflix.
the class TitusMasterModule method configure.
@Override
protected void configure() {
// Configuration
bind(CellInfoResolver.class).to(ConfigurableCellInfoResolver.class);
// Titus supervisor
install(new SupervisorServiceModule());
install(new SupervisorEndpointModule());
install(new TitusEntitySanitizerModule());
// Feature flags
install(new FeatureFlagModule());
// Kubernetes
Preconditions.checkNotNull(mode, "Kube mode not set");
if (mode == Mode.KUBE) {
install(new KubeModule());
} else if (mode == Mode.EMBEDDED_KUBE) {
install(new KubeControllerModule());
install(new KubePodModule());
}
// Storage
install(new StoreModule());
// Service
install(new AuditModule());
install(new SchedulerModule());
install(new V3JobManagerModule());
install(new ContainerHealthServiceModule());
Multibinder.newSetBinder(binder(), ContainerHealthService.class).addBinding().to(AlwaysHealthyContainerHealthService.class);
install(new ManagementModule());
// REST/GRPC
bind(V3EndpointModule.V3_LOG_STORAGE_INFO).toInstance(EmptyLogStorageInfo.INSTANCE);
bind(ContextResolver.class).toInstance(EmptyContextResolver.INSTANCE);
if (enableREST) {
install(new GovernatorJerseySupportModule());
// This should be in JerseyModule, but overrides get broken if we do that (possibly Governator bug).
bind(HttpCallerIdResolver.class).to(ByRemoteAddressHttpCallerIdResolver.class);
bind(HostCallerIdResolver.class).to(NoOpHostCallerIdResolver.class);
install(new JerseyModule());
}
install(new JobCoordinatorAdmissionModule());
install(new MasterEndpointModule());
install(new HealthModule());
install(new V3EndpointModule());
install(new AutoScalingModule());
install(new LoadBalancerModule());
install(new EvictionServiceModule());
install(new EvictionEndpointModule());
}
use of com.netflix.governator.guice.jersey.GovernatorJerseySupportModule in project titus-control-plane by Netflix.
the class GatewayEndpointModule method configure.
@Override
protected void configure() {
bind(HostCallerIdResolver.class).to(NoOpHostCallerIdResolver.class);
install(new CallMetadataResolveModule());
if (enableREST) {
install(new GovernatorJerseySupportModule());
install(new GatewayJerseyModule());
}
install(new GatewayGrpcModule());
}
Aggregations