2a72a76f912b45ea6d6063b8b71c303ed34b803b
[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 long dmaapKafkaTimeout;
58         private String[] dmaapKafkaExclude;
59
60         private int dmaapCheckNewTopicIntervalInSec;
61
62         private int kafkaConsumerCount;
63
64         private String elasticsearchType;
65
66         //HDFS
67         private int hdfsBufferSize;     
68         private long hdfsFlushInterval;
69         private int hdfsBatchSize;
70
71         //Version
72         private String DatalakeVersion;
73 }