2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.ci.tests.executeOnUGN.distributionClient;
23 import java.util.ArrayList;
24 import java.util.List;
26 public class ClientConfiguration {
28 private String asdcAddress;
30 private String password;
31 private Integer pollingInterval;
32 private Integer pollingTimeout;
33 private List<String> relevantArtifactTypes;
34 private String consumerGroup;
35 private String environmentName;
36 private String consumerID;
38 public ClientConfiguration() {
42 this.asdcAddress = "localhost:8443";
43 this.consumerID = "mso-123456";
44 this.consumerGroup = "mso-group";
45 this.environmentName = "PROD";
46 this.password = "password";
47 this.pollingInterval = 20;
48 this.pollingTimeout = 20;
49 this.relevantArtifactTypes = new ArrayList<String>();
50 this.relevantArtifactTypes.add("SHELL");
51 this.user = "mso-user";
54 public String getAsdcAddress() {
58 public void setAsdcAddress(String asdcAddress) {
59 this.asdcAddress = asdcAddress;
62 public String getUser() {
66 public void setUser(String user) {
70 public String getPassword() {
74 public void setPassword(String password) {
75 this.password = password;
78 public int getPollingInterval() {
79 return pollingInterval;
82 public void setPollingInterval(Integer pollingInterval) {
83 this.pollingInterval = pollingInterval;
86 public int getPollingTimeout() {
87 return pollingTimeout;
90 public void setPollingTimeout(Integer pollingTimeout) {
91 this.pollingTimeout = pollingTimeout;
94 public List<String> getRelevantArtifactTypes() {
95 return relevantArtifactTypes;
98 public void setRelevantArtifactTypes(List<String> relevantArtifactTypes) {
99 this.relevantArtifactTypes = relevantArtifactTypes;
102 public String getConsumerGroup() {
103 return consumerGroup;
106 public void setConsumerGroup(String consumerGroup) {
107 this.consumerGroup = consumerGroup;
110 public String getEnvironmentName() {
111 return environmentName;
114 public void setEnvironmentName(String environmentName) {
115 this.environmentName = environmentName;
118 public String getComsumerID() {
122 public void setComsumerID(String comsumerID) {
123 this.consumerID = comsumerID;
126 public ClientConfiguration(String asdcAddress, String user, String password, Integer pollingInterval,
127 Integer pollingTimeout, List<String> relevantArtifactTypes, String consumerGroup, String environmentName,
130 this.asdcAddress = asdcAddress;
132 this.password = password;
133 this.pollingInterval = pollingInterval;
134 this.pollingTimeout = pollingTimeout;
135 this.relevantArtifactTypes = relevantArtifactTypes;
136 this.consumerGroup = consumerGroup;
137 this.environmentName = environmentName;
138 this.consumerID = comsumerID;