Catalog alignment
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / be / config / DmaapProducerConfiguration.java
1 package org.openecomp.sdc.be.config;
2 /**
3  * Contains DMAAP Client configuration parameters
4  */
5 public class DmaapProducerConfiguration {
6
7         private Boolean active;
8         private String hosts;
9         private String consumerGroup;
10         private String consumerId;
11         private Integer timeoutMs;
12         private Integer limit;
13         private Integer pollingInterval;
14         private String topic;
15         private Double latitude;
16         private Double longitude;
17         private String version;
18         private String serviceName;
19         private String environment;
20         private String partner;
21         private String routeOffer;
22         private String protocol;
23         private String contenttype;
24         private Boolean dme2TraceOn;
25         private String aftEnvironment;
26         private Integer aftDme2ConnectionTimeoutMs;
27         private Integer aftDme2RoundtripTimeoutMs;
28         private Integer aftDme2ReadTimeoutMs;
29         private String dme2preferredRouterFilePath;
30         private Credential credential;
31         private Integer timeLimitForNotificationHandleMs;
32     private boolean aftDme2SslEnable;
33     private boolean aftDme2ClientIgnoreSslConfig;
34     private String aftDme2ClientKeystore;
35     private String aftDme2ClientKeystorePassword;
36     private String aftDme2ClientSslCertAlias;
37
38
39         public Boolean getActive() {
40                 return active;
41         }
42
43         public void setActive(Boolean active) {
44                 this.active = active;
45         }
46
47         public String getHosts() {
48                 return hosts;
49         }
50
51         public void setHosts(String hosts) {
52                 this.hosts = hosts;
53         }
54
55         public String getConsumerGroup() {
56                 return consumerGroup;
57         }
58
59         public void setConsumerGroup(String consumerGroup) {
60                 this.consumerGroup = consumerGroup;
61         }
62
63         public String getConsumerId() {
64                 return consumerId;
65         }
66
67         public void setConsumerId(String consumerId) {
68                 this.consumerId = consumerId;
69         }
70
71         public Integer getTimeoutMs() {
72                 return timeoutMs;
73         }
74
75         public void setTimeoutMs(Integer timeoutMs) {
76                 this.timeoutMs = timeoutMs;
77         }
78
79         public Integer getLimit() {
80                 return limit;
81         }
82
83         public void setLimit(Integer limit) {
84                 this.limit = limit;
85         }
86
87         public Integer getPollingInterval() {
88                 return pollingInterval;
89         }
90
91         public void setPollingInterval(Integer pollingInterval) {
92                 this.pollingInterval = pollingInterval;
93         }
94
95         public String getTopic() {
96                 return topic;
97         }
98
99         public void setTopic(String topic) {
100                 this.topic = topic;
101         }
102
103         public Double getLatitude() {
104                 return latitude;
105         }
106
107         public void setLatitude(Double latitude) {
108                 this.latitude = latitude;
109         }
110
111         public Double getLongitude() {
112                 return longitude;
113         }
114
115         public void setLongitude(Double longitude) {
116                 this.longitude = longitude;
117         }
118
119         public String getVersion() {
120                 return version;
121         }
122
123         public void setVersion(String version) {
124                 this.version = version;
125         }
126
127         public String getServiceName() {
128                 return serviceName;
129         }
130
131         public void setServiceName(String serviceName) {
132                 this.serviceName = serviceName;
133         }
134
135         public String getEnvironment() {
136                 return environment;
137         }
138
139         public void setEnvironment(String environment) {
140                 this.environment = environment;
141         }
142
143         public String getPartner() {
144                 return partner;
145         }
146
147         public void setPartner(String partner) {
148                 this.partner = partner;
149         }
150
151         public String getRouteOffer() {
152                 return routeOffer;
153         }
154
155         public void setRouteOffer(String routeOffer) {
156                 this.routeOffer = routeOffer;
157         }
158
159         public String getProtocol() {
160                 return protocol;
161         }
162
163         public void setProtocol(String protocol) {
164                 this.protocol = protocol;
165         }
166
167         public String getContenttype() {
168                 return contenttype;
169         }
170
171         public void setContenttype(String contenttype) {
172                 this.contenttype = contenttype;
173         }
174
175         public Boolean isDme2TraceOn() {
176                 return dme2TraceOn;
177         }
178
179         public Boolean getDme2TraceOn() {
180                 return dme2TraceOn;
181         }
182
183         public void setDme2TraceOn(Boolean dme2TraceOn) {
184                 this.dme2TraceOn = dme2TraceOn;
185         }
186
187         public String getAftEnvironment() {
188                 return aftEnvironment;
189         }
190
191         public void setAftEnvironment(String aftEnvironment) {
192                 this.aftEnvironment = aftEnvironment;
193         }
194
195         public Integer getAftDme2ConnectionTimeoutMs() {
196                 return aftDme2ConnectionTimeoutMs;
197         }
198
199         public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
200                 this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
201         }
202
203         public Integer getAftDme2RoundtripTimeoutMs() {
204                 return aftDme2RoundtripTimeoutMs;
205         }
206
207         public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
208                 this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
209         }
210
211         public Integer getAftDme2ReadTimeoutMs() {
212                 return aftDme2ReadTimeoutMs;
213         }
214
215         public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
216                 this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
217         }
218
219         public String getDme2preferredRouterFilePath() {
220                 return dme2preferredRouterFilePath;
221         }
222
223         public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
224                 this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
225         }
226
227         public Credential getCredential() {
228                 return credential;
229         }
230
231         public void setCredential(Credential credential) {
232                 this.credential = credential;
233         }
234
235         /**
236          * Contains Dmaap Client credential parameters: username and password
237          */
238         public static class Credential{
239
240                 private String username;
241                 private String password;
242
243                 public String getUsername() {
244                         return username;
245                 }
246                 public void setUsername(String username) {
247                         this.username = username;
248                 }
249                 public String getPassword() {
250                         return password;
251                 }
252                 public void setPassword(String password) {
253                         this.password = password;
254                 }
255                 @Override
256                 public String toString() {
257                         return "Credential [username=" + username + ", password=" + password + "]";
258                 }
259
260         }
261         public Integer getTimeLimitForNotificationHandleMs() {
262                 return timeLimitForNotificationHandleMs;
263         }
264
265         public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
266                 this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;
267         }
268         
269     public boolean isAftDme2SslEnable() {
270         return aftDme2SslEnable;
271     }
272
273     public void setAftDme2SslEnable(boolean aftDme2SslEnable) {
274         this.aftDme2SslEnable = aftDme2SslEnable;
275     }
276
277     public boolean isAftDme2ClientIgnoreSslConfig() {
278         return aftDme2ClientIgnoreSslConfig;
279     }
280
281     public void setAftDme2ClientIgnoreSslConfig(boolean aftDme2ClientIgnoreSslConfig) {
282         this.aftDme2ClientIgnoreSslConfig = aftDme2ClientIgnoreSslConfig;
283     }
284
285     public String getAftDme2ClientKeystore() {
286         return aftDme2ClientKeystore;
287     }
288
289     public void setAftDme2ClientKeystore(String aftDme2ClientKeystore) {
290         this.aftDme2ClientKeystore = aftDme2ClientKeystore;
291     }
292
293     public String getAftDme2ClientKeystorePassword() {
294         return aftDme2ClientKeystorePassword;
295     }
296
297     public void setAftDme2ClientKeystorePassword(String aftDme2ClientKeystorePassword) {
298         this.aftDme2ClientKeystorePassword = aftDme2ClientKeystorePassword;
299     }
300
301     public String getAftDme2ClientSslCertAlias() {
302         return aftDme2ClientSslCertAlias;
303     }
304
305     public void setAftDme2ClientSslCertAlias(String aftDme2ClientSslCertAlias) {
306         this.aftDme2ClientSslCertAlias = aftDme2ClientSslCertAlias;
307     }
308     
309     @Override
310     public String toString() {
311         return "DmaapProducerConfiguration [hosts=" + hosts + ", consumerGroup=" + consumerGroup + ", consumerId="
312                 + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval=" + pollingInterval
313                 + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude + ", version=" + version
314                 + ", serviceName=" + serviceName + ", environment=" + environment + ", partner=" + partner
315                 + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype=" + contenttype
316                 + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
317                 + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
318                 + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
319                 + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath
320                 + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs+ ", credential=" + credential
321                 + ", aftDme2SslEnable=" + aftDme2SslEnable + ", aftDme2ClientIgnoreSslConfig=" + aftDme2ClientIgnoreSslConfig
322                 + ", aftDme2ClientKeystore=" + aftDme2ClientKeystore + ", aftDme2ClientSslCertAlias=" + aftDme2ClientSslCertAlias + "]";
323     }
324
325 }