@Override public Module getDistributedModules() { return new DataFabricDistributedModule(txClientId); }
@Override public void configure() { bind(ThriftClientProvider.class).toProvider(ThriftClientProviderSupplier.class); bind(HBaseTableUtil.class).toProvider(HBaseTableUtilFactory.class); // bind transactions bind(TransactionSystemClientService.class).to(DistributedTransactionSystemClientService.class); install(Modules.override(new TransactionModules(txClientId).getDistributedModules()).with(new AbstractModule() { @Override protected void configure() { // Binds the tephra MetricsCollector to the one that emit metrics via MetricsCollectionService bind(MetricsCollector.class).to(TransactionManagerMetricsCollector.class).in(Scopes.SINGLETON); } })); install(new TransactionExecutorModule()); // Bind the QueueAdmin, which is used in cdap master. This will be removed when Flow support is removed. bind(QueueAdmin.class).to(HBaseQueueAdmin.class).in(Singleton.class); }
@Override public void configure() { bind(ThriftClientProvider.class).toProvider(ThriftClientProviderSupplier.class); bind(HBaseTableUtil.class).toProvider(HBaseTableUtilFactory.class); // bind transactions bind(TransactionSystemClientService.class).to(DistributedTransactionSystemClientService.class); install(Modules.override(new TransactionModules(txClientId).getDistributedModules()).with(new AbstractModule() { @Override protected void configure() { // Binds the tephra MetricsCollector to the one that emit metrics via MetricsCollectionService bind(MetricsCollector.class).to(TransactionManagerMetricsCollector.class).in(Scopes.SINGLETON); } })); install(new TransactionExecutorModule()); install(new StorageModule()); }
@Override public Module getDistributedModules() { return new DataFabricDistributedModule(txClientId); }