2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 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.be.config;
23 * Contains DMAAP Client configuration parameters
25 public class DmaapConsumerConfiguration {
26 private boolean active;
28 private String consumerGroup;
29 private String consumerId;
30 private Integer timeoutMs;
31 private Integer limit;
32 private Integer pollingInterval;
34 private Double latitude;
35 private Double longitude;
36 private String version;
37 private String serviceName;
38 private String environment;
39 private String partner;
40 private String routeOffer;
41 private String protocol;
42 private String contenttype;
43 private Boolean dme2TraceOn;
44 private String aftEnvironment;
45 private Integer aftDme2ConnectionTimeoutMs;
46 private Integer aftDme2RoundtripTimeoutMs;
47 private Integer aftDme2ReadTimeoutMs;
48 private String dme2preferredRouterFilePath;
49 private Credential credential;
50 private Integer timeLimitForNotificationHandleMs;
51 private boolean aftDme2SslEnable;
52 private boolean aftDme2ClientIgnoreSslConfig;
53 private String aftDme2ClientKeystore;
54 private String aftDme2ClientKeystorePassword;
55 private String aftDme2ClientSslCertAlias;
57 public String getHosts() {
61 public void setHosts(String hosts) {
65 public String getConsumerGroup() {
69 public void setConsumerGroup(String consumerGroup) {
70 this.consumerGroup = consumerGroup;
73 public String getConsumerId() {
77 public void setConsumerId(String consumerId) {
78 this.consumerId = consumerId;
81 public Integer getTimeoutMs() {
85 public void setTimeoutMs(Integer timeoutMs) {
86 this.timeoutMs = timeoutMs;
89 public Integer getLimit() {
93 public void setLimit(Integer limit) {
97 public Integer getPollingInterval() {
98 return pollingInterval;
101 public void setPollingInterval(Integer pollingInterval) {
102 this.pollingInterval = pollingInterval;
105 public String getTopic() {
109 public void setTopic(String topic) {
113 public Double getLatitude() {
117 public void setLatitude(Double latitude) {
118 this.latitude = latitude;
121 public Double getLongitude() {
125 public void setLongitude(Double longitude) {
126 this.longitude = longitude;
129 public String getVersion() {
133 public void setVersion(String version) {
134 this.version = version;
137 public String getServiceName() {
141 public void setServiceName(String serviceName) {
142 this.serviceName = serviceName;
145 public String getEnvironment() {
149 public void setEnvironment(String environment) {
150 this.environment = environment;
153 public String getPartner() {
157 public void setPartner(String partner) {
158 this.partner = partner;
161 public String getRouteOffer() {
165 public void setRouteOffer(String routeOffer) {
166 this.routeOffer = routeOffer;
169 public String getProtocol() {
173 public void setProtocol(String protocol) {
174 this.protocol = protocol;
177 public String getContenttype() {
181 public void setContenttype(String contenttype) {
182 this.contenttype = contenttype;
185 public Boolean isDme2TraceOn() {
189 public Boolean getDme2TraceOn() {
193 public void setDme2TraceOn(Boolean dme2TraceOn) {
194 this.dme2TraceOn = dme2TraceOn;
197 public String getAftEnvironment() {
198 return aftEnvironment;
201 public void setAftEnvironment(String aftEnvironment) {
202 this.aftEnvironment = aftEnvironment;
205 public Integer getAftDme2ConnectionTimeoutMs() {
206 return aftDme2ConnectionTimeoutMs;
209 public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
210 this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
213 public Integer getAftDme2RoundtripTimeoutMs() {
214 return aftDme2RoundtripTimeoutMs;
217 public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
218 this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
221 public Integer getAftDme2ReadTimeoutMs() {
222 return aftDme2ReadTimeoutMs;
225 public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
226 this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
229 public String getDme2preferredRouterFilePath() {
230 return dme2preferredRouterFilePath;
233 public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
234 this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
237 public Credential getCredential() {
241 public void setCredential(Credential credential) {
242 this.credential = credential;
245 public boolean isActive() { return active; }
247 public void setActive(boolean isActive) { this.active = isActive; }
250 * Contains Dmaap Client credential parameters: username and password
252 public static class Credential{
254 private String username;
255 private String password;
257 public String getUsername() {
260 public void setUsername(String username) {
261 this.username = username;
263 public String getPassword() {
266 public void setPassword(String password) {
267 this.password = password;
270 public String toString() {
271 return "Credential [username=" + username + ", password=" + password + "]";
276 public Integer getTimeLimitForNotificationHandleMs() {
277 return timeLimitForNotificationHandleMs;
280 public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
281 this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;
284 public boolean isAftDme2SslEnable() {
285 return aftDme2SslEnable;
288 public void setAftDme2SslEnable(boolean aftDme2SslEnable) {
289 this.aftDme2SslEnable = aftDme2SslEnable;
292 public boolean isAftDme2ClientIgnoreSslConfig() {
293 return aftDme2ClientIgnoreSslConfig;
296 public void setAftDme2ClientIgnoreSslConfig(boolean aftDme2ClientIgnoreSslConfig) {
297 this.aftDme2ClientIgnoreSslConfig = aftDme2ClientIgnoreSslConfig;
300 public String getAftDme2ClientKeystore() {
301 return aftDme2ClientKeystore;
304 public void setAftDme2ClientKeystore(String aftDme2ClientKeystore) {
305 this.aftDme2ClientKeystore = aftDme2ClientKeystore;
308 public String getAftDme2ClientKeystorePassword() {
309 return aftDme2ClientKeystorePassword;
312 public void setAftDme2ClientKeystorePassword(String aftDme2ClientKeystorePassword) {
313 this.aftDme2ClientKeystorePassword = aftDme2ClientKeystorePassword;
316 public String getAftDme2ClientSslCertAlias() {
317 return aftDme2ClientSslCertAlias;
320 public void setAftDme2ClientSslCertAlias(String aftDme2ClientSslCertAlias) {
321 this.aftDme2ClientSslCertAlias = aftDme2ClientSslCertAlias;
325 public String toString() {
326 return "DmaapConsumerConfiguration [active=" + active + ", hosts=" + hosts + ", consumerGroup=" + consumerGroup
327 + ", consumerId=" + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval="
328 + pollingInterval + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude
329 + ", version=" + version + ", serviceName=" + serviceName + ", environment=" + environment
330 + ", partner=" + partner + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype="
331 + contenttype + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
332 + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
333 + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
334 + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath + ", credential=" + credential
335 + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs + ", aftDme2SslEnable="
336 + aftDme2SslEnable + ", aftDme2ClientIgnoreSslConfig=" + aftDme2ClientIgnoreSslConfig
337 + ", aftDme2ClientKeystore=" + aftDme2ClientKeystore + ", aftDme2ClientKeystorePassword="
338 + aftDme2ClientKeystorePassword + ", aftDme2ClientSslCertAlias=" + aftDme2ClientSslCertAlias + "]";