30f6c3e344374ada48f54577ef0ed9e7f4148e80
[dcaegen2/collectors/hv-ves.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * dcaegen2-collectors-veshv
4  * ================================================================================
5  * Copyright (C) 2019 NOKIA
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 package org.onap.dcae.collectors.veshv.config.impl
21
22 import arrow.core.None
23 import arrow.core.Option
24 import com.google.gson.annotations.SerializedName
25 import org.onap.dcae.collectors.veshv.utils.logging.LogLevel
26 import org.onap.dcaegen2.services.sdk.model.streams.dmaap.KafkaSink
27
28 /**
29  * @author Pawel Biniek <pawel.biniek@nokia.com>
30  * @since February 2019
31  */
32 internal data class PartialConfiguration(
33         @SerializedName("server.listenPort")
34         val listenPort: Option<Int> = None,
35         @SerializedName("server.idleTimeoutSec")
36         val idleTimeoutSec: Option<Long> = None,
37         @SerializedName("server.maxPayloadSizeBytes")
38         val maxPayloadSizeBytes: Option<Int> = None,
39
40         @SerializedName("cbs.firstRequestDelaySec")
41         val firstRequestDelaySec: Option<Long> = None,
42         @SerializedName("cbs.requestIntervalSec")
43         val requestIntervalSec: Option<Long> = None,
44
45         @SerializedName("security.sslDisable")
46         val sslDisable: Option<Boolean> = None,
47         @SerializedName("security.keys.keyStoreFile")
48         val keyStoreFile: Option<String> = None,
49         @SerializedName("security.keys.keyStorePassword")
50         val keyStorePassword: Option<String> = None,
51         @SerializedName("security.keys.trustStoreFile")
52         val trustStoreFile: Option<String> = None,
53         @SerializedName("security.keys.trustStorePassword")
54         val trustStorePassword: Option<String> = None,
55
56         @SerializedName("logLevel")
57         val logLevel: Option<LogLevel> = None,
58
59         @Transient
60         var streamPublishers: Option<List<KafkaSink>> = None
61 )