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;
23 import java.util.List;
25 import org.onap.sdc.api.consumer.IConfiguration;
28 * Properties for the handling Sdc
31 public class PSSDConfiguration implements IConfiguration {
33 // Configuration file structure
35 // Configuration file properties
36 private PSSDConfigurationParametersGroup configParameters = null;
39 * Original constructor
41 * @param configParameters properties needed to be configured for the model loader
43 public PSSDConfiguration(final PSSDConfigurationParametersGroup configParameters) {
44 this.configParameters = configParameters;
50 public String getAsdcAddress() {
51 return configParameters.getAsdcAddress();
55 public List<String> getMsgBusAddress() {
56 return configParameters.getMsgBusAddress();
60 public String getUser() {
61 return configParameters.getUser();
65 public String getPassword() {
66 return configParameters.getPassword();
70 public int getPollingInterval() {
71 return configParameters.getPollingInterval();
75 public int getPollingTimeout() {
76 return configParameters.getPollingTimeout();
80 public List<String> getRelevantArtifactTypes() {
81 return configParameters.getArtifactTypes();
85 public String getConsumerGroup() {
86 return configParameters.getConsumerGroup();
90 public String getEnvironmentName() {
91 return configParameters.getEnvironmentName();
95 public String getConsumerID() {
96 return configParameters.getConsumerID();
100 public String getKeyStorePassword() {
101 return configParameters.getKeyStorePassword();
105 public String getKeyStorePath() {
106 return configParameters.getKeyStorePath();
110 public boolean activateServerTLSAuth() {
111 return configParameters.activateServerTLSAuth();
115 public boolean isFilterInEmptyResources() {
116 return configParameters.isFilterInEmptyResources();
120 public Boolean isUseHttpsWithDmaap() {
121 return configParameters.isUseHttpsWithDmaap();