1 package org.openecomp.sdc.be.config;
3 * Contains DMAAP Client configuration parameters
5 public class DmaapConsumerConfiguration {
8 private String consumerGroup;
9 private String consumerId;
10 private Integer timeoutMs;
11 private Integer limit;
12 private Integer pollingInterval;
14 private Double latitude;
15 private Double longitude;
16 private String version;
17 private String serviceName;
18 private String environment;
19 private String partner;
20 private String routeOffer;
21 private String protocol;
22 private String contenttype;
23 private Boolean dme2TraceOn;
24 private String aftEnvironment;
25 private Integer aftDme2ConnectionTimeoutMs;
26 private Integer aftDme2RoundtripTimeoutMs;
27 private Integer aftDme2ReadTimeoutMs;
28 private String dme2preferredRouterFilePath;
29 private Credential credential;
30 private Integer timeLimitForNotificationHandleMs;
32 public String getHosts() {
36 public void setHosts(String hosts) {
40 public String getConsumerGroup() {
44 public void setConsumerGroup(String consumerGroup) {
45 this.consumerGroup = consumerGroup;
48 public String getConsumerId() {
52 public void setConsumerId(String consumerId) {
53 this.consumerId = consumerId;
56 public Integer getTimeoutMs() {
60 public void setTimeoutMs(Integer timeoutMs) {
61 this.timeoutMs = timeoutMs;
64 public Integer getLimit() {
68 public void setLimit(Integer limit) {
72 public Integer getPollingInterval() {
73 return pollingInterval;
76 public void setPollingInterval(Integer pollingInterval) {
77 this.pollingInterval = pollingInterval;
80 public String getTopic() {
84 public void setTopic(String topic) {
88 public Double getLatitude() {
92 public void setLatitude(Double latitude) {
93 this.latitude = latitude;
96 public Double getLongitude() {
100 public void setLongitude(Double longitude) {
101 this.longitude = longitude;
104 public String getVersion() {
108 public void setVersion(String version) {
109 this.version = version;
112 public String getServiceName() {
116 public void setServiceName(String serviceName) {
117 this.serviceName = serviceName;
120 public String getEnvironment() {
124 public void setEnvironment(String environment) {
125 this.environment = environment;
128 public String getPartner() {
132 public void setPartner(String partner) {
133 this.partner = partner;
136 public String getRouteOffer() {
140 public void setRouteOffer(String routeOffer) {
141 this.routeOffer = routeOffer;
144 public String getProtocol() {
148 public void setProtocol(String protocol) {
149 this.protocol = protocol;
152 public String getContenttype() {
156 public void setContenttype(String contenttype) {
157 this.contenttype = contenttype;
160 public Boolean isDme2TraceOn() {
164 public Boolean getDme2TraceOn() {
168 public void setDme2TraceOn(Boolean dme2TraceOn) {
169 this.dme2TraceOn = dme2TraceOn;
172 public String getAftEnvironment() {
173 return aftEnvironment;
176 public void setAftEnvironment(String aftEnvironment) {
177 this.aftEnvironment = aftEnvironment;
180 public Integer getAftDme2ConnectionTimeoutMs() {
181 return aftDme2ConnectionTimeoutMs;
184 public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
185 this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
188 public Integer getAftDme2RoundtripTimeoutMs() {
189 return aftDme2RoundtripTimeoutMs;
192 public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
193 this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
196 public Integer getAftDme2ReadTimeoutMs() {
197 return aftDme2ReadTimeoutMs;
200 public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
201 this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
204 public String getDme2preferredRouterFilePath() {
205 return dme2preferredRouterFilePath;
208 public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
209 this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
212 public Credential getCredential() {
216 public void setCredential(Credential credential) {
217 this.credential = credential;
221 * Contains Dmaap Client credential parameters: username and password
223 public static class Credential{
225 private String username;
226 private String password;
228 public String getUsername() {
231 public void setUsername(String username) {
232 this.username = username;
234 public String getPassword() {
237 public void setPassword(String password) {
238 this.password = password;
241 public String toString() {
242 return "Credential [username=" + username + ", password=" + password + "]";
248 public String toString() {
249 return "DmaapConsumerConfiguration [hosts=" + hosts + ", consumerGroup=" + consumerGroup + ", consumerId="
250 + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval=" + pollingInterval
251 + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude + ", version=" + version
252 + ", serviceName=" + serviceName + ", environment=" + environment + ", partner=" + partner
253 + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype=" + contenttype
254 + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
255 + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
256 + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
257 + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath
258 + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs+ ", credential=" + credential + "]";
261 public Integer getTimeLimitForNotificationHandleMs() {
262 return timeLimitForNotificationHandleMs;
265 public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
266 this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;