@Override public Module getInMemoryModules() { return new DataFabricInMemoryModule(txClientId); }
@Override protected void configure() { // Bind TxDs2 stuff bind(QueueClientFactory.class).to(InMemoryQueueClientFactory.class).in(Singleton.class); bind(QueueAdmin.class).to(InMemoryQueueAdmin.class).in(Singleton.class); // bind transactions bind(TransactionSystemClientService.class).to(DelegatingTransactionSystemClientService.class); install(Modules.override(new TransactionModules(txClientId).getInMemoryModules()).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()); } }
@Override protected void configure() { // bind transactions bind(TransactionSystemClientService.class).to(DelegatingTransactionSystemClientService.class); install(Modules.override(new TransactionModules(txClientId).getInMemoryModules()).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 getInMemoryModules() { return new DataFabricInMemoryModule(txClientId); }