aboutsummaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/DmaapConsumerJsonParser.java
AgeCommit message (Collapse)AuthorFilesLines
2023-03-28PRH Code Additions for Early PNF registrations1.9.0sangeeta.bellara1-59/+114
Issue-ID: DCAEGEN2-3312 Change-Id: Id9b1ca83390af3675e26fc61ccc8d12611ab8ddf Signed-off-by: sangeeta.bellara <sangeeta.bellara@t-systems.com> Signed-off-by: sangeeta.bellara <sangeeta.bellara@t-systems.com> Change-Id: I9bc25bc1343c40aca5644de3fd30f7c2142c1a47 Signed-off-by: sangeeta.bellara <sangeeta.bellara@t-systems.com>
2019-12-06Refactor AaiClient API - package restructureMichal Kabaj1-19/+18
- Reorganized aaiclient related classes between api/impl/main packages Issue-ID: DCAEGEN2-1955 Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com> Change-Id: Ie68f74cd94a6de0806c192046c1746af25979170
2019-06-12Align to new SDK versionJoanna Jeremicz1-2/+2
Change-Id: I06974c7f890bfa1cb875d776efa8b3a9f5b0a711 Issue-ID: DCAEGEN2-1613 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-05-29SSL key loading for Dmaap clientgrabinsk1-0/+2
Change-Id: I65b3d0bcd6735af655c9243f20f3596ce8f03aca Issue-ID: DCAEGEN2-1501 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
2019-05-22Align PRH to El Alto SDKpwielebs1-39/+28
Change-Id: I65c445d76092e11084fb60c68740e1321b35708c Issue-ID: DCAEGEN2-1501 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-04-24Fix loggingMarcin Migdal1-9/+4
Change-Id: I9dd88e87385f828ec4301578fe34fd45d50dab58 Issue-ID: DCAEGEN2-1361 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-27Support "Empty" from DMaap SimulatorMarcin Migdal1-67/+72
Change-Id: I1444071356cb8fb8a3393940bb004d6491d02324 Issue-ID: DCAEGEN2-1361 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-27Support "Empty" from DMaap SimulatorMarcin Migdal1-0/+6
Change-Id: Idaf9f5df34017aad6c7f2a3aa1e65b971ff5d5bc Issue-ID: DCAEGEN2-1361 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-27Add logging to DmaapConsumerJsonParser for inputMarcin Migdal1-0/+2
Change-Id: I42d7ab9beab80f8ea07aff3eb05a43b64836f75c Issue-ID: DCAEGEN2-1361 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-27Use SDK DMaaP Client genericMarcin Migdal1-2/+7
Change-Id: I031de4f59b7045f3bc45562edf3f58b86eace6bd Issue-ID: DCAEGEN2-1361 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-25Fix logic and log in DMaapConsumerJsonParserMarcin Migdal1-2/+6
Change-Id: Idf236a1c85423f29eb3f1dc9b9f27cead80046c0 Issue-ID: DCAEGEN2-1361 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
2019-03-22Remove IP requirementJoanna Jeremicz1-5/+1
Remove the requirement of at least one IP present in VES event. Update IP information in AAI only if it is present and is not empty. Change-Id: I83ae8990d45d71de4c839e43b5065db89b6c6a3a Issue-ID: DCAEGEN2-1312 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-03-20Integrate PRH with SDK in version 1.1.4pwielebs1-18/+5
- AAI client aligned - CBS client aligned - DmaaP client aligned Change-Id: I7afd0a44572e1097be5c3a4acc7221c7923cea8b Issue-ID: DCAEGEN2-1319 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-03-15Add AAI json body builderJoanna Jeremicz1-1/+1
Change-Id: Ib169c2904c11a267fbea0c8d2ab32e562669b60a Issue-ID: DCAEGEN2-1312 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-03-14Revert IP information removalJoanna Jeremicz1-2/+16
Change-Id: I43cdc2f2086f884df1f74dfbf999addae2019b5e Issue-ID: DCAEGEN2-1312 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-03-12Add AdditionalFields in PNF_Ready eventJoanna Jeremicz1-45/+37
Enhance the PNF_Ready event with AdditionalFields contents and remove IP information Change-Id: Iacef7e11dd104868440984a0540b2ccd31c8b036 Issue-ID: DCAEGEN2-1312 Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2019-02-13Add additional fields to PRH (2)pwielebs1-1/+2
* correct name of parameters Change-Id: I591ed6ba66691d3fe637b9d81b0956a635deac1c Issue-ID: DCAEGEN2-1173 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2019-02-07Add additional fields to PRHpwielebs1-38/+78
* patch version updated Change-Id: I32f8a0ec090a2559ef3324f937601e71670b30cf Issue-ID: DCAEGEN2-1173 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-12-18Integration with SDKpwielebs1-2/+2
* minor version upgraded in poms * align ConsumerDmaapModel to abstraction exposed in SDK * UTs modified Change-Id: Iaef2f9e8fab746106574771b2317c5689e047a5b Issue-ID: DCAEGEN2-1042 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-12-03SDK integration: use aai in PRHmicdzied1-2/+2
Change-Id: I68c9a5323e05a27de463bef9dd368f8a092559ae Issue-ID: DCAEGEN2-1013 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
2018-10-18Fixed Reactor-Netty SSL_conf3.0.1-ONAP3.0.0-ONAP1.1.1wasala1-2/+2
*Error calling secure AAI http client Change-Id: Ie4ba090f9ed33e134d584270e3ae875cd54472b6 Issue-ID: DCAEGEN2-870 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-10-11Bug fix due to failures on CSIT tests1.1.0pwielebs1-7/+16
Change-Id: Ib35b9448178f906f47527e49bdd14be75a17e578 Issue-ID: DCAEGEN2-866 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-10-08PRH DMaaP objects batchingwasala1-12/+16
*Getting collection of object in one request *Refator the workflow in the old implementation Change-Id: I4fdbf4bd8ae70cd78dbf5c3c441ba01c28e6ce4f Issue-ID: DCAEGEN2-834 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-09-14Bug fix 'sourceName' -> 'correlationId'pwielebs1-2/+3
In case of PNF_REGISTRATION event components like SO and Dmaap are expecting to get 'correlationId' parameter rather than 'sourceName'. This change simply maps 'sourceName' to 'correlationId' Change-Id: Ic99ffc6cd61a76f1a8c46c50da7c16660b1b7acf Issue-ID: DCAEGEN2-744 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-09-04Clear warnings in sysout Fix:pwielebs1-15/+14
*Checkstyle violations *Sonar Issues *FindBugs Issues Change-Id: Ie634fa6644cdbdb1f952826a75c6a4ffeabe0cbf Issue-ID: DCAEGEN2-606 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-09-04Refatoring due to prh workflowpwielebs1-9/+5
1. Added specified HttpClient for DmaaPPublisher: *DmaaP Handle transfer-encoding: chunk header and reject the request if it will be set by the client. In conclusion no other reactive http client can be used for pushing something to dmaap. 2. Added sll support to A&AI rective webclient. *Behaviour of reactive A&AI HttpClient is different as in native spring have without it. 3. Added 10s fixed time in PRH for requesting DmaaP. 4. Added debug log in reactive/native http clients. 5. Fixed reactive workflow of prh. 6. Updated the version of: * spring-boot-dependencies:2.0.1.RELEASE->2.0.4.RELEASE * spring-boot-starter-reactor-netty:2.0.2.RELEASE->2.0.4.RELEASE * spring-webflux:5.0.5.RELEASE->5.0.8.RELEASE * reactor-bom:Bismuth-RELEASE->Bismuth-SR10 Change-Id: I815ffb5bdcf48d94f3b7c64040a73e98e404a5e8 Issue-ID: DCAEGEN2-743 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-08-30Introduction of a new parameter "sourceName"pwielebs1-24/+22
- used instead of pnf-name (correlationId) Change-Id: Iabcbfacbc029bd6d229080c2064a291e17c7f4f8 Issue-ID: DCAEGEN2-744 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-08-23Fix for PRH against VES 7.0pwielebs1-2/+3
Change-Id: I1e4ca7d1a163eed6fadb1f52d0cc9fc675ea6b7f Issue-ID: DCAEGEN2-600 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-08-22Fix for logging:pwielebs1-0/+5
- removal of authentication in Dmaap client - improvement of logging in the DmaaP's & AAI's clients - Dmaap Topic upgraded according to VES 7.0 spec - correction in tasks scheduling Change-Id: Ie0b153b5544c69be54718460247dcd1d83f6ebe2 Issue-ID: DCAEGEN2-721 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-08-20Update PRH against VES 7.0pwielebs1-19/+17
- Changes made according to new VES 7.0.1 schema - UT modified Change-Id: I0e1eb07e4326f65da4bf3e1bd551962b15b907c1 Issue-ID: DCAEGEN2-600 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-08-07Fix corrections in codewasala1-2/+2
*FindBugs scan fixed errors *Checkstyle fixed errors Change-Id: I8553a56859de91f8886fc1518ff26e7b16c5c1d6 Issue-ID: DCAEGEN2-606 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-08-07Checstyle violations Casablancawasala1-0/+6
Added @Javadoc in .class files Change-Id: I359c03f67bd323509b712b91466bb0841b7bd1d2 Issue-ID: DCAEGEN2-563 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-08-07Refactor jsonParsing to reactivewasala1-44/+49
Already forwarded responsibility of creation Mono stream in function in DmaapConsumerJsonParser Change-Id: Ia03695c7e22575d078e169eeaa45ca1416c558a8 Issue-ID: DCAEGEN2-563 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-08-07Bug fixeswasala1-22/+24
Improve UnitTest Add changes after review in DmaaPReactiveTasks workflow Change-Id: I920092235528964758014c2d9d229ccd22e69cae Issue-ID: DCAEGEN2-563 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-08-07Refactor Optional in MonoResponsewasala1-10/+10
Added JUnit tests for DmaapConsumer Reactive Client. Added property for spring to run PRH as none-web application Change-Id: I8b762389927151387da5b79e8b75b670600ee5e8 Issue-ID: DCAEGEN2-563 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-08-07DmaapConsumerReactive fixed testswasala1-10/+11
Change-Id: I888ef94a084f32a18c77c12a18fb6636a4f33649 Issue-ID: DCAEGEN2-557 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-08-07Added dmaapReactiveConsumerwasala1-15/+25
*Tests have not been ready yet Change-Id: I2e1d9c4218f91ae2f066b28acdbaa1870d7d27e7 Issue-ID: DCAEGEN2-557 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-08-06Cleaned in code in reactive taskswasala1-2/+1
*Formated code *Added handling exceptions *Deleted unused code Change-Id: I3e95bcb8ba7cdf85f6a1daaec7cadc86080e0b10 Issue-ID: DCAEGEN2-557 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-06-15Added simply logs from tasks.wasala1-4/+14
*Logging responsed object from DmaaP *Logging parsed oject from DmaaP *Logging sended object to AAI *Logging sended object and topic To DmaaP Change-Id: I33de0cd751762ac004f9d8a09beee921f4026af6 Issue-ID: DCAEGEN2-545 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-06-12Catch empty response from DmaaPwasala1-5/+6
Change-Id: Ibd8739c3f9718eec15ff20e0b88d0bfcd4f6d84d Issue-ID: DCAEGEN2-540 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-06-05Correction for DmaapJsonParserwasala1-20/+18
*Added cases fo uTests *Changed schedule tasks to 5s *Changed batching message to 1 Change-Id: I8daa4f143699488c8a593634ad67452b4a194437 Issue-ID: DCAEGEN2-540 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-06-042nd fix for DmaapConsumerJsonParserpwielebs1-5/+5
Change-Id: I0b5fa7e2a1e8472f72e636a84ef6d2285580b494 Issue-ID: DCAEGEN2-451 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-05-30Fix for Json parserpwielebs1-6/+12
Change-Id: I322b893356a41ee27dfb14d9ef9dfcdd129e8ced Issue-ID: DCAEGEN2-451 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-05-17Change package in prh-commons modulewasala1-2/+2
Move package org.onap.dcaegen2.services to org.onap.dcaegen2.services.prh Change-Id: Idb13c5f1173897fceb1a8544dd893f6f9fee2c52 Issue-ID: DCAEGEN2-396 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-05-11AAI client configuration & tasks changedpwielebs1-2/+2
Change-Id: I86a2f2ed62565263f2be2c9078a092f993234a19 Issue-ID: DCAEGEN2-451 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
2018-05-10Added DmaapProducer in task workflow schedulerwasala1-1/+0
Change-Id: I46c8ff37ca758525e6647d5057d50595f5739208 Issue-ID: DCAEGEN2-474 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
2018-05-09Added dmaap consumer task execution to workflowwasala1-0/+92
Change-Id: I67904a8ffb7d401fa2188fb046e28474eded4377 Issue-ID: DCAEGEN2-474 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>