modules.add(new MessagingClientModule()); modules.add(new AuditModule().getDistributedModules()); modules.add(new AuthorizationEnforcementModule().getDistributedModules()); modules.add(new SecureStoreClientModule()); modules.add(new MetadataReaderWriterModules().getDistributedModules());
modules.add(new DiscoveryRuntimeModule().getDistributedModules()); modules.add(new AuditModule().getDistributedModules()); modules.add(new AuthorizationEnforcementModule().getDistributedModules()); modules.add(new SecureStoreModules().getDistributedModules()); modules.add(new MetadataReaderWriterModules().getDistributedModules());
new ViewAdminModules().getDistributedModules(), new StreamAdminModules().getDistributedModules(), new AuthorizationEnforcementModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new NotificationFeedClientModule());
@VisibleForTesting public static Injector createInjector(CConfiguration cConf, Configuration hConf) { return Guice.createInjector( new ConfigModule(cConf, hConf), new IOModule(), new ZKClientModule(), new ZKDiscoveryModule(), new KafkaClientModule(), new MetricsClientRuntimeModule().getDistributedModules(), new KafkaLogAppenderModule(), new DFSLocationModule(), new NamespaceQueryAdminModule(), new AuthorizationEnforcementModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new MessagingServerRuntimeModule().getDistributedModules() ); } }
@VisibleForTesting static Injector createInjector(CConfiguration cConf, Configuration hConf) { return Guice.createInjector( new ConfigModule(cConf, hConf), new ZKClientModule(), new DFSLocationModule(), new NamespaceQueryAdminModule(), new ZKDiscoveryModule(), new DataFabricModules("cdap.explore.ContextManager").getDistributedModules(), new DataSetsModules().getDistributedModules(), new ExploreClientModule(), new KafkaClientModule(), new AuditModule().getDistributedModules(), new AuthorizationEnforcementModule().getDistributedModules(), new SecureStoreClientModule(), new AuthenticationContextModules().getMasterModule(), new MessagingClientModule(), new AbstractModule() { @Override protected void configure() { bind(UGIProvider.class).to(RemoteUGIProvider.class).in(Scopes.SINGLETON); bind(MetricsCollectionService.class).to(NoOpMetricsCollectionService.class).in(Scopes.SINGLETON); // bind PrivilegesManager to a remote implementation, so it does not need to instantiate the authorizer bind(PrivilegesManager.class).to(RemotePrivilegesManager.class); bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class); } } ); }
@VisibleForTesting static Injector createGuiceInjector(CConfiguration cConf, Configuration hConf, TwillContext twillContext) { String txClientId = String.format("cdap.service.%s.%d", Constants.Service.LOGSAVER, twillContext.getInstanceId()); return Guice.createInjector( new ConfigModule(cConf, hConf), new IOModule(), new ZKClientModule(), new ZKDiscoveryModule(), new KafkaClientModule(), new MetricsClientRuntimeModule().getDistributedModules(), new DFSLocationModule(), new NamespaceQueryAdminModule(), new DataFabricModules(txClientId).getDistributedModules(), new DataSetsModules().getDistributedModules(), new DistributedLogFrameworkModule(twillContext), new KafkaLogAppenderModule(), new AuditModule().getDistributedModules(), new AuthorizationEnforcementModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new MessagingClientModule(), new AbstractModule() { @Override protected void configure() { bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class); bind(UGIProvider.class).to(RemoteUGIProvider.class).in(Scopes.SINGLETON); } } ); } }
@VisibleForTesting static Injector createGuiceInjector(CConfiguration cConf, Configuration hConf, String txClientId, TwillContext twillContext) { return Guice.createInjector( new ConfigModule(cConf, hConf), new IOModule(), new ZKClientModule(), new ZKDiscoveryModule(), new KafkaClientModule(), new MessagingClientModule(), new MetricsClientRuntimeModule().getDistributedModules(), new MetricsStoreModule(), new KafkaLogAppenderModule(), new DFSLocationModule(), new NamespaceQueryAdminModule(), new DataFabricModules(txClientId).getDistributedModules(), new DataSetsModules().getDistributedModules(), new MetricsProcessorModule(twillContext), new MetricsProcessorStatusServiceModule(), new AuditModule().getDistributedModules(), new AuthorizationEnforcementModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new AbstractModule() { @Override protected void configure() { bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class); } } ); }
new AuthenticationContextModules().getMasterModule(), new SecureStoreClientModule(), new AuthorizationEnforcementModule().getDistributedModules(), new AbstractModule() { @Override
new MetricsStoreModule(), new AuditModule().getDistributedModules(), new AuthorizationEnforcementModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new AbstractModule() {
new AuditModule().getDistributedModules(), new AuthorizationEnforcementModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new AbstractModule() {
new EntityVerifierModule(), new SecureStoreClientModule(), new AuthorizationEnforcementModule().getDistributedModules(), new AuthenticationContextModules().getMasterModule(), new AbstractModule() {
new KafkaClientModule(), new AuditModule().getDistributedModules(), new AuthorizationEnforcementModule().getDistributedModules(), new SecureStoreModules().getDistributedModules(), new AuthenticationContextModules().getMasterModule(),