Table of Contents |
---|
Jira | ||||||||
---|---|---|---|---|---|---|---|---|
|
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
# | Description | Notes | Decision |
---|---|---|---|
1 | DMaap 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 | Based on input from (DMaaP) team and possible lack of future support we will do filtering on client side |
3 | Update Events for address information | is 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 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
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:
...