fa9f7d985fa6addf5df7e9b8519a6ed6f9e3597b
[dcaegen2/services.git] /
1 /*
2 * ============LICENSE_START=======================================================
3 * ONAP : DATALAKE
4 * ================================================================================
5 * Copyright 2019 China Mobile
6 *=================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *     http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21 package org.onap.datalake.feeder.config;
22
23 import org.springframework.boot.SpringBootConfiguration;
24 import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
25 import org.springframework.boot.context.properties.ConfigurationProperties;
26
27 import lombok.Getter;
28 import lombok.Setter;
29
30 /**
31  * Mapping from src/main/resources/application.properties to Java configuration
32  * object
33  * 
34  * @author Guobiao Mo
35  *
36  */
37 @Getter
38 @Setter
39 @SpringBootConfiguration
40 @ConfigurationProperties
41 @EnableAutoConfiguration
42 public class ApplicationConfiguration {
43
44         //App general
45         private boolean async;
46         private boolean enableSSL;
47
48         private String timestampLabel;
49         private String rawDataLabel;
50
51         private String defaultTopicName;
52
53         //DMaaP
54         private String dmaapZookeeperHostPort;
55         private String dmaapKafkaHostPort;
56         private String dmaapKafkaGroup;
57         private String dmaapKafkaLogin;
58         private String dmaapKafkaPass;
59         private String dmaapKafkaSecurityProtocol;
60         
61         private long dmaapKafkaTimeout;
62         private String[] dmaapKafkaExclude;
63
64         private int dmaapCheckNewTopicInterval; //in millisecond
65
66         private int kafkaConsumerCount;
67
68         private String elasticsearchType;
69
70         //HDFS
71         private int hdfsBufferSize;     
72         private long hdfsFlushInterval;
73         private int hdfsBatchSize;
74
75         //Version
76         private String datalakeVersion;
77   
78         //Kibana
79         private String KibanaDashboardImportApi;
80 }