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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.distribution.reception.handling.sdc;
24 import java.util.ArrayList;
25 import java.util.List;
26 import java.util.Properties;
27 import org.onap.sdc.api.consumer.IConfiguration;
30 * Properties for the handling Sdc
33 public class PSSDConfiguration implements IConfiguration {
35 // Configuration file structure
37 // Configuration file properties
38 private PSSDConfigurationParametersGroup configParameters=null;
41 * Original constructor
43 * @param configParameters properties needed to be configured for the model loader
45 public PSSDConfiguration(PSSDConfigurationParametersGroup configParameters) {
46 this.configParameters = configParameters;
52 public String getAsdcAddress() {
53 return configParameters.getAsdcAddress();
57 public List<String> getMsgBusAddress() {
58 return configParameters.getMsgBusAddress();
62 public String getUser() {
63 return configParameters.getUser();
67 public String getPassword() {
68 return configParameters.getPassword();
72 public int getPollingInterval() {
73 return configParameters.getPollingInterval();
77 public int getPollingTimeout() {
78 return configParameters.getPollingTimeout();
82 public List<String> getRelevantArtifactTypes() {
83 return configParameters.getArtifactTypes();
87 public String getConsumerGroup() {
88 return configParameters.getConsumerGroup();
92 public String getEnvironmentName() {
93 return configParameters.getEnvironmentName();
97 public String getConsumerID() {
98 return configParameters.getConsumerID();
102 public String getKeyStorePassword() {
103 return configParameters.getKeyStorePassword();
107 public String getKeyStorePath() {
108 return configParameters.getKeyStorePath();
112 public boolean activateServerTLSAuth() {
113 return configParameters.activateServerTLSAuth();
117 public boolean isFilterInEmptyResources() {
118 return configParameters.isFilterInEmptyResources();
122 public Boolean isUseHttpsWithDmaap() {
123 return configParameters.isUseHttpsWithDmaap();