From 57c589b4026f09daf02cf6d3d73b8ce672de1b0b Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Mon, 5 Jun 2017 23:51:09 -0400 Subject: [PATCH] [AAI-ONAP] Make necessary chagnes to enable dmaap Change-Id: I163502d5e422e57c4a6be52d0356801eb7db1b41 Signed-off-by: Venkata Harish K Kajur --- .../etc/appprops/aaiEventDMaaPPublisher.properties | 28 +-- .../ajsc-aai_v1/ajsc-aai/v1/conf/serviceBeans.xml | 1 + .../java/org/openecomp/aai/config/DmaapConfig.java | 42 ++++ .../aai/dmaap/AAIDmaapEventJMSConsumer.java | 234 ++++++++------------- .../aai/dmaap/AAIDmaapEventJMSProducer.java | 12 +- 5 files changed, 138 insertions(+), 179 deletions(-) create mode 100644 aai-resources/src/main/java/org/openecomp/aai/config/DmaapConfig.java diff --git a/aai-resources/bundleconfig-local/etc/appprops/aaiEventDMaaPPublisher.properties b/aai-resources/bundleconfig-local/etc/appprops/aaiEventDMaaPPublisher.properties index 6245f84b..99819199 100644 --- a/aai-resources/bundleconfig-local/etc/appprops/aaiEventDMaaPPublisher.properties +++ b/aai-resources/bundleconfig-local/etc/appprops/aaiEventDMaaPPublisher.properties @@ -1,28 +1,4 @@ -TransportType=DME2 -Latitude=39.099727 -Longitude=-94.578567 -Version=1.0 -ServiceName=ONAPserverTBD/events -Environment=TEST -routeOffer=MR1SBKCD -SubContextPath=/ Protocol=http -MethodType=POST -username=ONAPserverTBD -password= contenttype=application/json -host=ONAPserverTBD:3904 -topic=AAI-EVENT -partition=AAI -maxBatchSize=100 -maxAgeMs=250 -AFT_DME2_EXCHANGE_REQUEST_HANDLERS=com.att.nsa.test.PreferredRouteRequestHandler -AFT_DME2_EXCHANGE_REPLY_HANDLERS=com.att.nsa.test.PreferredRouteReplyHandler -AFT_DME2_REQ_TRACE_ON=true -AFT_ENVIRONMENT=AFTUAT -AFT_DME2_EP_CONN_TIMEOUT=15000 -AFT_DME2_ROUNDTRIP_TIMEOUT_MS=240000 -AFT_DME2_EP_READ_TIMEOUT_MS=50000 -sessionstickinessrequired=NO -DME2preferredRouterFilePath=preferredRoute.txt -MessageSentThreadOccurance=50 +host=localhost:3904 +topic=AAI-EVENT \ No newline at end of file diff --git a/aai-resources/src/main/ajsc/ajsc-aai_v1/ajsc-aai/v1/conf/serviceBeans.xml b/aai-resources/src/main/ajsc/ajsc-aai_v1/ajsc-aai/v1/conf/serviceBeans.xml index 79fe7367..9d9d8f0c 100644 --- a/aai-resources/src/main/ajsc/ajsc-aai_v1/ajsc-aai/v1/conf/serviceBeans.xml +++ b/aai-resources/src/main/ajsc/ajsc-aai_v1/ajsc-aai/v1/conf/serviceBeans.xml @@ -36,6 +36,7 @@ +