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;
52 public String getHosts() {
56 public void setHosts(String hosts) {
60 public String getConsumerGroup() {
64 public void setConsumerGroup(String consumerGroup) {
65 this.consumerGroup = consumerGroup;
68 public String getConsumerId() {
72 public void setConsumerId(String consumerId) {
73 this.consumerId = consumerId;
76 public Integer getTimeoutMs() {
80 public void setTimeoutMs(Integer timeoutMs) {
81 this.timeoutMs = timeoutMs;
84 public Integer getLimit() {
88 public void setLimit(Integer limit) {
92 public Integer getPollingInterval() {
93 return pollingInterval;
96 public void setPollingInterval(Integer pollingInterval) {
97 this.pollingInterval = pollingInterval;
100 public String getTopic() {
104 public void setTopic(String topic) {
108 public Double getLatitude() {
112 public void setLatitude(Double latitude) {
113 this.latitude = latitude;
116 public Double getLongitude() {
120 public void setLongitude(Double longitude) {
121 this.longitude = longitude;
124 public String getVersion() {
128 public void setVersion(String version) {
129 this.version = version;
132 public String getServiceName() {
136 public void setServiceName(String serviceName) {
137 this.serviceName = serviceName;
140 public String getEnvironment() {
144 public void setEnvironment(String environment) {
145 this.environment = environment;
148 public String getPartner() {
152 public void setPartner(String partner) {
153 this.partner = partner;
156 public String getRouteOffer() {
160 public void setRouteOffer(String routeOffer) {
161 this.routeOffer = routeOffer;
164 public String getProtocol() {
168 public void setProtocol(String protocol) {
169 this.protocol = protocol;
172 public String getContenttype() {
176 public void setContenttype(String contenttype) {
177 this.contenttype = contenttype;
180 public Boolean isDme2TraceOn() {
184 public Boolean getDme2TraceOn() {
188 public void setDme2TraceOn(Boolean dme2TraceOn) {
189 this.dme2TraceOn = dme2TraceOn;
192 public String getAftEnvironment() {
193 return aftEnvironment;
196 public void setAftEnvironment(String aftEnvironment) {
197 this.aftEnvironment = aftEnvironment;
200 public Integer getAftDme2ConnectionTimeoutMs() {
201 return aftDme2ConnectionTimeoutMs;
204 public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
205 this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
208 public Integer getAftDme2RoundtripTimeoutMs() {
209 return aftDme2RoundtripTimeoutMs;
212 public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
213 this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
216 public Integer getAftDme2ReadTimeoutMs() {
217 return aftDme2ReadTimeoutMs;
220 public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
221 this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
224 public String getDme2preferredRouterFilePath() {
225 return dme2preferredRouterFilePath;
228 public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
229 this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
232 public Credential getCredential() {
236 public void setCredential(Credential credential) {
237 this.credential = credential;
240 public boolean isActive() { return active; }
242 public void setActive(boolean isActive) { this.active = isActive; }
245 * Contains Dmaap Client credential parameters: username and password
247 public static class Credential{
249 private String username;
250 private String password;
252 public String getUsername() {
255 public void setUsername(String username) {
256 this.username = username;
258 public String getPassword() {
261 public void setPassword(String password) {
262 this.password = password;
265 public String toString() {
266 return "Credential [username=" + username + ", password=" + password + "]";
272 public String toString() {
273 return "DmaapConsumerConfiguration [active=" + active + ", hosts=" + hosts + ", consumerGroup=" + consumerGroup + ", consumerId="
274 + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval=" + pollingInterval
275 + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude + ", version=" + version
276 + ", serviceName=" + serviceName + ", environment=" + environment + ", partner=" + partner
277 + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype=" + contenttype
278 + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
279 + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
280 + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
281 + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath
282 + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs+ ", credential=" + credential + "]";
285 public Integer getTimeLimitForNotificationHandleMs() {
286 return timeLimitForNotificationHandleMs;
289 public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
290 this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;