Thanks a lot Keong for clarification. This helps a lot.

-----Original Message-----
From: Keong Lim via Lists.Onap.Org [mailto:[email protected]]
Sent: 30 July 2019 13:53
To: Chandrashekhar Thakare <[email protected]>; 
[email protected]
Subject: Re: [onap-discuss] [aai]: Query regarding AAI events published on topic

Hi Chandra,

Referring to the AAI-Common code that processes the data:
https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgerrit.onap.org%2Fr%2Fgitweb%3Fp%3Daai%2Faai-common.git%3Ba%3Dblob%3Bf%3Daai-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Frest%2Fdb%2FHttpEntry.java%3Bhb%3DHEAD&amp;data=02%7C01%7CCT00548828%40techmahindra.com%7C7e866287e6504e3d3e4308d714c72c58%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637000717999130597&amp;sdata=LBelwOMpc5jG3Kir1mQ%2B2JN6PU5h%2Bb8B%2Fa1HxYlGAiw%3D&amp;reserved=0

If you search for the lines containing "notification.createNotificationEvent", 
e.g.
https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgerrit.onap.org%2Fr%2Fgitweb%3Fp%3Daai%2Faai-common.git%3Ba%3Dblob%3Bf%3Daai-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Frest%2Fdb%2FHttpEntry.java%3Bhb%3DHEAD%23l515&amp;data=02%7C01%7CCT00548828%40techmahindra.com%7C7e866287e6504e3d3e4308d714c72c58%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637000717999130597&amp;sdata=T1b1qEHf10qjF7GrWvdANjVq%2Bafzuaz6Ew9x2z1kmbo%3D&amp;reserved=0

you can see that the details of the notification event are created after the 
database transaction has been completed and after it is logged as completed.

If you search for the lines containing "notification.triggerEvents", e.g.
https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgerrit.onap.org%2Fr%2Fgitweb%3Fp%3Daai%2Faai-common.git%3Ba%3Dblob%3Bf%3Daai-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Frest%2Fdb%2FHttpEntry.java%3Bhb%3DHEAD%23l715&amp;data=02%7C01%7CCT00548828%40techmahindra.com%7C7e866287e6504e3d3e4308d714c72c58%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637000717999130597&amp;sdata=YWlxPtI9z%2B3X5grwgU6tEivnSDN5nA1aGT4b5GON7RE%3D&amp;reserved=0

you can see that the list of notification events is sent after all requests 
have been processed (including any retries).

That trigger can be traced through to the method called "sendToDmaapJmsQueue", 
i.e.
https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgerrit.onap.org%2Fr%2Fgitweb%3Fp%3Daai%2Faai-common.git%3Ba%3Dblob%3Bf%3Daai-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Futil%2FStoreNotificationEvent.java%3Bhb%3DHEAD%23l305&amp;data=02%7C01%7CCT00548828%40techmahindra.com%7C7e866287e6504e3d3e4308d714c72c58%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637000717999130597&amp;sdata=8lVwGiM2raS%2BayT1AkFYUkOezfA85QMpE3UevqLk6xg%3D&amp;reserved=0

which then sends it onwards through a JMS queue.

The JMS queue events are then consumed and the data is POST'd to the DMaaP 
endpoint, i.e.
https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgerrit.onap.org%2Fr%2Fgitweb%3Fp%3Daai%2Faai-common.git%3Ba%3Dblob%3Bf%3Daai-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fdmaap%2FAAIDmaapEventJMSConsumer.java%3Bhb%3DHEAD&amp;data=02%7C01%7CCT00548828%40techmahindra.com%7C7e866287e6504e3d3e4308d714c72c58%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637000717999130597&amp;sdata=b8%2BAw1XvotfrvQOGNzcQaS7ScIp1gFISCaTJJnvY%2BRw%3D&amp;reserved=0


Keong
============================================================================================================================
 Disclaimer: This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra. 
============================================================================================================================

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18351): https://lists.onap.org/g/onap-discuss/message/18351
Mute This Topic: https://lists.onap.org/mt/32651336/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to