Prepare codebase for dynamic DMaaP configuration 03/55403/13
authorPawelSzalapski <pawel.szalapski@nokia.com>
Tue, 26 Jun 2018 13:16:41 +0000 (15:16 +0200)
committerPawelSzalapski <pawel.szalapski@nokia.com>
Mon, 2 Jul 2018 07:52:44 +0000 (09:52 +0200)
commitcd66181b35300f020f197bb411d6bdf6ad2514fb
treee4decd179d56ed2f64e5ab97c31c148cf2178aec
parent943a47187dbb1393d720b2fdf0019d48270edb4d
Prepare codebase for dynamic DMaaP configuration

From now on, there is only one single place
where we can create whole app core concerning sending events
and it has a single entry point, based on DMaaP configuration.
It can be used to rebuild part of app that is responsible
for sending events dynamically.
Changes are in scope for the dynamic DMaaP config feature.
+ bumped up code coverage a bit

Change-Id: Iecc8c4e534ae9b781f47e3616409271ba83169c8
Signed-off-by: PawelSzalapski <pawel.szalapski@nokia.com>
Issue-ID: DCAEGEN2-517
29 files changed:
pom.xml
src/main/java/org/onap/dcae/commonFunction/AnyNode.java
src/main/java/org/onap/dcae/commonFunction/CambriaPublisherFactory.java [deleted file]
src/main/java/org/onap/dcae/commonFunction/CommonStartup.java
src/main/java/org/onap/dcae/commonFunction/DmaapPropertyReader.java [deleted file]
src/main/java/org/onap/dcae/commonFunction/DmaapPublishers.java [deleted file]
src/main/java/org/onap/dcae/commonFunction/EventProcessor.java
src/main/java/org/onap/dcae/commonFunction/EventPublisherHash.java [deleted file]
src/main/java/org/onap/dcae/commonFunction/event/publishing/DMaaPConfigurationParser.java [new file with mode: 0644]
src/main/java/org/onap/dcae/commonFunction/event/publishing/DMaaPEventPublisher.java [new file with mode: 0644]
src/main/java/org/onap/dcae/commonFunction/event/publishing/DMaaPPublishersBuilder.java [new file with mode: 0644]
src/main/java/org/onap/dcae/commonFunction/event/publishing/DMaaPPublishersCache.java [new file with mode: 0644]
src/main/java/org/onap/dcae/commonFunction/event/publishing/EventPublisher.java [new file with mode: 0644]
src/main/java/org/onap/dcae/commonFunction/event/publishing/PublisherConfig.java [new file with mode: 0644]
src/main/java/org/onap/dcae/commonFunction/event/publishing/VavrUtils.java [new file with mode: 0644]
src/test/java/org/onap/dcae/commonFunction/DmaapPublishersTest.java [deleted file]
src/test/java/org/onap/dcae/commonFunction/EventProcessorTest.java
src/test/java/org/onap/dcae/commonFunction/TestCommonStartup.java
src/test/java/org/onap/dcae/commonFunction/event/publishing/DMaaPConfigurationParserTest.java [new file with mode: 0644]
src/test/java/org/onap/dcae/commonFunction/event/publishing/DMaaPEventPublisherTest.java [moved from src/test/java/org/onap/dcae/commonFunction/EventPublisherHashTest.java with 60% similarity]
src/test/java/org/onap/dcae/commonFunction/event/publishing/DMaaPPublishersCacheTest.java [new file with mode: 0644]
src/test/java/org/onap/dcae/vestest/AnyNodeTest.java
src/test/java/org/onap/dcae/vestest/DmaapPropertyReaderTest.java [deleted file]
src/test/resources/testDmaapConfig_gen2.json [deleted file]
src/test/resources/testFullDmaapConfig_channels.json [deleted file]
src/test/resources/testParseDMaaPCredentialsGen2.json [new file with mode: 0644]
src/test/resources/testParseDMaaPCredentialsLegacy.json [new file with mode: 0644]
src/test/resources/testParseDMaaPGen2.json [new file with mode: 0644]
src/test/resources/testParseDMaaPLegacy.json [new file with mode: 0644]