-
Notifications
You must be signed in to change notification settings - Fork 0
/
adapters.xml
68 lines (55 loc) · 3.56 KB
/
adapters.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0"?>
<adapters_conf id="KafkaConnector">
<metadata_provider>
<adapter_class>com.lightstreamer.kafka_connector.adapters.pub.KafkaConnectorMetadataAdapter</adapter_class>
<param name="logging.configuration.path">log4j.properties</param>
</metadata_provider>
<data_provider name="QuickStart">
<adapter_class>com.lightstreamer.kafka_connector.adapters.KafkaConnectorDataAdapter</adapter_class>
<param name="bootstrap.servers">broker:29094</param>
<param name="group.id">quick-start-group</param>
<!-- Encryption Settings -->
<param name="encryption.enable">true</param>
<param name="encryption.protocol">TLSv1.3</param>
<param name="encryption.hostname.verification.enable">false</param>
<param name="encryption.truststore.path">secrets/kafka-connector.truststore.jks</param>
<param name="encryption.truststore.password">kafka-connector-truststore-password</param>
<param name="encryption.keystore.enable">true</param>
<param name="encryption.keystore.path">secrets/kafka-connector.keystore.jks</param>
<param name="encryption.keystore.password">kafka-connector-password</param>
<param name="encryption.keystore.key.password">kafka-connector-password</param>
<param name="item-template.stock">stock-#{index=KEY}</param>
<param name="map.stocks.to">item-template.stock</param>
<param name="consumer.auto.offset.reset">earliest</param>
<param name="key.evaluator.type">INTEGER</param>
<param name="value.evaluator.type">JSON</param>
<param name="value.evaluator.schema.registry.enable">true</param>
<param name="schema.registry.url">https://schema-registry:8084</param>
<param name="schema.registry.encryption.truststore.path">secrets/kafka-connector.truststore.jks</param>
<param name="schema.registry.encryption.truststore.password">kafka-connector-truststore-password</param>
<param name="schema.registry.encryption.keystore.enable">true</param>
<param name="schema.registry.encryption.keystore.path">secrets/kafka-connector.keystore.jks</param>
<param name="schema.registry.encryption.keystore.password">kafka-connector-password</param>
<param name="schema.registry.encryption.keystore.key.password">kafka-connector-password</param>
<!-- FIELDS MAPPING SECTION -->
<param name="field.ts">#{TIMESTAMP}</param>
<param name="field.topic">#{TOPIC}</param>
<param name="field.offset">#{OFFSET}</param>
<param name="field.partition">#{PARTITION}</param>
<!-- Extraction of the record offset mapped to the field "offset". -->
<param name="field.timestamp">#{VALUE.timestamp}</param>
<param name="field.time">#{VALUE.time}</param>
<param name="field.stock_name">#{VALUE.name}</param>
<param name="field.last_price">#{VALUE.last_price}</param>
<param name="field.ask">#{VALUE.ask}</param>
<param name="field.ask_quantity">#{VALUE.ask_quantity}</param>
<param name="field.bid">#{VALUE.bid}</param>
<param name="field.bid_quantity">#{VALUE.bid_quantity}</param>
<param name="field.pct_change">#{VALUE.pct_change}</param>
<param name="field.min">#{VALUE.min}</param>
<param name="field.max">#{VALUE.max}</param>
<param name="field.ref_price">#{VALUE.ref_price}</param>
<param name="field.open_price">#{VALUE.open_price}</param>
<param name="field.item_status">#{VALUE.item_status}</param>
</data_provider>
</adapters_conf>