c5c877e1b4f7318003031531cefb31f237d59672
[policy/distribution.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Intel. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.distribution.reception.handling.sdc;
22
23 import java.util.List;
24
25 import org.onap.sdc.api.consumer.IConfiguration;
26 import org.onap.policy.distribution.reception.parameters.PssdConfigurationParametersGroup;
27
28 /**
29  * Properties for the handling Sdc
30  *
31  */
32 public class PssdConfiguration implements IConfiguration {
33
34     // Configuration file structure
35
36     // Configuration file properties
37     private PssdConfigurationParametersGroup configParameters = null;
38
39     /**
40      * Original constructor
41      *
42      * @param configParameters properties needed to be configured for the model loader
43      */
44     public PssdConfiguration(final PssdConfigurationParametersGroup configParameters) {
45         this.configParameters = configParameters;
46
47     }
48
49
50     @Override
51     public String getAsdcAddress() {
52         return configParameters.getAsdcAddress();
53     }
54
55     @Override
56     public List<String> getMsgBusAddress() {
57         return configParameters.getMsgBusAddress();
58     }
59
60     @Override
61     public String getUser() {
62         return configParameters.getUser();
63     }
64
65     @Override
66     public String getPassword() {
67         return configParameters.getPassword();
68     }
69
70     @Override
71     public int getPollingInterval() {
72         return configParameters.getPollingInterval();
73     }
74
75     @Override
76     public int getPollingTimeout() {
77         return configParameters.getPollingTimeout();
78     }
79
80     @Override
81     public List<String> getRelevantArtifactTypes() {
82         return configParameters.getArtifactTypes();
83     }
84
85     @Override
86     public String getConsumerGroup() {
87         return configParameters.getConsumerGroup();
88     }
89
90     @Override
91     public String getEnvironmentName() {
92         return configParameters.getEnvironmentName();
93     }
94
95     @Override
96     public String getConsumerID() {
97         return configParameters.getConsumerID();
98     }
99
100     @Override
101     public String getKeyStorePassword() {
102         return configParameters.getKeyStorePassword();
103     }
104
105     @Override
106     public String getKeyStorePath() {
107         return configParameters.getKeyStorePath();
108     }
109
110     @Override
111     public boolean activateServerTLSAuth() {
112         return configParameters.activateServerTLSAuth();
113     }
114
115     @Override
116     public boolean isFilterInEmptyResources() {
117         return configParameters.isFilterInEmptyResources();
118     }
119
120     @Override
121     public Boolean isUseHttpsWithDmaap() {
122         return configParameters.isUseHttpsWithDmaap();
123     }
124
125
126 }