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;
24 import org.onap.sdc.api.consumer.IConfiguration;
27 * This class represents the configurations needed for SDC Client.
30 public class SdcConfiguration implements IConfiguration {
32 private SdcReceptionHandlerConfigurationParameterGroup configParameters = null;
35 * Constructor for instantiating {@link SdcConfiguration}.
37 * @param configParameters the SDC Client configuration parameters
39 public SdcConfiguration(final SdcReceptionHandlerConfigurationParameterGroup configParameters) {
40 this.configParameters = configParameters;
44 public String getAsdcAddress() {
45 return configParameters.getAsdcAddress();
49 public List<String> getMsgBusAddress() {
50 return configParameters.getMessageBusAddress();
54 public String getUser() {
55 return configParameters.getUser();
59 public String getPassword() {
60 return configParameters.getPassword();
64 public int getPollingInterval() {
65 return configParameters.getPollingInterval();
69 public int getPollingTimeout() {
70 return configParameters.getPollingTimeout();
74 public List<String> getRelevantArtifactTypes() {
75 return configParameters.getArtifactTypes();
79 public String getConsumerGroup() {
80 return configParameters.getConsumerGroup();
84 public String getEnvironmentName() {
85 return configParameters.getEnvironmentName();
89 public String getConsumerID() {
90 return configParameters.getConsumerId();
94 public String getKeyStorePassword() {
95 return configParameters.getKeyStorePassword();
99 public String getKeyStorePath() {
100 return configParameters.getKeyStorePath();
104 public boolean activateServerTLSAuth() {
105 return configParameters.isActiveServerTlsAuth();
109 public boolean isFilterInEmptyResources() {
110 return configParameters.isFilterInEmptyResources();
114 public Boolean isUseHttpsWithDmaap() {
115 return configParameters.isUseHttpsWithDmaap();