Sync Integ to Master
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / be / config / DmaapConsumerConfiguration.java
1 package org.openecomp.sdc.be.config;
2 /**
3  * Contains DMAAP Client configuration parameters
4  */
5 public class DmaapConsumerConfiguration {
6         
7         private String hosts;
8         private String consumerGroup;
9         private String consumerId;
10         private Integer timeoutMs;
11         private Integer limit;
12         private Integer pollingInterval;
13         private String topic;
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;
31
32         public String getHosts() {
33                 return hosts;
34         }
35
36         public void setHosts(String hosts) {
37                 this.hosts = hosts;
38         }
39
40         public String getConsumerGroup() {
41                 return consumerGroup;
42         }
43
44         public void setConsumerGroup(String consumerGroup) {
45                 this.consumerGroup = consumerGroup;
46         }
47
48         public String getConsumerId() {
49                 return consumerId;
50         }
51
52         public void setConsumerId(String consumerId) {
53                 this.consumerId = consumerId;
54         }
55
56         public Integer getTimeoutMs() {
57                 return timeoutMs;
58         }
59
60         public void setTimeoutMs(Integer timeoutMs) {
61                 this.timeoutMs = timeoutMs;
62         }
63
64         public Integer getLimit() {
65                 return limit;
66         }
67
68         public void setLimit(Integer limit) {
69                 this.limit = limit;
70         }
71
72         public Integer getPollingInterval() {
73                 return pollingInterval;
74         }
75
76         public void setPollingInterval(Integer pollingInterval) {
77                 this.pollingInterval = pollingInterval;
78         }
79
80         public String getTopic() {
81                 return topic;
82         }
83
84         public void setTopic(String topic) {
85                 this.topic = topic;
86         }
87
88         public Double getLatitude() {
89                 return latitude;
90         }
91
92         public void setLatitude(Double latitude) {
93                 this.latitude = latitude;
94         }
95
96         public Double getLongitude() {
97                 return longitude;
98         }
99
100         public void setLongitude(Double longitude) {
101                 this.longitude = longitude;
102         }
103
104         public String getVersion() {
105                 return version;
106         }
107
108         public void setVersion(String version) {
109                 this.version = version;
110         }
111
112         public String getServiceName() {
113                 return serviceName;
114         }
115
116         public void setServiceName(String serviceName) {
117                 this.serviceName = serviceName;
118         }
119
120         public String getEnvironment() {
121                 return environment;
122         }
123
124         public void setEnvironment(String environment) {
125                 this.environment = environment;
126         }
127
128         public String getPartner() {
129                 return partner;
130         }
131
132         public void setPartner(String partner) {
133                 this.partner = partner;
134         }
135
136         public String getRouteOffer() {
137                 return routeOffer;
138         }
139
140         public void setRouteOffer(String routeOffer) {
141                 this.routeOffer = routeOffer;
142         }
143
144         public String getProtocol() {
145                 return protocol;
146         }
147
148         public void setProtocol(String protocol) {
149                 this.protocol = protocol;
150         }
151
152         public String getContenttype() {
153                 return contenttype;
154         }
155
156         public void setContenttype(String contenttype) {
157                 this.contenttype = contenttype;
158         }
159
160         public Boolean isDme2TraceOn() {
161                 return dme2TraceOn;
162         }
163         
164         public Boolean getDme2TraceOn() {
165                 return dme2TraceOn;
166         }
167
168         public void setDme2TraceOn(Boolean dme2TraceOn) {
169                 this.dme2TraceOn = dme2TraceOn;
170         }
171
172         public String getAftEnvironment() {
173                 return aftEnvironment;
174         }
175
176         public void setAftEnvironment(String aftEnvironment) {
177                 this.aftEnvironment = aftEnvironment;
178         }
179
180         public Integer getAftDme2ConnectionTimeoutMs() {
181                 return aftDme2ConnectionTimeoutMs;
182         }
183
184         public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
185                 this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
186         }
187
188         public Integer getAftDme2RoundtripTimeoutMs() {
189                 return aftDme2RoundtripTimeoutMs;
190         }
191
192         public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
193                 this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
194         }
195
196         public Integer getAftDme2ReadTimeoutMs() {
197                 return aftDme2ReadTimeoutMs;
198         }
199
200         public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
201                 this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
202         }
203
204         public String getDme2preferredRouterFilePath() {
205                 return dme2preferredRouterFilePath;
206         }
207
208         public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
209                 this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
210         }
211
212         public Credential getCredential() {
213                 return credential;
214         }
215
216         public void setCredential(Credential credential) {
217                 this.credential = credential;
218         }
219         
220         /**
221          * Contains Dmaap Client credential parameters: username and password
222          */
223         public static class Credential{
224                 
225                 private String username;
226                 private String password;
227                 
228                 public String getUsername() {
229                         return username;
230                 }
231                 public void setUsername(String username) {
232                         this.username = username;
233                 }
234                 public String getPassword() {
235                         return password;
236                 }
237                 public void setPassword(String password) {
238                         this.password = password;
239                 }
240                 @Override
241                 public String toString() {
242                         return "Credential [username=" + username + ", password=" + password + "]";
243                 }
244                  
245           }
246
247         @Override
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 + "]";
259         }
260
261         public Integer getTimeLimitForNotificationHandleMs() {
262                 return timeLimitForNotificationHandleMs;
263         }
264
265         public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
266                 this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;
267         }
268         
269 }