starts threads each for every supported collector
[dcaegen2/services/mapper.git] / UniversalVesAdapter / src / main / java / org / onap / dcaegen2 / ves / domain / MobileFlowFields.java
1 /*
2 * ============LICENSE_START=======================================================
3 * ONAP : DCAE
4 * ================================================================================
5 * Copyright 2018 TechMahindra
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
10 *
11 *     http://www.apache.org/licenses/LICENSE-2.0
12 *
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=========================================================
19 */
20 package org.onap.dcaegen2.ves.domain;
21
22 import java.util.HashMap;
23 import java.util.List;
24 import java.util.Map;
25 import com.fasterxml.jackson.annotation.JsonAnyGetter;
26 import com.fasterxml.jackson.annotation.JsonAnySetter;
27 import com.fasterxml.jackson.annotation.JsonIgnore;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31 import org.apache.commons.lang.builder.EqualsBuilder;
32 import org.apache.commons.lang.builder.HashCodeBuilder;
33 import org.apache.commons.lang.builder.ToStringBuilder;
34
35 @JsonInclude(JsonInclude.Include.NON_NULL)
36 @JsonPropertyOrder({
37     "flowDirection",
38     "gtpPerFlowMetrics",
39     "ipProtocolType",
40     "ipVersion",
41     "mobileFlowFieldsVersion",
42     "otherEndpointIpAddress",
43     "otherEndpointPort",
44     "reportingEndpointIpAddr",
45     "reportingEndpointPort",
46     "additionalFields",
47     "applicationType",
48     "appProtocolType",
49     "appProtocolVersion",
50     "cid",
51     "connectionType",
52     "ecgi",
53     "gtpProtocolType",
54     "gtpVersion",
55     "httpHeader",
56     "imei",
57     "imsi",
58     "lac",
59     "mcc",
60     "mnc",
61     "msisdn",
62     "otherFunctionalRole",
63     "rac",
64     "radioAccessTechnology",
65     "sac",
66     "samplingAlgorithm",
67     "tac",
68     "tunnelId",
69     "vlanId"
70 })
71 public class MobileFlowFields {
72
73     @JsonProperty("flowDirection")
74     private String flowDirection;
75     @JsonProperty("gtpPerFlowMetrics")
76     private GtpPerFlowMetrics gtpPerFlowMetrics;
77     @JsonProperty("ipProtocolType")
78     private String ipProtocolType;
79     @JsonProperty("ipVersion")
80     private String ipVersion;
81     @JsonProperty("mobileFlowFieldsVersion")
82     private Double mobileFlowFieldsVersion;
83     @JsonProperty("otherEndpointIpAddress")
84     private String otherEndpointIpAddress;
85     @JsonProperty("otherEndpointPort")
86     private Long otherEndpointPort;
87     @JsonProperty("reportingEndpointIpAddr")
88     private String reportingEndpointIpAddr;
89     @JsonProperty("reportingEndpointPort")
90     private Long reportingEndpointPort;
91     @JsonProperty("additionalFields")
92     private List<AdditionalField> additionalFields = null;
93     @JsonProperty("applicationType")
94     private String applicationType;
95     @JsonProperty("appProtocolType")
96     private String appProtocolType;
97     @JsonProperty("appProtocolVersion")
98     private String appProtocolVersion;
99     @JsonProperty("cid")
100     private String cid;
101     @JsonProperty("connectionType")
102     private String connectionType;
103     @JsonProperty("ecgi")
104     private String ecgi;
105     @JsonProperty("gtpProtocolType")
106     private String gtpProtocolType;
107     @JsonProperty("gtpVersion")
108     private String gtpVersion;
109     @JsonProperty("httpHeader")
110     private String httpHeader;
111     @JsonProperty("imei")
112     private String imei;
113     @JsonProperty("imsi")
114     private String imsi;
115     @JsonProperty("lac")
116     private String lac;
117     @JsonProperty("mcc")
118     private String mcc;
119     @JsonProperty("mnc")
120     private String mnc;
121     @JsonProperty("msisdn")
122     private String msisdn;
123     @JsonProperty("otherFunctionalRole")
124     private String otherFunctionalRole;
125     @JsonProperty("rac")
126     private String rac;
127     @JsonProperty("radioAccessTechnology")
128     private String radioAccessTechnology;
129     @JsonProperty("sac")
130     private String sac;
131     @JsonProperty("samplingAlgorithm")
132     private Long samplingAlgorithm;
133     @JsonProperty("tac")
134     private String tac;
135     @JsonProperty("tunnelId")
136     private String tunnelId;
137     @JsonProperty("vlanId")
138     private String vlanId;
139     @JsonIgnore
140     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
141
142     @JsonProperty("flowDirection")
143     public String getFlowDirection() {
144         return flowDirection;
145     }
146
147     @JsonProperty("flowDirection")
148     public void setFlowDirection(String flowDirection) {
149         this.flowDirection = flowDirection;
150     }
151
152     @JsonProperty("gtpPerFlowMetrics")
153     public GtpPerFlowMetrics getGtpPerFlowMetrics() {
154         return gtpPerFlowMetrics;
155     }
156
157     @JsonProperty("gtpPerFlowMetrics")
158     public void setGtpPerFlowMetrics(GtpPerFlowMetrics gtpPerFlowMetrics) {
159         this.gtpPerFlowMetrics = gtpPerFlowMetrics;
160     }
161
162     @JsonProperty("ipProtocolType")
163     public String getIpProtocolType() {
164         return ipProtocolType;
165     }
166
167     @JsonProperty("ipProtocolType")
168     public void setIpProtocolType(String ipProtocolType) {
169         this.ipProtocolType = ipProtocolType;
170     }
171
172     @JsonProperty("ipVersion")
173     public String getIpVersion() {
174         return ipVersion;
175     }
176
177     @JsonProperty("ipVersion")
178     public void setIpVersion(String ipVersion) {
179         this.ipVersion = ipVersion;
180     }
181
182     @JsonProperty("mobileFlowFieldsVersion")
183     public Double getMobileFlowFieldsVersion() {
184         return mobileFlowFieldsVersion;
185     }
186
187     @JsonProperty("mobileFlowFieldsVersion")
188     public void setMobileFlowFieldsVersion(Double mobileFlowFieldsVersion) {
189         this.mobileFlowFieldsVersion = mobileFlowFieldsVersion;
190     }
191
192     @JsonProperty("otherEndpointIpAddress")
193     public String getOtherEndpointIpAddress() {
194         return otherEndpointIpAddress;
195     }
196
197     @JsonProperty("otherEndpointIpAddress")
198     public void setOtherEndpointIpAddress(String otherEndpointIpAddress) {
199         this.otherEndpointIpAddress = otherEndpointIpAddress;
200     }
201
202     @JsonProperty("otherEndpointPort")
203     public Long getOtherEndpointPort() {
204         return otherEndpointPort;
205     }
206
207     @JsonProperty("otherEndpointPort")
208     public void setOtherEndpointPort(Long otherEndpointPort) {
209         this.otherEndpointPort = otherEndpointPort;
210     }
211
212     @JsonProperty("reportingEndpointIpAddr")
213     public String getReportingEndpointIpAddr() {
214         return reportingEndpointIpAddr;
215     }
216
217     @JsonProperty("reportingEndpointIpAddr")
218     public void setReportingEndpointIpAddr(String reportingEndpointIpAddr) {
219         this.reportingEndpointIpAddr = reportingEndpointIpAddr;
220     }
221
222     @JsonProperty("reportingEndpointPort")
223     public Long getReportingEndpointPort() {
224         return reportingEndpointPort;
225     }
226
227     @JsonProperty("reportingEndpointPort")
228     public void setReportingEndpointPort(Long reportingEndpointPort) {
229         this.reportingEndpointPort = reportingEndpointPort;
230     }
231
232     @JsonProperty("additionalFields")
233     public List<AdditionalField> getAdditionalFields() {
234         return additionalFields;
235     }
236
237     @JsonProperty("additionalFields")
238     public void setAdditionalFields(List<AdditionalField> additionalFields) {
239         this.additionalFields = additionalFields;
240     }
241
242     @JsonProperty("applicationType")
243     public String getApplicationType() {
244         return applicationType;
245     }
246
247     @JsonProperty("applicationType")
248     public void setApplicationType(String applicationType) {
249         this.applicationType = applicationType;
250     }
251
252     @JsonProperty("appProtocolType")
253     public String getAppProtocolType() {
254         return appProtocolType;
255     }
256
257     @JsonProperty("appProtocolType")
258     public void setAppProtocolType(String appProtocolType) {
259         this.appProtocolType = appProtocolType;
260     }
261
262     @JsonProperty("appProtocolVersion")
263     public String getAppProtocolVersion() {
264         return appProtocolVersion;
265     }
266
267     @JsonProperty("appProtocolVersion")
268     public void setAppProtocolVersion(String appProtocolVersion) {
269         this.appProtocolVersion = appProtocolVersion;
270     }
271
272     @JsonProperty("cid")
273     public String getCid() {
274         return cid;
275     }
276
277     @JsonProperty("cid")
278     public void setCid(String cid) {
279         this.cid = cid;
280     }
281
282     @JsonProperty("connectionType")
283     public String getConnectionType() {
284         return connectionType;
285     }
286
287     @JsonProperty("connectionType")
288     public void setConnectionType(String connectionType) {
289         this.connectionType = connectionType;
290     }
291
292     @JsonProperty("ecgi")
293     public String getEcgi() {
294         return ecgi;
295     }
296
297     @JsonProperty("ecgi")
298     public void setEcgi(String ecgi) {
299         this.ecgi = ecgi;
300     }
301
302     @JsonProperty("gtpProtocolType")
303     public String getGtpProtocolType() {
304         return gtpProtocolType;
305     }
306
307     @JsonProperty("gtpProtocolType")
308     public void setGtpProtocolType(String gtpProtocolType) {
309         this.gtpProtocolType = gtpProtocolType;
310     }
311
312     @JsonProperty("gtpVersion")
313     public String getGtpVersion() {
314         return gtpVersion;
315     }
316
317     @JsonProperty("gtpVersion")
318     public void setGtpVersion(String gtpVersion) {
319         this.gtpVersion = gtpVersion;
320     }
321
322     @JsonProperty("httpHeader")
323     public String getHttpHeader() {
324         return httpHeader;
325     }
326
327     @JsonProperty("httpHeader")
328     public void setHttpHeader(String httpHeader) {
329         this.httpHeader = httpHeader;
330     }
331
332     @JsonProperty("imei")
333     public String getImei() {
334         return imei;
335     }
336
337     @JsonProperty("imei")
338     public void setImei(String imei) {
339         this.imei = imei;
340     }
341
342     @JsonProperty("imsi")
343     public String getImsi() {
344         return imsi;
345     }
346
347     @JsonProperty("imsi")
348     public void setImsi(String imsi) {
349         this.imsi = imsi;
350     }
351
352     @JsonProperty("lac")
353     public String getLac() {
354         return lac;
355     }
356
357     @JsonProperty("lac")
358     public void setLac(String lac) {
359         this.lac = lac;
360     }
361
362     @JsonProperty("mcc")
363     public String getMcc() {
364         return mcc;
365     }
366
367     @JsonProperty("mcc")
368     public void setMcc(String mcc) {
369         this.mcc = mcc;
370     }
371
372     @JsonProperty("mnc")
373     public String getMnc() {
374         return mnc;
375     }
376
377     @JsonProperty("mnc")
378     public void setMnc(String mnc) {
379         this.mnc = mnc;
380     }
381
382     @JsonProperty("msisdn")
383     public String getMsisdn() {
384         return msisdn;
385     }
386
387     @JsonProperty("msisdn")
388     public void setMsisdn(String msisdn) {
389         this.msisdn = msisdn;
390     }
391
392     @JsonProperty("otherFunctionalRole")
393     public String getOtherFunctionalRole() {
394         return otherFunctionalRole;
395     }
396
397     @JsonProperty("otherFunctionalRole")
398     public void setOtherFunctionalRole(String otherFunctionalRole) {
399         this.otherFunctionalRole = otherFunctionalRole;
400     }
401
402     @JsonProperty("rac")
403     public String getRac() {
404         return rac;
405     }
406
407     @JsonProperty("rac")
408     public void setRac(String rac) {
409         this.rac = rac;
410     }
411
412     @JsonProperty("radioAccessTechnology")
413     public String getRadioAccessTechnology() {
414         return radioAccessTechnology;
415     }
416
417     @JsonProperty("radioAccessTechnology")
418     public void setRadioAccessTechnology(String radioAccessTechnology) {
419         this.radioAccessTechnology = radioAccessTechnology;
420     }
421
422     @JsonProperty("sac")
423     public String getSac() {
424         return sac;
425     }
426
427     @JsonProperty("sac")
428     public void setSac(String sac) {
429         this.sac = sac;
430     }
431
432     @JsonProperty("samplingAlgorithm")
433     public Long getSamplingAlgorithm() {
434         return samplingAlgorithm;
435     }
436
437     @JsonProperty("samplingAlgorithm")
438     public void setSamplingAlgorithm(Long samplingAlgorithm) {
439         this.samplingAlgorithm = samplingAlgorithm;
440     }
441
442     @JsonProperty("tac")
443     public String getTac() {
444         return tac;
445     }
446
447     @JsonProperty("tac")
448     public void setTac(String tac) {
449         this.tac = tac;
450     }
451
452     @JsonProperty("tunnelId")
453     public String getTunnelId() {
454         return tunnelId;
455     }
456
457     @JsonProperty("tunnelId")
458     public void setTunnelId(String tunnelId) {
459         this.tunnelId = tunnelId;
460     }
461
462     @JsonProperty("vlanId")
463     public String getVlanId() {
464         return vlanId;
465     }
466
467     @JsonProperty("vlanId")
468     public void setVlanId(String vlanId) {
469         this.vlanId = vlanId;
470     }
471
472     @JsonAnyGetter
473     public Map<String, Object> getAdditionalProperties() {
474         return this.additionalProperties;
475     }
476
477     @JsonAnySetter
478     public void setAdditionalProperty(String name, Object value) {
479         this.additionalProperties.put(name, value);
480     }
481
482     @Override
483     public String toString() {
484         return new ToStringBuilder(this).append("flowDirection", flowDirection).append("gtpPerFlowMetrics", gtpPerFlowMetrics).append("ipProtocolType", ipProtocolType).append("ipVersion", ipVersion).append("mobileFlowFieldsVersion", mobileFlowFieldsVersion).append("otherEndpointIpAddress", otherEndpointIpAddress).append("otherEndpointPort", otherEndpointPort).append("reportingEndpointIpAddr", reportingEndpointIpAddr).append("reportingEndpointPort", reportingEndpointPort).append("additionalFields", additionalFields).append("applicationType", applicationType).append("appProtocolType", appProtocolType).append("appProtocolVersion", appProtocolVersion).append("cid", cid).append("connectionType", connectionType).append("ecgi", ecgi).append("gtpProtocolType", gtpProtocolType).append("gtpVersion", gtpVersion).append("httpHeader", httpHeader).append("imei", imei).append("imsi", imsi).append("lac", lac).append("mcc", mcc).append("mnc", mnc).append("msisdn", msisdn).append("otherFunctionalRole", otherFunctionalRole).append("rac", rac).append("radioAccessTechnology", radioAccessTechnology).append("sac", sac).append("samplingAlgorithm", samplingAlgorithm).append("tac", tac).append("tunnelId", tunnelId).append("vlanId", vlanId).append("additionalProperties", additionalProperties).toString();
485     }
486
487     @Override
488     public int hashCode() {
489         return new HashCodeBuilder().append(sac).append(mcc).append(samplingAlgorithm).append(tac).append(applicationType).append(gtpPerFlowMetrics).append(vlanId).append(radioAccessTechnology).append(lac).append(flowDirection).append(httpHeader).append(mnc).append(additionalFields).append(reportingEndpointIpAddr).append(appProtocolVersion).append(msisdn).append(tunnelId).append(imei).append(ipVersion).append(gtpProtocolType).append(reportingEndpointPort).append(otherEndpointPort).append(connectionType).append(ecgi).append(gtpVersion).append(cid).append(ipProtocolType).append(mobileFlowFieldsVersion).append(additionalProperties).append(imsi).append(otherFunctionalRole).append(otherEndpointIpAddress).append(appProtocolType).append(rac).toHashCode();
490     }
491
492     @Override
493     public boolean equals(Object other) {
494         if (other == this) {
495             return true;
496         }
497         if ((other instanceof MobileFlowFields) == false) {
498             return false;
499         }
500         MobileFlowFields rhs = ((MobileFlowFields) other);
501         return new EqualsBuilder().append(sac, rhs.sac).append(mcc, rhs.mcc).append(samplingAlgorithm, rhs.samplingAlgorithm).append(tac, rhs.tac).append(applicationType, rhs.applicationType).append(gtpPerFlowMetrics, rhs.gtpPerFlowMetrics).append(vlanId, rhs.vlanId).append(radioAccessTechnology, rhs.radioAccessTechnology).append(lac, rhs.lac).append(flowDirection, rhs.flowDirection).append(httpHeader, rhs.httpHeader).append(mnc, rhs.mnc).append(additionalFields, rhs.additionalFields).append(reportingEndpointIpAddr, rhs.reportingEndpointIpAddr).append(appProtocolVersion, rhs.appProtocolVersion).append(msisdn, rhs.msisdn).append(tunnelId, rhs.tunnelId).append(imei, rhs.imei).append(ipVersion, rhs.ipVersion).append(gtpProtocolType, rhs.gtpProtocolType).append(reportingEndpointPort, rhs.reportingEndpointPort).append(otherEndpointPort, rhs.otherEndpointPort).append(connectionType, rhs.connectionType).append(ecgi, rhs.ecgi).append(gtpVersion, rhs.gtpVersion).append(cid, rhs.cid).append(ipProtocolType, rhs.ipProtocolType).append(mobileFlowFieldsVersion, rhs.mobileFlowFieldsVersion).append(additionalProperties, rhs.additionalProperties).append(imsi, rhs.imsi).append(otherFunctionalRole, rhs.otherFunctionalRole).append(otherEndpointIpAddress, rhs.otherEndpointIpAddress).append(appProtocolType, rhs.appProtocolType).append(rac, rhs.rac).isEquals();
502     }
503
504 }