Merge pull request #142 from OpenBankProject/issue139

issue #139 - new KafkaLibMapeedConnector
This commit is contained in:
Simon Redfern 2016-08-25 17:31:03 +02:00 committed by GitHub
commit eb458cf241
4 changed files with 1067 additions and 5 deletions

View File

@ -209,6 +209,11 @@
<artifactId>signpost-commonshttp4</artifactId>
<version>1.2.1.2</version>
</dependency>
<dependency>
<groupId>com.tesobe.obp</groupId>
<artifactId>obp-ri-kafka</artifactId>
<version>2016.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>

View File

@ -10,6 +10,7 @@
connector=mapped
#connector=mongodb
#connector=kafka
#connector=kafka_lib_v0
#connector=...
#if using kafka connector, set zookeeper host

View File

@ -37,12 +37,19 @@ object Connector extends SimpleInjector {
val connector = new Inject(buildOne _) {}
def buildOne: Connector =
Props.get("connector").openOrThrowException("no connector set") match {
case "mapped" => LocalMappedConnector
case "mongodb" => LocalConnector
case "kafka" => KafkaMappedConnector
def buildOne: Connector = {
val connectorProps = Props.get("connector").openOrThrowException("no connector set")
if (connectorProps.startsWith("kafka_lib")) {
KafkaLibMappedConnector
} else {
connectorProps match {
case "mapped" => LocalMappedConnector
case "mongodb" => LocalConnector
case "kafka" => KafkaMappedConnector
}
}
}
}

File diff suppressed because it is too large Load Diff