This repository was archived by the owner on Feb 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
main/java/com/bazaarvoice/emodb/queue
test/java/com/bazaarvoice/emodb/queue Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,11 @@ protected void configure() {
84
84
bind (DedupEventStoreChannels .class ).toInstance (DedupEventStoreChannels .isolated ("__dedupq_write:" , "__dedupq_read:" ));
85
85
bind (new TypeLiteral <Supplier <Boolean >>() {}).annotatedWith (DedupEnabled .class ).toInstance (Suppliers .ofInstance (true ));
86
86
install (new EventStoreModule ("bv.emodb.queue" , _metricRegistry ));
87
+ bind (KafkaAdminService .class ).asEagerSingleton ();
88
+ bind (KafkaProducerService .class ).asEagerSingleton ();
87
89
90
+ // Bind Step Function Service
91
+ bind (StepFunctionService .class ).asEagerSingleton ();
88
92
89
93
// Bind the Queue instance that the rest of the application will consume
90
94
bind (QueueService .class ).to (DefaultQueueService .class ).asEagerSingleton ();
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public class KafkaConfig {
58
58
lingerMsConfig = parameterValues .getOrDefault ("/" + UNIVERSE + "/emodb/kafka/lingerMs" , "1" );
59
59
60
60
// Configures the Kafka broker addresses for producer connections.
61
- bootstrapServersConfig = parameterValues .get ("/" + UNIVERSE + "/emodb/kafka/bootstrapServers" );
61
+ bootstrapServersConfig = parameterValues .getOrDefault ("/" + UNIVERSE + "/emodb/kafka/bootstrapServers" , "localhost:9092 " );
62
62
63
63
logger .info ("Kafka configurations loaded successfully from SSM." );
64
64
} catch (AmazonServiceException e ) {
Original file line number Diff line number Diff line change @@ -59,11 +59,6 @@ protected void configure() {
59
59
bind (HostDiscovery .class ).annotatedWith (DedupQueueHostDiscovery .class ).toInstance (mock (HostDiscovery .class ));
60
60
bind (JobHandlerRegistry .class ).toInstance (mock (JobHandlerRegistry .class ));
61
61
bind (JobService .class ).toInstance (mock (JobService .class ));
62
- bind (KafkaAdminService .class ).asEagerSingleton ();
63
- bind (KafkaProducerService .class ).asEagerSingleton ();
64
-
65
- // Bind Step Function Service
66
- bind (StepFunctionService .class ).asEagerSingleton ();
67
62
68
63
MetricRegistry metricRegistry = new MetricRegistry ();
69
64
bind (MetricRegistry .class ).toInstance (metricRegistry );
You can’t perform that action at this time.
0 commit comments