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;
26 import org.onap.policy.distribution.reception.parameters.PSSDConfigurationParametersGroup;
29 * Properties for the handling Sdc
32 public class PSSDConfiguration implements IConfiguration {
34 // Configuration file structure
36 // Configuration file properties
37 private PSSDConfigurationParametersGroup configParameters = null;
40 * Original constructor
42 * @param configParameters properties needed to be configured for the model loader
44 public PSSDConfiguration(final PSSDConfigurationParametersGroup configParameters) {
45 this.configParameters = configParameters;
51 public String getAsdcAddress() {
52 return configParameters.getAsdcAddress();
56 public List<String> getMsgBusAddress() {
57 return configParameters.getMsgBusAddress();
61 public String getUser() {
62 return configParameters.getUser();
66 public String getPassword() {
67 return configParameters.getPassword();
71 public int getPollingInterval() {
72 return configParameters.getPollingInterval();
76 public int getPollingTimeout() {
77 return configParameters.getPollingTimeout();
81 public List<String> getRelevantArtifactTypes() {
82 return configParameters.getArtifactTypes();
86 public String getConsumerGroup() {
87 return configParameters.getConsumerGroup();
91 public String getEnvironmentName() {
92 return configParameters.getEnvironmentName();
96 public String getConsumerID() {
97 return configParameters.getConsumerID();
101 public String getKeyStorePassword() {
102 return configParameters.getKeyStorePassword();
106 public String getKeyStorePath() {
107 return configParameters.getKeyStorePath();
111 public boolean activateServerTLSAuth() {
112 return configParameters.activateServerTLSAuth();
116 public boolean isFilterInEmptyResources() {
117 return configParameters.isFilterInEmptyResources();
121 public Boolean isUseHttpsWithDmaap() {
122 return configParameters.isUseHttpsWithDmaap();