Open Kilda Java Documentation
KafkaTopicsConfig.java
Go to the documentation of this file.
1 /* Copyright 2018 Telstra Open Source
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package org.openkilda.config;
17 
19 
21 
22 import com.sabre.oss.conf4j.annotation.Configuration;
23 import com.sabre.oss.conf4j.annotation.Default;
24 import com.sabre.oss.conf4j.annotation.FallbackKey;
25 import com.sabre.oss.conf4j.annotation.Key;
26 
27 @Configuration
28 @Key("kafka.topic")
29 @Mapping(target = KAFKA_TOPIC_MAPPING)
30 public interface KafkaTopicsConfig {
31  String KAFKA_TOPIC_MAPPING = "KAFKA_TOPIC";
32 
33  @Key("ctrl")
34  @Default("kilda.ctrl")
35  String getCtrlTopic();
36 
37  @Key("flow")
38  @FallbackKey("kafka.flow.topic")
39  @Default("kilda.flow")
40  String getFlowTopic();
41 
42  @Key("health.check")
43  @Default("kilda.health.check")
44  String getHealthCheckTopic();
45 
46  @Key("northbound")
47  @FallbackKey("kafka.northbound.topic")
48  @Default("kilda.northbound")
49  String getNorthboundTopic();
50 
51  @Key("opentsdb")
52  @Default("kilda.otsdb")
53  String getOtsdbTopic();
54 
55  @Key("simulator")
56  @Default("kilda.simulator")
57  String getSimulatorTopic();
58 
59  @Key("speaker")
60  @FallbackKey("kafka.speaker.topic")
61  @Default("kilda.speaker")
62  String getSpeakerTopic();
63 
64  @Key("stats")
65  @Default("kilda.stats")
66  String getStatsTopic();
67 
68  @Key("topo.eng")
69  @FallbackKey("kafka.topo.eng.topic")
70  @Default("kilda.topo.eng")
71  String getTopoEngTopic();
72 
73  @Key("topo.disco")
74  @Default("kilda.topo.disco")
75  String getTopoDiscoTopic();
76 
77  @Key("topo.cache")
78  @Default("kilda.topo.cache")
79  String getTopoCacheTopic();
80 
81  @Key("topo.nbworker")
82  @FallbackKey("kafka.nbworker.topic")
83  @Default("kilda.topo.nb")
84  String getTopoNbTopic();
85 }
target
Definition: nodes.py:50
topo
Definition: plan-b.py:45
Definition: __init__.py:1