5f74e2b26fd5614a2d2a72d758e367ccc721bc12
[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.io.File;
24 import java.util.ArrayList;
25 import java.util.List;
26 import java.util.Properties;
27 import org.onap.sdc.api.consumer.IConfiguration;
28
29 /**
30  * Properties for the handling Sdc
31  *
32  */
33 public class PSSDConfiguration implements IConfiguration {
34
35     // Configuration file structure
36
37     // Configuration file properties
38     private PSSDConfigurationParametersGroup configParameters=null;
39
40     /**
41      * Original constructor
42      *
43      * @param configParameters properties needed to be configured for the model loader
44      */
45     public PSSDConfiguration(PSSDConfigurationParametersGroup configParameters) {
46         this.configParameters = configParameters;
47
48     }
49
50
51     @Override
52     public String getAsdcAddress() {
53         return configParameters.getAsdcAddress();
54     }
55
56     @Override
57     public List<String> getMsgBusAddress() {
58         return configParameters.getMsgBusAddress();
59     }
60
61     @Override
62     public String getUser() {
63         return configParameters.getUser();
64     }
65
66     @Override
67     public String getPassword() {
68         return configParameters.getPassword();
69     }
70
71     @Override
72     public int getPollingInterval() {
73         return configParameters.getPollingInterval();
74     }
75
76     @Override
77     public int getPollingTimeout() {
78         return configParameters.getPollingTimeout();
79     }
80
81     @Override
82     public List<String> getRelevantArtifactTypes() {
83         return configParameters.getArtifactTypes();
84     }
85
86     @Override
87     public String getConsumerGroup() {
88         return configParameters.getConsumerGroup();
89     }
90
91     @Override
92     public String getEnvironmentName() {
93         return configParameters.getEnvironmentName();
94     }
95
96     @Override
97     public String getConsumerID() {
98         return configParameters.getConsumerID();
99     }
100
101     @Override
102     public String getKeyStorePassword() {
103         return configParameters.getKeyStorePassword();
104     }
105
106     @Override
107     public String getKeyStorePath() {
108         return configParameters.getKeyStorePath();
109     }
110
111     @Override
112     public boolean activateServerTLSAuth() {
113         return configParameters.activateServerTLSAuth();
114     }
115
116     @Override
117     public boolean isFilterInEmptyResources() {
118         return configParameters.isFilterInEmptyResources();
119     }
120
121     @Override
122     public Boolean isUseHttpsWithDmaap() {
123         return configParameters.isUseHttpsWithDmaap();
124     }
125
126
127 }