Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Jira
serverONAP Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-393

Spike Description:

Investigate A&AI interface, especially how to register and receive DMaaP Events from A&AI. Investigate filter-options and consider some PoC code.


Issues & Decisions

#DescriptionNotesDecision
1DMaap Client failed on ....

2

setFilter() is not documented

Fiachra Corcoran (DMaaP) advised any exist documentation is out of date and this should not be used

Toine Siebelink  

Based on input from (DMaaP) team and possible lack of future support we will do filtering on client side

3Update Events for address informationis it possible for address information to change ie. does CPS need to  listen to these?


Background:

When a xNF object is added to A&AI, a DMaaP event, AAI-EVENT is created. A&AI handles the publishing of this event. To be notified of the AAI-EVENT, CPS will need to register on DMaaP Message Router.

...

Code Block
languagejava
themeRDark
titleExample DMaaP Consumer Client
linenumberstrue
final MRConsumerImpl mrConsumer = new MRConsumerImpl.MRConsumerImplBuilder().setHostPart(hosts)
                .setTopic("AAI-EVENT").setConsumerGroup("onap-cps").setConsumerId("cps-ncmp").setTimeoutMs(10000)
                .setLimit(1000).setFilter("").setApiKey_username(null)
                .setApiSecret_password(null).createMRConsumerImpl();

*Note setFilter() method is not documented and we have been advised by DMaaP team not to use it. So all filtering as to be done on client side. See also issue #2

For the Consumer client to be created we need to pass in the values for the following attributes:

...