diff options
author | krishna <krishna.moorthy6@wipro.com> | 2019-05-13 20:14:48 +0530 |
---|---|---|
committer | krishna <krishna.moorthy6@wipro.com> | 2019-05-13 22:43:07 +0530 |
commit | 77097fadf2dc4e5356bb2fa9ba370c75bf4a9439 (patch) | |
tree | 55c0e4ae16de3fd559aef2b90d033d4b755994e0 | |
parent | ddae038a611fb6f2bc5cb42be3069a5dacbbfd6e (diff) |
Ignore additional fields in FM and PM messages1.0.1
Change-Id: I59dedd9f92bbbd39ba8ddd9c18c1f06afd30d349
Issue-ID: DCAEGEN2-1497
Signed-off-by: krishna <krishna.moorthy6@wipro.com>
9 files changed, 21 insertions, 5 deletions
@@ -27,7 +27,7 @@ <groupId>org.onap.dcaegen2.services.son-handler</groupId> <artifactId>son-handler</artifactId> <name>dcaegen2-services-son-handler</name> - <version>1.0.0-SNAPSHOT</version> + <version>1.0.1-SNAPSHOT</version> <!--parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</version> </parent --> diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/CommonEventHeader.java b/src/main/java/org/onap/dcaegen2/services/sonhms/CommonEventHeader.java index 013dc66..5863bd8 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/CommonEventHeader.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/CommonEventHeader.java @@ -21,6 +21,9 @@ package org.onap.dcaegen2.services.sonhms; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + +@JsonIgnoreProperties(ignoreUnknown = true) public class CommonEventHeader { private String version; diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/Event.java b/src/main/java/org/onap/dcaegen2/services/sonhms/Event.java index 3a71f2b..7338911 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/Event.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/Event.java @@ -21,6 +21,9 @@ package org.onap.dcaegen2.services.sonhms; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + +@JsonIgnoreProperties(ignoreUnknown = true) public class Event { private CommonEventHeader commonEventHeader; private FaultFields faultFields; diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/FaultFields.java b/src/main/java/org/onap/dcaegen2/services/sonhms/FaultFields.java index a2c877d..e95d38e 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/FaultFields.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/FaultFields.java @@ -21,6 +21,9 @@ package org.onap.dcaegen2.services.sonhms; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + +@JsonIgnoreProperties(ignoreUnknown = true) public class FaultFields { @Override diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/dmaap/NotificationConsumer.java b/src/main/java/org/onap/dcaegen2/services/sonhms/dmaap/NotificationConsumer.java index 3860311..12113ce 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/dmaap/NotificationConsumer.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/dmaap/NotificationConsumer.java @@ -23,8 +23,6 @@ package org.onap.dcaegen2.services.sonhms.dmaap; import com.att.nsa.cambria.client.CambriaConsumer; -import java.io.IOException; - import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -51,7 +49,7 @@ public class NotificationConsumer implements Runnable { log.debug(msg); notificationCallback.activateCallBack(msg); } - } catch (IOException e) { + } catch (Exception e) { log.debug("exception when fetching msgs from dmaap", e); } diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/model/AdditionalMeasurements.java b/src/main/java/org/onap/dcaegen2/services/sonhms/model/AdditionalMeasurements.java index c55c6d6..f71df00 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/model/AdditionalMeasurements.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/model/AdditionalMeasurements.java @@ -21,8 +21,11 @@ package org.onap.dcaegen2.services.sonhms.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + import java.util.Map; +@JsonIgnoreProperties(ignoreUnknown = true) public class AdditionalMeasurements { String name; diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/model/Event.java b/src/main/java/org/onap/dcaegen2/services/sonhms/model/Event.java index 73edc39..e6a1869 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/model/Event.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/model/Event.java @@ -21,8 +21,11 @@ package org.onap.dcaegen2.services.sonhms.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + import org.onap.dcaegen2.services.sonhms.CommonEventHeader; +@JsonIgnoreProperties(ignoreUnknown = true) public class Event { CommonEventHeader commonEventHeader; MeasurementFields measurementFields; diff --git a/src/main/java/org/onap/dcaegen2/services/sonhms/model/MeasurementFields.java b/src/main/java/org/onap/dcaegen2/services/sonhms/model/MeasurementFields.java index 477a2d3..fea6271 100644 --- a/src/main/java/org/onap/dcaegen2/services/sonhms/model/MeasurementFields.java +++ b/src/main/java/org/onap/dcaegen2/services/sonhms/model/MeasurementFields.java @@ -21,8 +21,11 @@ package org.onap.dcaegen2.services.sonhms.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; + import java.util.List; +@JsonIgnoreProperties(ignoreUnknown = true) public class MeasurementFields { String measurementInterval; diff --git a/version.properties b/version.properties index ad1d4b0..870aad8 100644 --- a/version.properties +++ b/version.properties @@ -20,7 +20,7 @@ ###############################################################################
major=1
minor=0
-patch=0
+patch=1
base_version=${major}.${minor}.${patch}
release_version=${base_version}
snapshot_version=${base_version}-SNAPSHOT
|