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.policy.distribution.reception.parameters.PssdConfigurationParametersGroup;
26 import org.onap.sdc.api.consumer.IConfiguration;
29 * This class represents the configurations needed for SDC Client.
32 public class SdcConfiguration implements IConfiguration {
34 private PssdConfigurationParametersGroup configParameters = null;
37 * Constructor for instantiating {@link SdcConfiguration}.
39 * @param configParameters the SDC Client configuration parameters
41 public SdcConfiguration(final PssdConfigurationParametersGroup configParameters) {
42 this.configParameters = configParameters;
46 public String getAsdcAddress() {
47 return configParameters.getAsdcAddress();
51 public List<String> getMsgBusAddress() {
52 return configParameters.getMsgBusAddress();
56 public String getUser() {
57 return configParameters.getUser();
61 public String getPassword() {
62 return configParameters.getPassword();
66 public int getPollingInterval() {
67 return configParameters.getPollingInterval();
71 public int getPollingTimeout() {
72 return configParameters.getPollingTimeout();
76 public List<String> getRelevantArtifactTypes() {
77 return configParameters.getArtifactTypes();
81 public String getConsumerGroup() {
82 return configParameters.getConsumerGroup();
86 public String getEnvironmentName() {
87 return configParameters.getEnvironmentName();
91 public String getConsumerID() {
92 return configParameters.getConsumerID();
96 public String getKeyStorePassword() {
97 return configParameters.getKeyStorePassword();
101 public String getKeyStorePath() {
102 return configParameters.getKeyStorePath();
106 public boolean activateServerTLSAuth() {
107 return configParameters.activateServerTLSAuth();
111 public boolean isFilterInEmptyResources() {
112 return configParameters.isFilterInEmptyResources();
116 public Boolean isUseHttpsWithDmaap() {
117 return configParameters.isUseHttpsWithDmaap();