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;
24 * Contains DMAAP Client configuration parameters
26 public class DmaapConsumerConfiguration {
27 private boolean active;
29 private String consumerGroup;
30 private String consumerId;
31 private Integer timeoutMs;
32 private Integer limit;
33 private Integer pollingInterval;
35 private Double latitude;
36 private Double longitude;
37 private String version;
38 private String serviceName;
39 private String environment;
40 private String partner;
41 private String routeOffer;
42 private String protocol;
43 private String contenttype;
44 private Boolean dme2TraceOn;
45 private String aftEnvironment;
46 private Integer aftDme2ConnectionTimeoutMs;
47 private Integer aftDme2RoundtripTimeoutMs;
48 private Integer aftDme2ReadTimeoutMs;
49 private String dme2preferredRouterFilePath;
50 private Credential credential;
51 private Integer timeLimitForNotificationHandleMs;
53 public String getHosts() {
57 public void setHosts(String hosts) {
61 public String getConsumerGroup() {
65 public void setConsumerGroup(String consumerGroup) {
66 this.consumerGroup = consumerGroup;
69 public String getConsumerId() {
73 public void setConsumerId(String consumerId) {
74 this.consumerId = consumerId;
77 public Integer getTimeoutMs() {
81 public void setTimeoutMs(Integer timeoutMs) {
82 this.timeoutMs = timeoutMs;
85 public Integer getLimit() {
89 public void setLimit(Integer limit) {
93 public Integer getPollingInterval() {
94 return pollingInterval;
97 public void setPollingInterval(Integer pollingInterval) {
98 this.pollingInterval = pollingInterval;
101 public String getTopic() {
105 public void setTopic(String topic) {
109 public Double getLatitude() {
113 public void setLatitude(Double latitude) {
114 this.latitude = latitude;
117 public Double getLongitude() {
121 public void setLongitude(Double longitude) {
122 this.longitude = longitude;
125 public String getVersion() {
129 public void setVersion(String version) {
130 this.version = version;
133 public String getServiceName() {
137 public void setServiceName(String serviceName) {
138 this.serviceName = serviceName;
141 public String getEnvironment() {
145 public void setEnvironment(String environment) {
146 this.environment = environment;
149 public String getPartner() {
153 public void setPartner(String partner) {
154 this.partner = partner;
157 public String getRouteOffer() {
161 public void setRouteOffer(String routeOffer) {
162 this.routeOffer = routeOffer;
165 public String getProtocol() {
169 public void setProtocol(String protocol) {
170 this.protocol = protocol;
173 public String getContenttype() {
177 public void setContenttype(String contenttype) {
178 this.contenttype = contenttype;
181 public Boolean isDme2TraceOn() {
185 public Boolean getDme2TraceOn() {
189 public void setDme2TraceOn(Boolean dme2TraceOn) {
190 this.dme2TraceOn = dme2TraceOn;
193 public String getAftEnvironment() {
194 return aftEnvironment;
197 public void setAftEnvironment(String aftEnvironment) {
198 this.aftEnvironment = aftEnvironment;
201 public Integer getAftDme2ConnectionTimeoutMs() {
202 return aftDme2ConnectionTimeoutMs;
205 public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
206 this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
209 public Integer getAftDme2RoundtripTimeoutMs() {
210 return aftDme2RoundtripTimeoutMs;
213 public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
214 this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
217 public Integer getAftDme2ReadTimeoutMs() {
218 return aftDme2ReadTimeoutMs;
221 public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
222 this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
225 public String getDme2preferredRouterFilePath() {
226 return dme2preferredRouterFilePath;
229 public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
230 this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
233 public Credential getCredential() {
237 public void setCredential(Credential credential) {
238 this.credential = credential;
241 public boolean isActive() {
245 public void setActive(boolean isActive) {
246 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() {
261 public void setUsername(String username) {
262 this.username = username;
265 public String getPassword() {
269 public void setPassword(String password) {
270 this.password = password;
274 public String toString() {
275 return "Credential [username=" + username + ", password=" + password + "]";
281 public String toString() {
282 return "DmaapConsumerConfiguration [active=" + active + ", hosts=" + hosts + ", consumerGroup=" + consumerGroup + ", consumerId="
283 + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval=" + pollingInterval
284 + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude + ", version=" + version
285 + ", serviceName=" + serviceName + ", environment=" + environment + ", partner=" + partner
286 + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype=" + contenttype
287 + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
288 + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
289 + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
290 + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath
291 + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs + ", credential=" + credential + "]";
294 public Integer getTimeLimitForNotificationHandleMs() {
295 return timeLimitForNotificationHandleMs;
298 public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
299 this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;